Skip to content
Bananenbrot edited this page Jun 27, 2023 · 4 revisions

Sort Properties

The sorting of properties is optional and divided into two parts, which are column and row.
#STB-Input-{Space}-{Datatype}-[column, row]
If nothing is defined as sorting for a property, because it is optional, it will be drawn with internal sorting after the sorted properties. The column and the row must be in a range from 0 to infinite. If that's not the case, they will be drawn with internal sorting after the sorted properties.

Column

The column identifies where to draw the property vertical and must be written as an integer. It is used internally like an index for an array. If a column start with a high number than 0 the column will be filled up with empty spaces.

Row

The row is optional and is more complex than the column. It can be written with 1 number as index like the column but can be written as float. If a row start with a high number than 0, the left side will be filled up with an empty space that get scaled with the float of the row. The row can also take two numbers by separate the two numbers with a /. The left number works as the index like before the right number will be used to fill up the right side, which works in the same way.

Examples

1 column space above property Int

#STB-Input-Panel-Int-[1]
MyInt = 50

first half of the row it empty, other half is the property Int

#STB-Input-Panel-Int-[0,1]
MyInt = 50

first column 2 properties Int 50/50, second column property String

#STB-Input-Panel-Int-[0,0]
MyInt = 50
#STB-Input-Panel-Int-[0,1]
MyInt2 = 50
#STB-Input-Panel-String-[1]
MyString = "This is my Text"

0.5 space left and rieht of property Int

#STB-Input-Panel-Int-[0,0.5/0.5]
MyInt = 50

0.3 Space left and right of 2 properties Int

#STB-Input-Panel-Int-[0,0.3]
MyInt = 50
#STB-Input-Panel-Int-[0,1/0.3]
MyInt2 = 50

Can also be written like this:

#STB-Input-Panel-Int-[0,0.3/2]
MyInt = 50
#STB-Input-Panel-Int-[0,1/0.3]
MyInt2 = 50

2 in int the first property can be any number. If a Property follows directly onto the next index the space is ignored. To draw the space you have to put the second property coulmn-index to 2.

Clone this wiki locally