From 3b1b282ec7445000a65c045e6e1d9d7b664cd261 Mon Sep 17 00:00:00 2001 From: Mohamed Ashraf Date: Thu, 5 Mar 2026 01:04:27 +0400 Subject: [PATCH] add uicontroller code --- Minecraft.Client/CMakeLists.txt | 30 ++++++++++----------- Minecraft.Client/Common/UI/UIController.cpp | 6 ++--- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/Minecraft.Client/CMakeLists.txt b/Minecraft.Client/CMakeLists.txt index 0856ea680..7e2b04242 100644 --- a/Minecraft.Client/CMakeLists.txt +++ b/Minecraft.Client/CMakeLists.txt @@ -294,21 +294,21 @@ set(Common__Source_Files__Tutorial__Tasks source_group("Common\\Source Files\\Tutorial\\Tasks" FILES ${Common__Source_Files__Tutorial__Tasks}) set(Common__Source_Files__UI -# "Common/UI/UI.h" -# "Common/UI/UIBitmapFont.cpp" -# "Common/UI/UIBitmapFont.h" -# "Common/UI/UIController.cpp" -# "Common/UI/UIController.h" -# "Common/UI/UIFontData.cpp" -# "Common/UI/UIFontData.h" -# "Common/UI/UIGroup.cpp" -# "Common/UI/UIGroup.h" -# "Common/UI/UILayer.cpp" -# "Common/UI/UILayer.h" -# "Common/UI/UIScene.cpp" -# "Common/UI/UIScene.h" -# "Common/UI/UITTFFont.cpp" -# "Common/UI/UITTFFont.h" + "Common/UI/UI.h" + "Common/UI/UIBitmapFont.cpp" + "Common/UI/UIBitmapFont.h" + "Common/UI/UIController.cpp" + "Common/UI/UIController.h" + "Common/UI/UIFontData.cpp" + "Common/UI/UIFontData.h" + "Common/UI/UIGroup.cpp" + "Common/UI/UIGroup.h" + "Common/UI/UILayer.cpp" + "Common/UI/UILayer.h" + "Common/UI/UIScene.cpp" + "Common/UI/UIScene.h" + "Common/UI/UITTFFont.cpp" + "Common/UI/UITTFFont.h" ) source_group("Common\\Source Files\\UI" FILES ${Common__Source_Files__UI}) diff --git a/Minecraft.Client/Common/UI/UIController.cpp b/Minecraft.Client/Common/UI/UIController.cpp index f777805e7..5a03f7a38 100644 --- a/Minecraft.Client/Common/UI/UIController.cpp +++ b/Minecraft.Client/Common/UI/UIController.cpp @@ -1284,7 +1284,7 @@ void UIController::setupCustomDrawGameStateAndMatrices(UIScene *scene, CustomDra void UIController::endCustomDrawGameState() { -#ifdef __ORBIS__ +#if defined(__ORBIS__) || defined(__linux__) // TO BE IMPLEMENTED RenderManager.Clear(GL_DEPTH_BUFFER_BIT); #else @@ -2505,7 +2505,7 @@ C4JStorage::EMessageResult UIController::RequestContentRestrictedMessageBox(UINT if (message == -1) { -#if defined(_XBOX_ONE) || defined(_WINDOWS64) +#if defined(_XBOX_ONE) || defined(_WINDOWS64) || defined(__linux__) // IDS_CONTENT_RESTRICTION doesn't exist on XB1 message = IDS_NO_USER_CREATED_CONTENT_PRIVILEGE_CREATE; #else @@ -3012,4 +3012,4 @@ void UIController::SendTouchInput(unsigned int iPad, unsigned int key, bool bPre } -#endif \ No newline at end of file +#endif