diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2016-01-25 14:22:34 -0500 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2016-01-25 14:22:34 -0500 |
commit | 3dfa4f4a5f80fe82f73a28ae33c257341100226d (patch) | |
tree | 22c8be4701be76a039a2562df5c9eff87550c597 /include/ui.h | |
parent | cd2a8b323021a702732356f0c8c44f76fa8c407b (diff) |
Sliders!
Diffstat (limited to 'include/ui.h')
-rw-r--r-- | include/ui.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/ui.h b/include/ui.h index 030c73d..bf9c0ae 100644 --- a/include/ui.h +++ b/include/ui.h @@ -37,7 +37,9 @@ struct menuItem{ float minValue; float maxValue; const char* text; - void* var; + float* var; + + float sliderLoc; }slider; }; @@ -46,6 +48,7 @@ struct menuItem{ namespace ui { menuItem createButton(vec2 l, dim2 d, Color c, const char* t, menuFunc f); + menuItem createSlider(vec2 l, dim2 d, Color c, float min, float max, const char* t, float* v); /** * Contains the coordinates of the mouse inside the window. */ @@ -56,6 +59,7 @@ namespace ui { * These flags are used elsewhere. */ + extern bool oMenu; extern bool pMenu; extern bool menu; extern bool debug; @@ -121,6 +125,7 @@ namespace ui { */ void quitGame(); void quitMenu(); + void optionsMenuF(); void drawMenu(std::vector<menuItem>mi); |