Files
2HUCardTDGame/content/panorama/layout/custom_game/custom_ui_manifest.xml
2021-11-10 08:48:00 -05:00

47 lines
1.7 KiB
XML

<root>
<scripts>
<include src="s2r://panorama/scripts/custom_game/util.vjs_c" />
</scripts>
<script>
//GameUI.CustomUIConfig().Config =
//{
// game_name: "touhou"
//};
GameUI.SetDefaultUIEnabled( DotaDefaultUIElement_t.DOTA_DEFAULT_UI_FLYOUT_SCOREBOARD, false );
GameUI.SetDefaultUIEnabled( DotaDefaultUIElement_t.DOTA_DEFAULT_UI_ENDGAME, false );
HidePickScreen();
function HidePickScreen() {
if (Game.GameStateIsBefore(DOTA_GameState.DOTA_GAMERULES_STATE_HERO_SELECTION)) {
FindDotaHudElement("PreGame").style.opacity = "0";
$.Schedule(0.6, HidePickScreen);
} else {
FindDotaHudElement("PreGame").style.opacity = "1";
}
}
GameEvents.Subscribe('debug_msg', (data) => {
if (typeof data.msg == 'object') {
$.Msg("-------- " + Math.floor(Game.GetGameTime() * 100 + 0.5) / 100 + " : " + data.msg);
for (k in data.msg){
$.Msg(k + " : " + data.msg[k]);
}
} else {
$.Msg("-------- " + Math.floor(Game.GetGameTime() * 100 + 0.5) / 100 + " : " + data.msg);
}
});
FindDotaHudElement( "PreGame" ).FindChild( "Header" ).style.visibility = "collapse";
</script>
<Panel>
<CustomUIElement type="Hud" layoutfile="file://{resources}/layout/custom_game/frames/message/message.xml" />
<CustomUIElement type="Hud" layoutfile="file://{resources}/layout/custom_game/dps_panel.xml" />
<CustomUIElement type="Hud" layoutfile="file://{resources}/layout/custom_game/info.xml" />
<CustomUIElement type="Hud" layoutfile="file://{resources}/layout/custom_game/shop.xml" />
<CustomUIElement type="EndScreen" layoutfile="file://{resources}/layout/custom_game/end_screen.xml" />
</Panel>
</root>