Updated Widgets (markdown)

sommermorgentraum 2024-10-11 16:55:01 +08:00
parent 97642ca45e
commit 839e01e9dc

@ -419,11 +419,14 @@ OptionsField is a widget to create a field, in which you can change its value wi
OptionsField my_OptionsField_widget{
Point parent_pos,
int length,
options_t options
options_t options,
bool centered,
};
```
`parent_pos` is an array of two integer, represents where the top left corner of the widget should be positioned. The length is an integer which tells how many options you have into your options parameter. The options_t field is an array of options in which your portapack can choose to display.
Centered is a bool that if you true it, you can make all the text in it in the center. Its originally init-ed, so if you dont define it, it will be default false.
**Example**
An OptionsField called `my_optionsField`, with 3 options positioned at 10 from top and 10 from left:
```