From 839e01e9dc22905123b6fafd7c7d5b8dfbb9f3c0 Mon Sep 17 00:00:00 2001 From: sommermorgentraum <24917424+zxkmm@users.noreply.github.com> Date: Fri, 11 Oct 2024 16:55:01 +0800 Subject: [PATCH] Updated Widgets (markdown) --- Widgets.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: ```