diff options
author | v-rob <robinsonvincent89@gmail.com> | 2019-12-06 12:51:10 -0800 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2019-12-06 20:51:10 +0000 |
commit | 4f45bfd08b013c00600a85abde0d0b19884ec430 (patch) | |
tree | 113f324ba8c8f98aa833428fd7fed857967bd78e /src/gui/guiFormSpecMenu.h | |
parent | 9a5d43a4f517e4f2e1810fe7c08b10e650552c52 (diff) | |
download | minetest-4f45bfd08b013c00600a85abde0d0b19884ec430.tar.gz minetest-4f45bfd08b013c00600a85abde0d0b19884ec430.tar.bz2 minetest-4f45bfd08b013c00600a85abde0d0b19884ec430.zip |
Add scrollbaroptions FormSpec element (#8530)
Diffstat (limited to 'src/gui/guiFormSpecMenu.h')
-rw-r--r-- | src/gui/guiFormSpecMenu.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/gui/guiFormSpecMenu.h b/src/gui/guiFormSpecMenu.h index 5be639fa5..3a3a74c05 100644 --- a/src/gui/guiFormSpecMenu.h +++ b/src/gui/guiFormSpecMenu.h @@ -379,7 +379,7 @@ protected: video::SColor m_default_tooltip_bgcolor; video::SColor m_default_tooltip_color; - + private: IFormSource *m_form_src; TextDest *m_text_dst; @@ -401,6 +401,16 @@ private: std::string focused_fieldname; GUITable::TableOptions table_options; GUITable::TableColumns table_columns; + + struct { + s32 max = 1000; + s32 min = 0; + s32 small_step = 10; + s32 large_step = 100; + s32 thumb_size = 1; + GUIScrollBar::ArrowVisibility arrow_visiblity = GUIScrollBar::DEFAULT; + } scrollbar_options; + // used to restore table selection/scroll/treeview state std::unordered_map<std::string, GUITable::DynamicData> table_dyndata; } parserData; @@ -455,6 +465,7 @@ private: bool parseVersionDirect(const std::string &data); bool parseSizeDirect(parserData* data, const std::string &element); void parseScrollBar(parserData* data, const std::string &element); + void parseScrollBarOptions(parserData *data, const std::string &element); bool parsePositionDirect(parserData *data, const std::string &element); void parsePosition(parserData *data, const std::string &element); bool parseAnchorDirect(parserData *data, const std::string &element); |