mirror of
https://github.com/neoStudiosLCE/neoLegacy.git
synced 2026-08-20 09:57:09 +00:00
Merge branch 'main' into upstream-merge
This commit is contained in:
commit
80179ae3be
|
|
@ -17,6 +17,7 @@ bool UIControl_Slider::setupControl(UIScene *scene, IggyValuePath *parent, const
|
||||||
|
|
||||||
//Slider specific initialisers
|
//Slider specific initialisers
|
||||||
m_funcSetRelativeSliderPos = registerFastName(L"SetRelativeSliderPos");
|
m_funcSetRelativeSliderPos = registerFastName(L"SetRelativeSliderPos");
|
||||||
|
m_funcSetSliderValue = registerFastName(L"MoveSlider");
|
||||||
m_funcGetRealWidth = registerFastName(L"GetRealWidth");
|
m_funcGetRealWidth = registerFastName(L"GetRealWidth");
|
||||||
|
|
||||||
return success;
|
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)
|
void UIControl_Slider::SetSliderTouchPos(float fTouchPos)
|
||||||
{
|
{
|
||||||
IggyDataValue result;
|
IggyDataValue result;
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@ private:
|
||||||
|
|
||||||
// 4J-TomK - function for setting slider position on touch
|
// 4J-TomK - function for setting slider position on touch
|
||||||
IggyName m_funcSetRelativeSliderPos;
|
IggyName m_funcSetRelativeSliderPos;
|
||||||
|
IggyName m_funcSetSliderValue;
|
||||||
IggyName m_funcGetRealWidth;
|
IggyName m_funcGetRealWidth;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
@ -25,6 +26,7 @@ public:
|
||||||
|
|
||||||
void handleSliderMove(int newValue);
|
void handleSliderMove(int newValue);
|
||||||
void SetSliderTouchPos(float fTouchPos);
|
void SetSliderTouchPos(float fTouchPos);
|
||||||
|
void SetSliderValue(int value);
|
||||||
virtual void setAllPossibleLabels(int labelCount, wchar_t labels[][256]);
|
virtual void setAllPossibleLabels(int labelCount, wchar_t labels[][256]);
|
||||||
|
|
||||||
S32 GetRealWidth();
|
S32 GetRealWidth();
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
This project aims to backport the newer title updates back to Legacy Console Edition (which is based on TU19).
|
This project aims to backport the newer title updates back to Legacy Console Edition (which is based on TU19).
|
||||||
|
|
||||||
[](https://discord.gg/D6hEPNYeyn)
|
[](https://discord.gg/D6hEPNYeyn)
|
||||||
[](https://github.com/LCE-Hub/LCE-Emerald-Launcher)
|
[](https://github.com/LCE-Hub/LCE-Emerald-Launcher)
|
||||||
|
|
||||||
# Our roadmap:
|
# Our roadmap:
|
||||||

|

|
||||||
|
|
|
||||||
Loading…
Reference in a new issue