Merge branch 'main' into upstream-merge

This commit is contained in:
George V.
2026-04-13 17:56:40 +03:00
3 changed files with 13 additions and 1 deletions
@@ -17,6 +17,7 @@ bool UIControl_Slider::setupControl(UIScene *scene, IggyValuePath *parent, const
//Slider specific initialisers
m_funcSetRelativeSliderPos = registerFastName(L"SetRelativeSliderPos");
m_funcSetSliderValue = registerFastName(L"MoveSlider");
m_funcGetRealWidth = registerFastName(L"GetRealWidth");
return success;
@@ -112,6 +113,15 @@ void UIControl_Slider::handleSliderMove(int newValue)
}
}
void UIControl_Slider::SetSliderValue(int valueA)
{
IggyDataValue result;
IggyDataValue value[1];
value[0].type = IGGY_DATATYPE_number;
value[0].number = valueA;
IggyResult out = IggyPlayerCallMethodRS(m_parentScene->getMovie(), &result, getIggyValuePath(), m_funcSetSliderValue, 1, value);
}
void UIControl_Slider::SetSliderTouchPos(float fTouchPos)
{
IggyDataValue result;
@@ -14,6 +14,7 @@ private:
// 4J-TomK - function for setting slider position on touch
IggyName m_funcSetRelativeSliderPos;
IggyName m_funcSetSliderValue;
IggyName m_funcGetRealWidth;
public:
@@ -25,6 +26,7 @@ public:
void handleSliderMove(int newValue);
void SetSliderTouchPos(float fTouchPos);
void SetSliderValue(int value);
virtual void setAllPossibleLabels(int labelCount, wchar_t labels[][256]);
S32 GetRealWidth();