fix: Update button template resolution and improve error logging for missing components

This commit is contained in:
2025-12-15 09:56:55 +01:00
parent 4d8279719c
commit 270a92c617
3 changed files with 46 additions and 21 deletions

View File

@@ -305,10 +305,11 @@ namespace KCM
return;
}
var topLevelCanvas = Constants.MainMenuUI_T.Find("TopLevelUICanvas");
var topLevelCanvas = Constants.MainMenuUI_T.Find("MainMenu/TopLevel")
?? Constants.MainMenuUI_T.Find("TopLevelUICanvas");
if (topLevelCanvas == null)
{
Main.helper.Log("TopLevelUICanvas not found in ServerBrowser");
Main.helper.Log("TopLevel/TopLevelUICanvas not found in ServerBrowser");
return;
}