the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 25 lines 509 B view raw
1#pragma once 2 3#include "UIControl_Base.h" 4 5class UIControl_Progress : public UIControl_Base 6{ 7private: 8 IggyName m_setProgressFunc, m_showBarFunc; 9 int m_min; 10 int m_max; 11 int m_current; 12 float m_lastPercent; 13 bool m_showingBar; 14 15public: 16 UIControl_Progress(); 17 18 virtual bool setupControl(UIScene *scene, IggyValuePath *parent, const string &controlName); 19 20 void init(UIString label, int id, int min, int max, int current); 21 virtual void ReInit(); 22 23 void setProgress(int current); 24 void showBar(bool show); 25};