more
This commit is contained in:
46
panorama/layout/custom_game/custom_ui_manifest.xml
Normal file
46
panorama/layout/custom_game/custom_ui_manifest.xml
Normal file
@@ -0,0 +1,46 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user