the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3#include "UIControl_Base.h"
4
5class UIControl_Slider : public UIControl_Base
6{
7private:
8 //int m_id; // 4J-TomK this is part of class UIControl and doesn't need to be here!
9 int m_min;
10 int m_max;
11 int m_current;
12
13 vector<wstring> m_allPossibleLabels;
14
15 // 4J-TomK - function for setting slider position on touch
16 IggyName m_funcSetRelativeSliderPos;
17 IggyName m_funcGetRealWidth;
18
19public:
20 UIControl_Slider();
21
22 virtual bool setupControl(UIScene *scene, IggyValuePath *parent, const string &controlName);
23
24 void init(UIString label, int id, int min, int max, int current);
25
26 void handleSliderMove(int newValue);
27 void SetSliderTouchPos(float fTouchPos);
28 virtual void setAllPossibleLabels(int labelCount, wchar_t labels[][256]);
29
30 S32 GetRealWidth();
31 virtual void ReInit();
32};