diff --git a/Widgets.md b/Widgets.md index d5ea88d..3ea96fc 100644 --- a/Widgets.md +++ b/Widgets.md @@ -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. It’s originally init-ed, so if you don’t 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: ```