Files
GabsPuNs-MinecraftConsoles/Minecraft.Client/Common/UI/UIControl_Slider.h
GabsPuNs 7deba3acb2 Final Update for TU24 2/3
LCE Renewed
- Merged some fixes and code updates from TU25.
* Fixed transparent items in hand.
* Beacon beams fixes.
- Fixed a crash when a dispenser is dispensing water or lava when the dispenser is blocked.

Minecraft Consoles
- Merged Asynchronous server joining
- Memory leak fix: Make chunks unload properly

Other
- Fixed Server Menu and Rename World Menu in 720p Res
2026-03-25 05:01:35 -04:00

41 lines
1020 B
C++

#pragma once
#include "UIControl_Base.h"
class UIControl_Slider : public UIControl_Base
{
private:
//int m_id; // 4J-TomK this is part of class UIControl and doesn't need to be here!
int m_min;
int m_max;
int m_current;
bool m_hasFocus;
vector<wstring> m_allPossibleLabels;
// 4J-TomK - function for setting slider position on touch
IggyName m_funcSetRelativeSliderPos;
IggyName m_funcGetRealWidth;
IggyName m_funcSetGreyedOut;
public:
UIControl_Slider();
virtual bool setupControl(UIScene *scene, IggyValuePath *parent, const string &controlName);
void init(UIString label, int id, int min, int max, int current);
void setFocus(bool hasFocus);
virtual bool hasFocus() { return m_hasFocus; }
void handleSliderMove(int newValue);
void SetSliderTouchPos(float fTouchPos);
virtual void SetSliderValue(int value);
virtual void setAllPossibleLabels(int labelCount, wchar_t labels[][256]);
void MoveSliderValue(int delta);
int getCurrentValue();
S32 GetRealWidth();
virtual void ReInit();
};