Change UI module Ids

This commit is contained in:
Beu 2023-05-06 22:15:27 +02:00
parent ef3397eeda
commit 42a412c11a
2 changed files with 4 additions and 4 deletions

View File

@ -72,7 +72,7 @@ void Render() {
CGameCtnChallenge@ map = cast<CGameCtnChallenge>(GetApp().Challenge); CGameCtnChallenge@ map = cast<CGameCtnChallenge>(GetApp().Challenge);
#endif #endif
if (map is null && editor is null) { if (map is null || editor is null) {
menu_visibility = false; menu_visibility = false;
return; return;
} }
@ -118,7 +118,7 @@ void RenderMenu() {
CGameCtnChallenge@ map = cast<CGameCtnChallenge>(GetApp().Challenge); CGameCtnChallenge@ map = cast<CGameCtnChallenge>(GetApp().Challenge);
#endif #endif
if (map is null && editor is null) { if (map is null || editor is null) {
return; return;
} }

View File

@ -50,10 +50,10 @@ void Main() {
CGameManiaAppPlayground@ ManiaApp = cast<CGameManiaAppPlayground>(network.ClientManiaAppPlayground); CGameManiaAppPlayground@ ManiaApp = cast<CGameManiaAppPlayground>(network.ClientManiaAppPlayground);
if (ManiaApp !is null) { if (ManiaApp !is null) {
if (UILayer_LiveRanking is null) { if (UILayer_LiveRanking is null) {
@UILayer_LiveRanking = findUILayer(ManiaApp.UILayers, "UIModule_TMWTTeams_LiveRanking"); @UILayer_LiveRanking = findUILayer(ManiaApp.UILayers, "UIModule_TMWTCommon_LiveRanking");
} }
if (UILayer_TeamsScores is null) { if (UILayer_TeamsScores is null) {
@UILayer_TeamsScores = findUILayer(ManiaApp.UILayers, "UIModule_TMWTTeams_Header"); @UILayer_TeamsScores = findUILayer(ManiaApp.UILayers, "UIModule_TMWTCommon_Header");
} }
if (UILayer_TeamsScores is null && UILayer_LiveRanking is null) { if (UILayer_TeamsScores is null && UILayer_LiveRanking is null) {
UI::ShowNotification("\\$77d" + Icons::User + " \\$fffTMWT Interfaces Remover", "Can't find Interfaces to hide, disabling the plugin"); UI::ShowNotification("\\$77d" + Icons::User + " \\$fffTMWT Interfaces Remover", "Can't find Interfaces to hide, disabling the plugin");