diff options
author | Juan Linietsky <reduzio@gmail.com> | 2021-09-09 20:21:29 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-09 20:21:29 -0300 |
commit | 729461b2a455bd3b4afb26bb362863a68e98a9ee (patch) | |
tree | 5f6476a856bbf1451d57914715f93572977112fe /scene/gui/option_button.h | |
parent | d0a7eeaaffb0e79ccde9b794c383342d342744ce (diff) | |
parent | ee4b0108e063c3124777a600065bf699cfd40765 (diff) |
Merge pull request #51158 from YeldhamDev/potgen_enhancements
Make some enhancements to the POT generation
Diffstat (limited to 'scene/gui/option_button.h')
-rw-r--r-- | scene/gui/option_button.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/option_button.h b/scene/gui/option_button.h index d846e395ad..953337ecce 100644 --- a/scene/gui/option_button.h +++ b/scene/gui/option_button.h @@ -56,6 +56,10 @@ protected: static void _bind_methods(); public: + // ATTENTION: This is used by the POT generator's scene parser. If the number of properties returned by `_get_items()` ever changes, + // this value should be updated to reflect the new size. + static const int ITEM_PROPERTY_SIZE = 5; + void add_icon_item(const Ref<Texture2D> &p_icon, const String &p_label, int p_id = -1); void add_item(const String &p_label, int p_id = -1); |