From c0c677b6ed436914b530b4aee3135fa375e77842 Mon Sep 17 00:00:00 2001 From: piebot Date: Mon, 13 Apr 2026 16:29:38 +0300 Subject: [PATCH 1/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 07726fc5..d671775e 100644 --- a/README.md +++ b/README.md @@ -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) From 0606ce717de6895cdb7567dc99477cd374d9236b Mon Sep 17 00:00:00 2001 From: SevenToaster509 Date: Mon, 13 Apr 2026 15:30:40 +0100 Subject: [PATCH 2/2] Refactor: Allow slider to be set WARNING: REQUIRES ARC TO BE EDITED TO FUNCTION, PUSHED THIS TASK TO georgev22 --- Minecraft.Client/Common/UI/UIControl_Slider.cpp | 10 ++++++++++ Minecraft.Client/Common/UI/UIControl_Slider.h | 2 ++ 2 files changed, 12 insertions(+) diff --git a/Minecraft.Client/Common/UI/UIControl_Slider.cpp b/Minecraft.Client/Common/UI/UIControl_Slider.cpp index c9b773a7..46b88a0f 100644 --- a/Minecraft.Client/Common/UI/UIControl_Slider.cpp +++ b/Minecraft.Client/Common/UI/UIControl_Slider.cpp @@ -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; diff --git a/Minecraft.Client/Common/UI/UIControl_Slider.h b/Minecraft.Client/Common/UI/UIControl_Slider.h index 505f6dd2..0385b1a5 100644 --- a/Minecraft.Client/Common/UI/UIControl_Slider.h +++ b/Minecraft.Client/Common/UI/UIControl_Slider.h @@ -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();