Attribute data types
| Type | Syntax | Examples and details |
|---|---|---|
| identifier | Any alphanumeric or '_' character, without space. | 'myControl', 'slider1','param_slider' 'my Control' or 'my-control' are invalid identifiers. For compatibility with scripting, start id with a letter (not with a digit). |
| string | Any character or string | 'Hello!' |
| color | RGB hex value with '#' | '#ffffff' for white, '#ff0000' for red. / This is the same syntax as HTML colors. |
| boolean | 'true' or 'false' | |
| real number | digits.digits | '5.3' '10' '3.02' '0.4' The language only supports English notation with '.' for the delimiter. |
| parameter type | 'real', 'boolean', 'integer' or 'enumeration' | Real stands for real number in floating point notation (5.3) |
| number of pixels | Any positive integer value | 145 |
| percentage | Real number followed by '%' | '20%' '33.3%' |
| position in pixels | Any integer value | -5 |
| vertical alignment | 'top' or 'bottom' or 'center' | |
| horizontal alignment | 'left' or 'right' or 'center' | |
| orientation | 'vertical' or 'horizontal' | |
| graph style | 'curve' or 'bargraph' | The bargraph style displays bars from the origin of the graph to the value of the curve, whereas the curve style draws curve points connected by segments in the case of non continuous curves. |
| file path | Relative file path. The root of all paths is the skin file directory. | 'xxx.bmp', or 'images/xxx.bmp' |
| image file path | See file path | Supported formats: bmp (8,16 or 24 bits), png, svg, jpg files. |
| cursor | 'system::xxx' where xxx is a valid cursor type, or (Windows only) valid cursor file path. | System::hand or 'mycursor.cur' |
| event | Events are fired when something happens and can be used to trigger actions. | Events are exposed by the data model and can be used to perform specific actions when fired. |
| script | script code. | Inside the script attribute you must replace " with ", < with < and some other chars. |
| param id | see identifier | The identifier of a PARAM |
| curve id | see identifier | The identifier of a CURVE |
| string id | see identifier | The identifier of a STRING |
| action id | see identifier | The identifier of an ACTION |
| group id | see identifier | The identifier of a GROUP |
| string with param fields | String containing parameter fields enclosed into brackets | 'value is: {value} {unit}' Valid fields are: {value}, {unit}, {name}, {default}, {min}, {max}, {comment}, {text_value}, {as_string} |
| param value formatting | flagmax_char.digits (all fields are optional), where: flag values (can be mixed): '+' to show a '+' when the value is positive blank (' ') : positive values start with a blank '0' : value is padded with 0s. Valid only if followed by the max_char field. max_char is the maximum number of characters to use for the text (sign and '.' included) '.' followed by digits: number of characters reserved for the decimal part |
'+8.2' will show a number with its sign, with a maximum of 8 characters (including '.') and 2 characters reserved for the digits '.0' will show a number without decimal part. '+05.0' will show a value with 5 characters without any decimal part, padded with '0' if needed. Using the max_char field avoids the text to move on the screen when the value changes if you used a monotype font such as 'Courier New'. For programmers, the syntax is very similar to the formatting options of 'printf' standard c function. |
| response curve | 'linear' 'log' 'exp' 'log1' 'exp1' 'log2' 'exp2' 'log3' 'exp3' 'square_root' 'square' | See the Response Curves graphes below for an overview of available curves. |
Response curves visualization


Comments
Please, authorize to view and post comments.