Change UI module Ids
This commit is contained in:
parent
ef3397eeda
commit
42a412c11a
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user