aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/interface/GUI.cpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-07-29 00:48:34 +0200
committer hop311 <hop3114@gmail.com>2024-07-29 00:48:34 +0200
commitf81dfd8be7a9fe9dd0b55afa36d86a756b3af65b (patch)
tree5540d5334370414b51a45e8c184ad3d0b9974c0e /src/openvic-simulation/interface/GUI.cpp
parent861acff78bd238232ed9e369ea046c2ed4a31198 (diff)
GUI::ListBox offsets + load search panel gui filelistbox-offsets
Diffstat (limited to 'src/openvic-simulation/interface/GUI.cpp')
-rw-r--r--src/openvic-simulation/interface/GUI.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/openvic-simulation/interface/GUI.cpp b/src/openvic-simulation/interface/GUI.cpp
index 9acb72c..87e3624 100644
--- a/src/openvic-simulation/interface/GUI.cpp
+++ b/src/openvic-simulation/interface/GUI.cpp
@@ -205,18 +205,18 @@ bool OverlappingElementsBox::_fill_key_map(NodeTools::case_insensitive_key_map_t
return ret;
}
-ListBox::ListBox() : size {}, offset {}, spacing {}, scrollbar_name {} {}
+ListBox::ListBox() : size {}, scrollbar_offset {}, items_offset {}, spacing {}, scrollbar_name {} {}
bool ListBox::_fill_key_map(NodeTools::case_insensitive_key_map_t& key_map, UIManager const& ui_manager) {
bool ret = Element::_fill_key_map(key_map, ui_manager);
ret &= add_key_map_entries(key_map,
"size", ONE_EXACTLY, expect_fvec2(assign_variable_callback(size)),
- "offset", ZERO_OR_ONE, expect_fvec2(assign_variable_callback(offset)),
+ "offset", ZERO_OR_ONE, expect_fvec2(assign_variable_callback(scrollbar_offset)),
+ "borderSize", ZERO_OR_ONE, expect_fvec2(assign_variable_callback(items_offset)),
"spacing", ZERO_OR_ONE, expect_fixed_point(assign_variable_callback(spacing)),
"scrollbartype", ZERO_OR_ONE, expect_string(assign_variable_callback_string(scrollbar_name)),
"backGround", ZERO_OR_ONE, success_callback,
- "borderSize", ZERO_OR_ONE, success_callback,
"horizontal", ZERO_OR_ONE, success_callback,
"priority", ZERO_OR_ONE, success_callback,
"allwaystransparent", ZERO_OR_ONE, success_callback