Post Reply 
Plus42 Equations, Preview Release
01-19-2022, 06:58 PM (This post was last modified: 01-19-2022 07:02 PM by Thomas Okken.)
Post: #239
RE: Plus42 Equations, Preview Release
New update:

1. When pasting program listings, CRDIR, PGDIR, CHDIR, and RENAME weren't accepted. Now fixed.
2. Display hints to allow Plus42 to adapt existing skins better.

The display hints can be added to a skin's layout file. There are two:

DisplayExpansionZone: first_y last_y
This specifies the strip of the skin image that should be replicated when stretching the skin. The strip spans the entire width of the skin, and runs from first_y at the top to last_y at the bottom.
If unspecified, Plus42 uses the top and bottom of the default display rectangle. Use this hint if the default strip contains a logo or other graphical elements that should not be replicated.

DisplaySize: cols,rows disp_y pixel_scale_y max_rows
If the skin was designed for a display size other than 2 rows by 22 columns, use this hint to specify the default size. The number or rows must be at least 2 and the number of columns must be at least 22.
Disp_y and pixel_scale_y specify top of the display and the the vertical pixel size to be used, instead of the ones specified in the Display: line, if the number of rows is set to something greater than 2; and max_rows is the maximum number of rows that may be used with this skin.
The disp_y, pixel_scale_y, and max_rows parameters are optional. They may be omitted, or if you don't want to specify one but do want to specify one of the later ones, use -1 to indicate you don't want to specify a vaiue.

(What is obviously still missing is some way for the user to set the number of rows. For now, this is hard-coded at 8, or whatever the maximum is that the skin layout specifies if that is less than 8.)

I added hints to 14 layout files in my collection:

DisplayExpansionZone, to prevent logos etc. from being duplicated:

desktop/42ck.layout
desktop/42ct.layout
desktop/42ctplus.layout
desktop/HP42CY.layout
desktop/Khor_Free01.layout
mobile/Khor_Free01_iOS.layout
mobile/SGS-P.layout
mobile/Tyge_H.layout
mobile/Tyge_S2_Landscape.layout
mobile/tyge_nova_L_v2.layout


DisplaySize, to take better advantage of available room for the display:

desktop/DM42.layout
mobile/DM42.layout


DisplaySize, to prevent the skin from being stretched altogether:

mobile/HP_Mega_42.layout
mobile/SGS-L.layout


This also applies to the built-in landscape skins in the Android and iOS versions (both SGS-L).
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Plus42 Equations, Preview Release - Thomas Okken - 01-19-2022 06:58 PM



User(s) browsing this thread: 5 Guest(s)