15 virtual void Create()
override;
17 virtual void EditorTick(
float deltaTime)
override;
21 void SetValue(
float value);
22 float GetValue()
const;
23 void SetMinValue(
float min);
24 float GetMinValue()
const;
25 void SetMaxValue(
float max);
26 float GetMaxValue()
const;
27 float GetRatio()
const;
30 void SetShowPercentage(
bool show);
31 bool IsShowingPercentage()
const;
34 void SetBackgroundColor(glm::vec4 color);
35 glm::vec4 GetBackgroundColor();
36 void SetFillColor(glm::vec4 color);
37 glm::vec4 GetFillColor();
38 void SetTextColor(glm::vec4 color);
39 glm::vec4 GetTextColor();
42 Quad* GetBackgroundQuad();
44 Text* GetTextWidget();
50 void UpdateAppearance();
54 float mMinValue = 0.0f;
55 float mMaxValue = 1.0f;
58 bool mShowPercentage =
true;
63 glm::vec4 mBackgroundColor = { 0.2f, 0.2f, 0.2f, 1.0f };
64 glm::vec4 mFillColor = { 0.3f, 0.6f, 0.9f, 1.0f };
65 glm::vec4 mTextColor = { 1.0f, 1.0f, 1.0f, 1.0f };
66 float mPadding = 2.0f;
69 Quad* mBackground =
nullptr;