diff --git a/src/OpenSHC/UI/MenuItems/DisableArabTroops/MenuItemRenderFunction_DisableArabTroops_Main.cpp b/src/OpenSHC/UI/MenuItems/DisableArabTroops/MenuItemRenderFunction_DisableArabTroops_Main.cpp new file mode 100644 index 0000000000..40393c06e1 --- /dev/null +++ b/src/OpenSHC/UI/MenuItems/DisableArabTroops/MenuItemRenderFunction_DisableArabTroops_Main.cpp @@ -0,0 +1,69 @@ +#include "../DisableArabTroops.func.hpp" + +#include "OpenSHC/Text/TextManager.func.hpp" +#include "OpenSHC/UI/MenuItems/General.func.hpp" +#include "OpenSHC/UI/Rendering/AlphaAndButtonSurface.func.hpp" +#include "OpenSHC/UI/Rendering/TextureRenderCore.func.hpp" +#include "OpenSHC/DE/SHCDE/eTextSections.hpp" +#include "OpenSHC/IO/Graphics/GmID.hpp" +#include "OpenSHC/Rendering/Colors/ColorsEnum.hpp" +#include "OpenSHC/Rendering/Enums/RenderTarget.hpp" +#include "OpenSHC/Text/TextAlignment.hpp" + +#include "OpenSHC/Globals/AlphaAndButtonSurfaceObj.hpp" +#include "OpenSHC/Globals/DAT_ButtonCurrentlyInteracting.hpp" +#include "OpenSHC/Globals/DAT_ButtonW.hpp" +#include "OpenSHC/Globals/DAT_ButtonX.hpp" +#include "OpenSHC/Globals/DAT_ButtonY.hpp" +#include "OpenSHC/Globals/DAT_MapPropertiesState.hpp" +#include "OpenSHC/Globals/DAT_TextManagerObject.hpp" +#include "OpenSHC/Globals/DAT_TextureRenderCoreObject.hpp" + +namespace OpenSHC { +namespace UI { + namespace MenuItems { + + // FUNCTION: STRONGHOLDCRUSADER 0x004BB680 + void DisableArabTroops::MenuItemRenderFunction_DisableArabTroops_Main(int troopIndex, ...) + { + if (troopIndex >= 0 && troopIndex <= 7) { + MACRO_CALL(OpenSHC::UI::MenuItems::General_Func:: + MenuItemRenderFunction_General_RenderCurrentButtonWithPossibleAlphaTexOnScreenMenuSurface)(); + if (DAT_MapPropertiesState::instance.SEC_MercRecruitable[troopIndex]) { + return; + } + DAT_TextureRenderCoreObject::instance.drawBufferChoiceValue = OpenSHC::Rendering::Enums::RT_SCREEN_MENU; + MACRO_CALL_MEMBER(OpenSHC::UI::Rendering::TextureRenderCore_Func::renderGMWithBlending, + DAT_TextureRenderCoreObject::ptr)(OpenSHC::IO::Graphics::GID_INTERFACE_ICONS_2, 45, + DAT_ButtonX::instance + 9, DAT_ButtonY::instance + 3, 12); + DAT_TextureRenderCoreObject::instance.drawBufferChoiceValue = OpenSHC::Rendering::Enums::RT_MAP_GAME; + return; + } + if (troopIndex != -3) { + return; + } + MACRO_CALL_MEMBER(OpenSHC::UI::Rendering::AlphaAndButtonSurface_Func::renderBasicButton, + AlphaAndButtonSurfaceObj::ptr)(0, OpenSHC::Rendering::Enums::RT_CONTEXT_BASED); + // the position in each path, which MSVC hoists the way the original does (above the if: 100.0% -> 98.2%) + if (!DAT_ButtonCurrentlyInteracting::instance) { + int const textX = DAT_ButtonW::instance / 2 + DAT_ButtonX::instance; + int const textY = DAT_ButtonY::instance + 6; + // "Exit" + MACRO_CALL_MEMBER(OpenSHC::Text::TextManager_Func::renderTextToScreen, DAT_TextManagerObject::ptr)( + MACRO_CALL_MEMBER(OpenSHC::Text::TextManager_Func::getTextStringInGroupAtOffset, + DAT_TextManagerObject::ptr)(OpenSHC::DE::SHCDE::TEXT_SCENARIO, 3), + textX, textY, OpenSHC::Text::TTA_CENTER, OpenSHC::Rendering::Colors::COL_C2F0EB, 18, FALSE, 0); + return; + } + int const textX = DAT_ButtonW::instance / 2 + DAT_ButtonX::instance; + int const textY = DAT_ButtonY::instance + 6; + // "Exit" + MACRO_CALL_MEMBER(OpenSHC::Text::TextManager_Func::renderTextToScreen, DAT_TextManagerObject::ptr)( + MACRO_CALL_MEMBER(OpenSHC::Text::TextManager_Func::getTextStringInGroupAtOffset, + DAT_TextManagerObject::ptr)(OpenSHC::DE::SHCDE::TEXT_SCENARIO, 3), + textX, textY, OpenSHC::Text::TTA_CENTER, OpenSHC::Rendering::Colors::COL_CCFAFF, 18, FALSE, 0); + } + + } +} +} diff --git a/src/OpenSHC/UI/MenuItems/DisableEuroTroops/MenuItemRenderFunction_DisableEuroTroops_Main.cpp b/src/OpenSHC/UI/MenuItems/DisableEuroTroops/MenuItemRenderFunction_DisableEuroTroops_Main.cpp new file mode 100644 index 0000000000..d43c1eb7ac --- /dev/null +++ b/src/OpenSHC/UI/MenuItems/DisableEuroTroops/MenuItemRenderFunction_DisableEuroTroops_Main.cpp @@ -0,0 +1,76 @@ +#include "../DisableEuroTroops.func.hpp" + +#include "OpenSHC/Text/TextManager.func.hpp" +#include "OpenSHC/UI/MenuItems/General.func.hpp" +#include "OpenSHC/UI/Rendering/AlphaAndButtonSurface.func.hpp" +#include "OpenSHC/UI/Rendering/TextureRenderCore.func.hpp" +#include "OpenSHC/DE/SHCDE/eTextSections.hpp" +#include "OpenSHC/IO/Graphics/GmID.hpp" +#include "OpenSHC/Rendering/Colors/ColorsEnum.hpp" +#include "OpenSHC/Rendering/Enums/RenderTarget.hpp" +#include "OpenSHC/Text/TextAlignment.hpp" + +#include "OpenSHC/Globals/AlphaAndButtonSurfaceObj.hpp" +#include "OpenSHC/Globals/DAT_ButtonCurrentlyInteracting.hpp" +#include "OpenSHC/Globals/DAT_ButtonW.hpp" +#include "OpenSHC/Globals/DAT_ButtonX.hpp" +#include "OpenSHC/Globals/DAT_ButtonY.hpp" +#include "OpenSHC/Globals/DAT_MapPropertiesState.hpp" +#include "OpenSHC/Globals/DAT_TextManagerObject.hpp" +#include "OpenSHC/Globals/DAT_TextureRenderCoreObject.hpp" + +namespace OpenSHC { +namespace UI { + namespace MenuItems { + + // FUNCTION: STRONGHOLDCRUSADER 0x004BB570 + void DisableEuroTroops::MenuItemRenderFunction_DisableEuroTroops_Main(int troopIndex, ...) + { + if (troopIndex >= 0 && troopIndex <= 7) { + // the spearmen's button is drawn 8 pixels further left + if (troopIndex == 2) { + DAT_ButtonX::instance -= 8; + } + MACRO_CALL(OpenSHC::UI::MenuItems::General_Func:: + MenuItemRenderFunction_General_RenderCurrentButtonWithPossibleAlphaTexOnScreenMenuSurface)(); + if (DAT_MapPropertiesState::instance.barracksRecruitability.array.barracksRecruitability[troopIndex]) { + return; + } + if (troopIndex == 2) { + DAT_ButtonX::instance += 8; + } + DAT_TextureRenderCoreObject::instance.drawBufferChoiceValue = OpenSHC::Rendering::Enums::RT_SCREEN_MENU; + MACRO_CALL_MEMBER(OpenSHC::UI::Rendering::TextureRenderCore_Func::renderGMWithBlending, + DAT_TextureRenderCoreObject::ptr)(OpenSHC::IO::Graphics::GID_INTERFACE_ICONS_2, 45, + DAT_ButtonX::instance + 9, DAT_ButtonY::instance + 3, 12); + DAT_TextureRenderCoreObject::instance.drawBufferChoiceValue = OpenSHC::Rendering::Enums::RT_MAP_GAME; + return; + } + if (troopIndex != -3) { + return; + } + MACRO_CALL_MEMBER(OpenSHC::UI::Rendering::AlphaAndButtonSurface_Func::renderBasicButton, + AlphaAndButtonSurfaceObj::ptr)(0, OpenSHC::Rendering::Enums::RT_CONTEXT_BASED); + // the position in each path, which MSVC hoists the way the original does (above the if: 100.0% -> 98.4%) + if (!DAT_ButtonCurrentlyInteracting::instance) { + int const textX = DAT_ButtonW::instance / 2 + DAT_ButtonX::instance; + int const textY = DAT_ButtonY::instance + 6; + // "Exit" + MACRO_CALL_MEMBER(OpenSHC::Text::TextManager_Func::renderTextToScreen, DAT_TextManagerObject::ptr)( + MACRO_CALL_MEMBER(OpenSHC::Text::TextManager_Func::getTextStringInGroupAtOffset, + DAT_TextManagerObject::ptr)(OpenSHC::DE::SHCDE::TEXT_SCENARIO, 3), + textX, textY, OpenSHC::Text::TTA_CENTER, OpenSHC::Rendering::Colors::COL_C2F0EB, 18, FALSE, 0); + return; + } + int const textX = DAT_ButtonW::instance / 2 + DAT_ButtonX::instance; + int const textY = DAT_ButtonY::instance + 6; + // "Exit" + MACRO_CALL_MEMBER(OpenSHC::Text::TextManager_Func::renderTextToScreen, DAT_TextManagerObject::ptr)( + MACRO_CALL_MEMBER(OpenSHC::Text::TextManager_Func::getTextStringInGroupAtOffset, + DAT_TextManagerObject::ptr)(OpenSHC::DE::SHCDE::TEXT_SCENARIO, 3), + textX, textY, OpenSHC::Text::TTA_CENTER, OpenSHC::Rendering::Colors::COL_CCFAFF, 18, FALSE, 0); + } + + } +} +} diff --git a/src/OpenSHC/UI/MenuItems/EnterTitleOnGameStart/MenuItemRenderFunction_EnterTitleOnGameStart_Button.cpp b/src/OpenSHC/UI/MenuItems/EnterTitleOnGameStart/MenuItemRenderFunction_EnterTitleOnGameStart_Button.cpp new file mode 100644 index 0000000000..45c16d990e --- /dev/null +++ b/src/OpenSHC/UI/MenuItems/EnterTitleOnGameStart/MenuItemRenderFunction_EnterTitleOnGameStart_Button.cpp @@ -0,0 +1,46 @@ +#include "../EnterTitleOnGameStart.func.hpp" + +#include "OpenSHC/Text/TextManager.func.hpp" +#include "OpenSHC/UI/Rendering/AlphaAndButtonSurface.func.hpp" +#include "OpenSHC/DE/SHCDE/eTextSections.hpp" +#include "OpenSHC/Rendering/Colors/ColorsEnum.hpp" +#include "OpenSHC/Rendering/Enums/RenderTarget.hpp" +#include "OpenSHC/Text/TextAlignment.hpp" + +#include "OpenSHC/Globals/AlphaAndButtonSurfaceObj.hpp" +#include "OpenSHC/Globals/DAT_ButtonCurrentlyInteracting.hpp" +#include "OpenSHC/Globals/DAT_ButtonW.hpp" +#include "OpenSHC/Globals/DAT_ButtonX.hpp" +#include "OpenSHC/Globals/DAT_ButtonY.hpp" +#include "OpenSHC/Globals/DAT_TextManagerObject.hpp" + +namespace OpenSHC { +namespace UI { + namespace MenuItems { + + // FUNCTION: STRONGHOLDCRUSADER 0x00491C50 + void EnterTitleOnGameStart::MenuItemRenderFunction_EnterTitleOnGameStart_Button(int textIndex, ...) + { + MACRO_CALL_MEMBER(OpenSHC::UI::Rendering::AlphaAndButtonSurface_Func::renderBasicButton, + AlphaAndButtonSurfaceObj::ptr)(0, OpenSHC::Rendering::Enums::RT_CONTEXT_BASED); + // the position in each path, which MSVC hoists the way the original does (above the if: 100.0% -> 97.7%) + if (!DAT_ButtonCurrentlyInteracting::instance) { + int const textX = DAT_ButtonW::instance / 2 + DAT_ButtonX::instance; + int const textY = DAT_ButtonY::instance + 7; + MACRO_CALL_MEMBER(OpenSHC::Text::TextManager_Func::renderTextToScreen, DAT_TextManagerObject::ptr)( + MACRO_CALL_MEMBER(OpenSHC::Text::TextManager_Func::getTextStringInGroupAtOffset, + DAT_TextManagerObject::ptr)(OpenSHC::DE::SHCDE::TEXT_BUBBLE_HELP_TEXT, textIndex), + textX, textY, OpenSHC::Text::TTA_CENTER, OpenSHC::Rendering::Colors::COL_C2F0EB, 18, FALSE, 0); + return; + } + int const textX = DAT_ButtonW::instance / 2 + DAT_ButtonX::instance; + int const textY = DAT_ButtonY::instance + 7; + MACRO_CALL_MEMBER(OpenSHC::Text::TextManager_Func::renderInGameTextWithShadow, DAT_TextManagerObject::ptr)( + MACRO_CALL_MEMBER(OpenSHC::Text::TextManager_Func::getTextStringInGroupAtOffset, + DAT_TextManagerObject::ptr)(OpenSHC::DE::SHCDE::TEXT_BUBBLE_HELP_TEXT, textIndex), + textX, textY, OpenSHC::Text::TTA_CENTER, OpenSHC::Rendering::Colors::COL_CCFAFF, 0, 18, FALSE, 0); + } + + } +} +} diff --git a/src/OpenSHC/UI/MenuItems/SendReceiveMap/MenuItemRenderFunction_SendReceiveMap_Main.cpp b/src/OpenSHC/UI/MenuItems/SendReceiveMap/MenuItemRenderFunction_SendReceiveMap_Main.cpp new file mode 100644 index 0000000000..853a821d75 --- /dev/null +++ b/src/OpenSHC/UI/MenuItems/SendReceiveMap/MenuItemRenderFunction_SendReceiveMap_Main.cpp @@ -0,0 +1,51 @@ +#include "../SendReceiveMap.func.hpp" + +#include "OpenSHC/Text/TextManager.func.hpp" +#include "OpenSHC/UI/Rendering/AlphaAndButtonSurface.func.hpp" +#include "OpenSHC/DE/SHCDE/eTextSections.hpp" +#include "OpenSHC/Rendering/Colors/ColorsEnum.hpp" +#include "OpenSHC/Rendering/Enums/RenderTarget.hpp" +#include "OpenSHC/Text/TextAlignment.hpp" + +#include "OpenSHC/Globals/AlphaAndButtonSurfaceObj.hpp" +#include "OpenSHC/Globals/DAT_ButtonCurrentlyInteracting.hpp" +#include "OpenSHC/Globals/DAT_ButtonW.hpp" +#include "OpenSHC/Globals/DAT_ButtonX.hpp" +#include "OpenSHC/Globals/DAT_ButtonY.hpp" +#include "OpenSHC/Globals/DAT_GameSynchronyState.hpp" +#include "OpenSHC/Globals/DAT_TextManagerObject.hpp" + +namespace OpenSHC { +namespace UI { + namespace MenuItems { + + // FUNCTION: STRONGHOLDCRUSADER 0x004AC440 + void SendReceiveMap::MenuItemRenderFunction_SendReceiveMap_Main(int buttonID, ...) + { + // "Send" is hidden while a map is being transferred + if (DAT_GameSynchronyState::instance.DAT_MapFileReceivingState != 0 && buttonID == 68) { + return; + } + MACRO_CALL_MEMBER(OpenSHC::UI::Rendering::AlphaAndButtonSurface_Func::renderBasicButton, + AlphaAndButtonSurfaceObj::ptr)(0, OpenSHC::Rendering::Enums::RT_CONTEXT_BASED); + // the position in each path, which MSVC hoists the way the original does (above the if: 100.0% -> 97.3%) + if (DAT_ButtonCurrentlyInteracting::instance) { + int const textX = DAT_ButtonW::instance / 2 + DAT_ButtonX::instance; + int const textY = DAT_ButtonY::instance + 6; + MACRO_CALL_MEMBER(OpenSHC::Text::TextManager_Func::renderTextToScreen, DAT_TextManagerObject::ptr)( + MACRO_CALL_MEMBER(OpenSHC::Text::TextManager_Func::getTextStringInGroupAtOffset, + DAT_TextManagerObject::ptr)(OpenSHC::DE::SHCDE::TEXT_MULTIPLAYER_CONNECTION, buttonID), + textX, textY, OpenSHC::Text::TTA_CENTER, OpenSHC::Rendering::Colors::COL_CCFAFF, 18, FALSE, 0); + return; + } + int const textX = DAT_ButtonW::instance / 2 + DAT_ButtonX::instance; + int const textY = DAT_ButtonY::instance + 6; + MACRO_CALL_MEMBER(OpenSHC::Text::TextManager_Func::renderTextToScreen, DAT_TextManagerObject::ptr)( + MACRO_CALL_MEMBER(OpenSHC::Text::TextManager_Func::getTextStringInGroupAtOffset, + DAT_TextManagerObject::ptr)(OpenSHC::DE::SHCDE::TEXT_MULTIPLAYER_CONNECTION, buttonID), + textX, textY, OpenSHC::Text::TTA_CENTER, OpenSHC::Rendering::Colors::COL_C2F0EB, 18, FALSE, 0); + } + + } +} +} diff --git a/src/OpenSHC/UI/MenuItems/TutorialBox/MenuItemRenderFunction_TutorialBox_Main.cpp b/src/OpenSHC/UI/MenuItems/TutorialBox/MenuItemRenderFunction_TutorialBox_Main.cpp new file mode 100644 index 0000000000..ca14132072 --- /dev/null +++ b/src/OpenSHC/UI/MenuItems/TutorialBox/MenuItemRenderFunction_TutorialBox_Main.cpp @@ -0,0 +1,71 @@ +#include "../TutorialBox.func.hpp" + +#include "OpenSHC/Text/TextManager.func.hpp" +#include "OpenSHC/UI/Rendering/AlphaAndButtonSurface.func.hpp" +#include "OpenSHC/DE/SHCDE/eTextSections.hpp" +#include "OpenSHC/Rendering/Colors/ColorsEnum.hpp" +#include "OpenSHC/Rendering/Enums/RenderTarget.hpp" +#include "OpenSHC/Text/TextAlignment.hpp" + +#include "OpenSHC/Globals/AlphaAndButtonSurfaceObj.hpp" +#include "OpenSHC/Globals/DAT_00df5540.hpp" +#include "OpenSHC/Globals/DAT_00df5558.hpp" +#include "OpenSHC/Globals/DAT_00df555c.hpp" +#include "OpenSHC/Globals/DAT_00df5560.hpp" +#include "OpenSHC/Globals/DAT_ButtonCurrentlyInteracting.hpp" +#include "OpenSHC/Globals/DAT_ButtonW.hpp" +#include "OpenSHC/Globals/DAT_ButtonX.hpp" +#include "OpenSHC/Globals/DAT_ButtonY.hpp" +#include "OpenSHC/Globals/DAT_SoundSystemState.hpp" +#include "OpenSHC/Globals/DAT_TextManagerObject.hpp" + +namespace OpenSHC { +namespace UI { + namespace MenuItems { + + // FUNCTION: STRONGHOLDCRUSADER 0x004BD0F0 + void TutorialBox::MenuItemRenderFunction_TutorialBox_Main(int button, ...) + { + // "Continue" + int buttonText = 1; + if (DAT_00df5540::instance != 0) { + return; + } + if (button == 2) { + // "Exit" + buttonText = 2; + } else { + if (!DAT_00df5560::instance) { + return; + } + if (DAT_00df5558::instance < DAT_00df555c::instance - 1 + && DAT_SoundSystemState::instance.waveOutOpenUnk_0x8 + && DAT_SoundSystemState::instance.soundActiveUnk_0x0) { + // "Skip" + buttonText = 5; + } + } + MACRO_CALL_MEMBER(OpenSHC::UI::Rendering::AlphaAndButtonSurface_Func::renderBasicButton, + AlphaAndButtonSurfaceObj::ptr)(0, OpenSHC::Rendering::Enums::RT_CONTEXT_BASED); + // the position in each path, which MSVC hoists the way the original does (above the if: 100.0% -> 97.9%) + if (DAT_ButtonCurrentlyInteracting::instance) { + // >> 1: the original halves without the sign fix-up (/ 2: 100.0% -> 93.9%) + int const textX = (DAT_ButtonW::instance >> 1) + DAT_ButtonX::instance; + int const textY = DAT_ButtonY::instance + 8; + MACRO_CALL_MEMBER(OpenSHC::Text::TextManager_Func::renderTextToScreen, DAT_TextManagerObject::ptr)( + MACRO_CALL_MEMBER(OpenSHC::Text::TextManager_Func::getTextStringInGroupAtOffset, + DAT_TextManagerObject::ptr)(OpenSHC::DE::SHCDE::TEXT_TUTORIAL_BUTTONS, buttonText), + textX, textY, OpenSHC::Text::TTA_CENTER, OpenSHC::Rendering::Colors::COL_CCFAFF, 18, FALSE, 0); + return; + } + int const textX = (DAT_ButtonW::instance >> 1) + DAT_ButtonX::instance; + int const textY = DAT_ButtonY::instance + 8; + MACRO_CALL_MEMBER(OpenSHC::Text::TextManager_Func::renderTextToScreen, DAT_TextManagerObject::ptr)( + MACRO_CALL_MEMBER(OpenSHC::Text::TextManager_Func::getTextStringInGroupAtOffset, + DAT_TextManagerObject::ptr)(OpenSHC::DE::SHCDE::TEXT_TUTORIAL_BUTTONS, buttonText), + textX, textY, OpenSHC::Text::TTA_CENTER, OpenSHC::Rendering::Colors::COL_C2F0EB, 18, FALSE, 0); + } + + } +} +} diff --git a/src/OpenSHC/UI/MenuItems/Unused/MenuItemRenderFunction_UnusedSetName_ButtonsUnk.cpp b/src/OpenSHC/UI/MenuItems/Unused/MenuItemRenderFunction_UnusedSetName_ButtonsUnk.cpp new file mode 100644 index 0000000000..42163bea97 --- /dev/null +++ b/src/OpenSHC/UI/MenuItems/Unused/MenuItemRenderFunction_UnusedSetName_ButtonsUnk.cpp @@ -0,0 +1,56 @@ +#include "../Unused.func.hpp" + +#include "OpenSHC/Text/TextManager.func.hpp" +#include "OpenSHC/UI/Rendering/AlphaAndButtonSurface.func.hpp" +#include "OpenSHC/DE/SHCDE/eTextSections.hpp" +#include "OpenSHC/Rendering/Colors/ColorsEnum.hpp" +#include "OpenSHC/Rendering/Enums/RenderTarget.hpp" +#include "OpenSHC/Text/TextAlignment.hpp" + +#include "OpenSHC/Globals/AlphaAndButtonSurfaceObj.hpp" +#include "OpenSHC/Globals/DAT_ButtonCurrentlyInteracting.hpp" +#include "OpenSHC/Globals/DAT_ButtonUnknownZero.hpp" +#include "OpenSHC/Globals/DAT_ButtonW.hpp" +#include "OpenSHC/Globals/DAT_ButtonX.hpp" +#include "OpenSHC/Globals/DAT_ButtonY.hpp" +#include "OpenSHC/Globals/DAT_GameCore.hpp" +#include "OpenSHC/Globals/DAT_TextManagerObject.hpp" + +namespace OpenSHC { +namespace UI { + namespace MenuItems { + + // FUNCTION: STRONGHOLDCRUSADER 0x00426750 + void Unused::MenuItemRenderFunction_UnusedSetName_ButtonsUnk(int button, ...) + { + DAT_ButtonUnknownZero::instance = TRUE; + // == TRUE: the original tests for 1 and then for 0 (a truthiness test: 100.0% -> 85.4%) + // "OK" is hidden while a title is set, "Change Your Title, Lord?" while one is typed in + if ((DAT_GameCore::instance.isNameEntryActive == TRUE && button == 8) + || (!DAT_GameCore::instance.isNameEntryActive && button == 25)) { + return; + } + DAT_ButtonUnknownZero::instance = FALSE; + MACRO_CALL_MEMBER(OpenSHC::UI::Rendering::AlphaAndButtonSurface_Func::renderBasicButton, + AlphaAndButtonSurfaceObj::ptr)(0, OpenSHC::Rendering::Enums::RT_CONTEXT_BASED); + // one call and position per path, which MSVC merges (position above the if: 100.0% -> 97.7%) + if (!DAT_ButtonCurrentlyInteracting::instance) { + int const textX = DAT_ButtonW::instance / 2 + DAT_ButtonX::instance; + int const textY = DAT_ButtonY::instance + 6; + MACRO_CALL_MEMBER(OpenSHC::Text::TextManager_Func::renderTextToScreen, DAT_TextManagerObject::ptr)( + MACRO_CALL_MEMBER(OpenSHC::Text::TextManager_Func::getTextStringInGroupAtOffset, + DAT_TextManagerObject::ptr)(OpenSHC::DE::SHCDE::TEXT_MAINOPTIONS, button), + textX, textY, OpenSHC::Text::TTA_CENTER, OpenSHC::Rendering::Colors::COL_C2F0EB, 17, FALSE, 0); + return; + } + int const textX = DAT_ButtonW::instance / 2 + DAT_ButtonX::instance; + int const textY = DAT_ButtonY::instance + 6; + MACRO_CALL_MEMBER(OpenSHC::Text::TextManager_Func::renderTextToScreen, DAT_TextManagerObject::ptr)( + MACRO_CALL_MEMBER(OpenSHC::Text::TextManager_Func::getTextStringInGroupAtOffset, + DAT_TextManagerObject::ptr)(OpenSHC::DE::SHCDE::TEXT_MAINOPTIONS, button), + textX, textY, OpenSHC::Text::TTA_CENTER, OpenSHC::Rendering::Colors::COL_CCFAFF, 17, FALSE, 0); + } + + } +} +} diff --git a/status/addresses-SHC-3BB0A8C1.txt b/status/addresses-SHC-3BB0A8C1.txt index e90b860d04..e99388bbb4 100644 --- a/status/addresses-SHC-3BB0A8C1.txt +++ b/status/addresses-SHC-3BB0A8C1.txt @@ -6773,7 +6773,7 @@ SHC_3BB0A8C1_0x004266A0 | 100.0% | Reimplemented SHC_3BB0A8C1_0x004266E0 | 0.0% | Pending -SHC_3BB0A8C1_0x00426750 | 0.0% | Pending +SHC_3BB0A8C1_0x00426750 | 100.0% | Reimplemented SHC_3BB0A8C1_0x004267F0 | 100.0% | Reimplemented @@ -23425,7 +23425,7 @@ SHC_3BB0A8C1_0x00491BF0 | 100.0% | Reimplemented SHC_3BB0A8C1_0x00491C20 | 100.0% | Reimplemented -SHC_3BB0A8C1_0x00491C50 | 0.0% | Pending +SHC_3BB0A8C1_0x00491C50 | 100.0% | Reimplemented SHC_3BB0A8C1_0x00491CE0 | 0.0% | Pending @@ -25785,7 +25785,7 @@ SHC_3BB0A8C1_0x004AC280 | 0.0% | Pending SHC_3BB0A8C1_0x004AC310 | 0.0% | Pending -SHC_3BB0A8C1_0x004AC440 | 0.0% | Pending +SHC_3BB0A8C1_0x004AC440 | 100.0% | Reimplemented SHC_3BB0A8C1_0x004AC4C0 | 0.0% | Pending @@ -29289,11 +29289,11 @@ SHC_3BB0A8C1_0x004BB530 | 0.0% | Pending SHC_3BB0A8C1_0x004BB540 | 100.0% | Reimplemented -SHC_3BB0A8C1_0x004BB570 | 0.0% | Pending +SHC_3BB0A8C1_0x004BB570 | 100.0% | Reimplemented SHC_3BB0A8C1_0x004BB650 | 100.0% | Reimplemented -SHC_3BB0A8C1_0x004BB680 | 0.0% | Pending +SHC_3BB0A8C1_0x004BB680 | 100.0% | Reimplemented SHC_3BB0A8C1_0x004BB740 | 0.0% | Pending @@ -30173,7 +30173,7 @@ SHC_3BB0A8C1_0x004BCBA0 | 0.0% | Pending SHC_3BB0A8C1_0x004BCEC0 | 100.0% | Reimplemented -SHC_3BB0A8C1_0x004BD0F0 | 0.0% | Pending +SHC_3BB0A8C1_0x004BD0F0 | 100.0% | Reimplemented SHC_3BB0A8C1_0x004BD1B0 | 100.0% | Reimplemented