aboutsummaryrefslogtreecommitdiffstats
path: root/include/ui_menu.hpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2017-01-09 19:06:36 -0500
committerClyne Sullivan <tullivan99@gmail.com>2017-01-09 19:06:36 -0500
commit0aae714d4d894a4bfa9582c71ee8a1778260a047 (patch)
tree0bdda17698baaa7cd3bd7325c6a310e917166e99 /include/ui_menu.hpp
parent9d7b4c9a40261b5b6b961f6ca6174fd23c40f6b8 (diff)
ui menu cleanup
Diffstat (limited to 'include/ui_menu.hpp')
-rw-r--r--include/ui_menu.hpp18
1 files changed, 7 insertions, 11 deletions
diff --git a/include/ui_menu.hpp b/include/ui_menu.hpp
index 8ca9368..b45a76d 100644
--- a/include/ui_menu.hpp
+++ b/include/ui_menu.hpp
@@ -13,28 +13,24 @@ class menuItem {
public:
int member;
Menu *child;
+
+ vec2 loc;
+ dim2 dim;
+ Color color;
+ std::string text;
//union {
struct {
- vec2 loc;
- dim2 dim;
- Color color;
-
- std::string text;
menuFunc func;
} button;
- struct {
- vec2 loc;
- dim2 dim;
- Color color;
+ struct {
float minValue;
float maxValue;
float sliderLoc;
-
- std::string text;
float *var;
} slider;
//};
+
menuItem(){}
~menuItem(){
//button.text = NULL;