From 3dfa4f4a5f80fe82f73a28ae33c257341100226d Mon Sep 17 00:00:00 2001 From: drumsetmonkey Date: Mon, 25 Jan 2016 14:22:34 -0500 Subject: Sliders! --- include/ui.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include/ui.h') 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::vectormi); -- cgit v1.2.3