feat(ui): add SLIDER_ORIENTATION

This commit is contained in:
fallenoak 2025-11-29 22:21:44 -06:00
parent 88aeb11698
commit eca8ed6a32
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
2 changed files with 6 additions and 0 deletions

View File

@ -24,6 +24,7 @@ class CSimpleSlider : public CSimpleFrame {
float m_value = 0.0f;
float m_valueStep = 0.0f;
CSimpleTexture* m_thumbTexture = nullptr;
SLIDER_ORIENTATION m_orientation = SLIDER_VERTICAL;
ScriptIx m_onValueChanged;
ScriptIx m_onMinMaxChanged;

View File

@ -88,6 +88,11 @@ enum PLURAL_RULE {
PLURAL_RULE_2 = 2
};
enum SLIDER_ORIENTATION {
SLIDER_HORIZONTAL = 0,
SLIDER_VERTICAL = 1,
};
enum TextureImageMode {
ImageMode_UI = 0,
ImageMode_Desaturate = 1