From cbe174db39da557b4477331ee5dce44b0ffd8635 Mon Sep 17 00:00:00 2001 From: Fayaz Shaikh <61674751+fayaz12g@users.noreply.github.com> Date: Tue, 3 Mar 2026 17:31:17 -0500 Subject: [PATCH] Remove more remnants --- Minecraft.Client/Common/UI/UIGroup.cpp | 1 + Minecraft.Client/Common/UI/UIGroup.h | 2 -- Minecraft.Client/Common/UI/UILayer.cpp | 1 + Minecraft.Client/Common/UI/UILayer.h | 1 + Minecraft.Client/Common/UI/UIScene.cpp | 13 ------------- Minecraft.Client/Common/UI/UIScene.h | 1 - 6 files changed, 3 insertions(+), 16 deletions(-) diff --git a/Minecraft.Client/Common/UI/UIGroup.cpp b/Minecraft.Client/Common/UI/UIGroup.cpp index 1594b06f1..e8bb9fe66 100644 --- a/Minecraft.Client/Common/UI/UIGroup.cpp +++ b/Minecraft.Client/Common/UI/UIGroup.cpp @@ -333,6 +333,7 @@ bool UIGroup::IsFullscreenGroup() return m_group == eUIGroup_Fullscreen; } + void UIGroup::handleUnlockFullVersion() { for(unsigned int i = 0; i < eUILayer_COUNT; ++i) diff --git a/Minecraft.Client/Common/UI/UIGroup.h b/Minecraft.Client/Common/UI/UIGroup.h index 306c0eff9..0ffee0ca2 100644 --- a/Minecraft.Client/Common/UI/UIGroup.h +++ b/Minecraft.Client/Common/UI/UIGroup.h @@ -101,8 +101,6 @@ public: bool IsFullscreenGroup(); void handleUnlockFullVersion(); - - static const int LAYER_COUNT = eUILayer_COUNT; void PrintTotalMemoryUsage(__int64 &totalStatic, __int64 &totalDynamic); diff --git a/Minecraft.Client/Common/UI/UILayer.cpp b/Minecraft.Client/Common/UI/UILayer.cpp index 6f816bc5e..13b26c845 100644 --- a/Minecraft.Client/Common/UI/UILayer.cpp +++ b/Minecraft.Client/Common/UI/UILayer.cpp @@ -872,6 +872,7 @@ C4JRender::eViewportType UILayer::getViewport() return m_parentGroup->GetViewportType(); } + void UILayer::handleUnlockFullVersion() { for(AUTO_VAR(it, m_sceneStack.begin()); it != m_sceneStack.end(); ++it) diff --git a/Minecraft.Client/Common/UI/UILayer.h b/Minecraft.Client/Common/UI/UILayer.h index 98c81ca96..eb779ed96 100644 --- a/Minecraft.Client/Common/UI/UILayer.h +++ b/Minecraft.Client/Common/UI/UILayer.h @@ -34,6 +34,7 @@ public: UIGroup *m_parentGroup; public: UILayer(UIGroup *parent); + void tick(); void render(S32 width, S32 height, C4JRender::eViewportType viewport); void getRenderDimensions(S32 &width, S32 &height); diff --git a/Minecraft.Client/Common/UI/UIScene.cpp b/Minecraft.Client/Common/UI/UIScene.cpp index ae63af774..ba2536434 100644 --- a/Minecraft.Client/Common/UI/UIScene.cpp +++ b/Minecraft.Client/Common/UI/UIScene.cpp @@ -1199,19 +1199,6 @@ void UIScene::_handleFocusChange(F64 controlId, F64 childId) ui.PlayUISFX(eSFX_Focus); } -void UIScene::UpdateDisplaySize() -{ - if (!swf) - { - return; - } - - S32 width, height; - m_parentLayer->getRenderDimensions(width, height); - IggyPlayerSetDisplaySize(swf, width, height); - updateSafeZone(); -} - void UIScene::_handleInitFocus(F64 controlId, F64 childId) { m_iFocusControl = (int)controlId; diff --git a/Minecraft.Client/Common/UI/UIScene.h b/Minecraft.Client/Common/UI/UIScene.h index 3027ca617..8c20aaae3 100644 --- a/Minecraft.Client/Common/UI/UIScene.h +++ b/Minecraft.Client/Common/UI/UIScene.h @@ -122,7 +122,6 @@ protected: virtual bool mapElementsAndNames(); void initialiseMovie(); void loadMovie(); - virtual void UpdateDisplaySize(); private: void getDebugMemoryUseRecursive(const wstring &moviePath, IggyMemoryUseInfo &memoryInfo);