Merge branch 'main' into upstream-merge

This commit is contained in:
George V. 2026-04-13 17:56:40 +03:00
commit 80179ae3be
No known key found for this signature in database
GPG key ID: 1DB61094F2DD4982
3 changed files with 13 additions and 1 deletions

View file

@ -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;

View file

@ -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();

View file

@ -3,7 +3,7 @@
This project aims to backport the newer title updates back to Legacy Console Edition (which is based on TU19).
[![Discord](https://img.shields.io/badge/Discord-Join%20Server-5865F2?logo=discord&logoColor=white)](https://discord.gg/D6hEPNYeyn)
[![Emerald Launcher](https://img.shields.io/badge/Get_it_on-Emerald_Launcher-3fc724)](https://github.com/LCE-Hub/LCE-Emerald-Launcher)
[![Emerald Launcher](https://img.shields.io/badge/Get_it_on-LCE_Emerald_Launcher-3fc724)](https://github.com/LCE-Hub/LCE-Emerald-Launcher)
# Our roadmap:
![Roadmap](.gitea/roadmap.png)