real merge

This commit is contained in:
2022-07-23 13:13:52 -04:00
parent 7a3bbc10c8
commit 2af94f26ca
13 changed files with 240 additions and 345 deletions

View File

@@ -1,9 +1,9 @@
<!-- xml reconstructed by ValveResourceFormat: https://vrf.steamdb.info/ -->
<root> <root>
<scripts> <scripts>
<include src="s2r://panorama/scripts/custom_game/util.vjs_c" /> <include src="s2r://panorama/scripts/custom_game/util.vjs_c" />
</scripts> </scripts>
<script><![CDATA[
<script>
//GameUI.CustomUIConfig().Config = //GameUI.CustomUIConfig().Config =
//{ //{
// game_name: "touhou" // game_name: "touhou"
@@ -33,14 +33,13 @@
} }
}); });
FindDotaHudElement( "PreGame" ).FindChild( "Header" ).style.visibility = "collapse"; FindDotaHudElement( "PreGame" ).FindChild( "Header" ).style.visibility = "collapse";
</script> ]]></script>
<Panel> <Panel>
<CustomUIElement type="Hud" layoutfile="file://{resources}/layout/custom_game/frames/message/message.xml" /> <CustomUIElement type="Hud" layoutfile="s2r://panorama/layout/custom_game/frames/message/message.vxml_c" />
<CustomUIElement type="Hud" layoutfile="file://{resources}/layout/custom_game/dps_panel.xml" /> <CustomUIElement type="Hud" layoutfile="s2r://panorama/layout/custom_game/dps_panel.vxml_c" />
<CustomUIElement type="Hud" layoutfile="file://{resources}/layout/custom_game/info.xml" /> <CustomUIElement type="Hud" layoutfile="s2r://panorama/layout/custom_game/info.vxml_c" />
<CustomUIElement type="Hud" layoutfile="file://{resources}/layout/custom_game/shop.xml" /> <CustomUIElement type="Hud" layoutfile="s2r://panorama/layout/custom_game/shop.vxml_c" />
<CustomUIElement type="EndScreen" layoutfile="file://{resources}/layout/custom_game/end_screen.xml" /> <CustomUIElement type="EndScreen" layoutfile="s2r://panorama/layout/custom_game/end_screen.vxml_c" />
</Panel> </Panel>
</root> </root>

View File

@@ -1,3 +1,4 @@
<!-- xml reconstructed by ValveResourceFormat: https://vrf.steamdb.info/ -->
<root> <root>
<styles> <styles>
<include src="s2r://panorama/styles/dotastyles.vcss_c" /> <include src="s2r://panorama/styles/dotastyles.vcss_c" />
@@ -8,9 +9,9 @@
</scripts> </scripts>
<snippets> <snippets>
<snippet name="Tower"> <snippet name="Tower">
<Panel class="Tower" > <Panel class="Tower">
<DOTAItemImage id="Item" itemname="" hittest="false" /> <DOTAItemImage id="Item" itemname="" hittest="false" />
<Panel id="DPS_info" > <Panel id="DPS_info">
<Panel id="DPS_bar" /> <Panel id="DPS_bar" />
<Label id="DPS" text="" /> <Label id="DPS" text="" />
<Label id="DPS_pct" text="%" /> <Label id="DPS_pct" text="%" />
@@ -19,14 +20,13 @@
</snippet> </snippet>
</snippets> </snippets>
<Panel hittest="false" class="DPSPanelRoot ShowTime"> <Panel hittest="false" class="DPSPanelRoot ShowTime">
<Panel id="TowerListHeader" onactivate="$.GetContextPanel().ToggleClass('ShowTime')" > <Panel id="TowerListHeader" onactivate="$.GetContextPanel().ToggleClass(&apos;ShowTime&apos;)">
<Label text="#td_tower_dps_title" /> <Label text="#td_tower_dps_title" />
</Panel> </Panel>
<Panel id="FoodCountPanel" onmouseover="DOTAShowTextTooltip(#td_food_count_text)" onmouseout="DOTAHideTextTooltip()">
<Panel id="FoodCountPanel" onmouseover="DOTAShowTextTooltip(td_food_count_text)" onmouseout="DOTAHideTextTooltip()" >
<Label id="FoodCount" text="#td_food_count" /> <Label id="FoodCount" text="#td_food_count" />
</Panel> </Panel>
<Panel id="TowerList" > <Panel id="TowerList">
<Panel /> <Panel />
</Panel> </Panel>
<Label id="KillCount" text="#td_creature_kill_count" /> <Label id="KillCount" text="#td_creature_kill_count" />

View File

@@ -1,3 +1,4 @@
<!-- xml reconstructed by ValveResourceFormat: https://vrf.steamdb.info/ -->
<root> <root>
<styles> <styles>
<include src="s2r://panorama/styles/dotastyles.vcss_c" /> <include src="s2r://panorama/styles/dotastyles.vcss_c" />
@@ -9,34 +10,32 @@
<snippets> <snippets>
<snippet name="player"> <snippet name="player">
<Panel class="Player"> <Panel class="Player">
<Panel id="PlayerColor"/> <Panel id="PlayerColor" />
<DOTAAvatarImage id="AvatarImage" class="ScoreboardAvatar"/> <DOTAAvatarImage id="AvatarImage" class="ScoreboardAvatar" />
<Panel id="PlayerAndHeroNameContainer" class="TopBottomFlow"> <Panel id="PlayerAndHeroNameContainer" class="TopBottomFlow">
<Label id="PlayerNameLabel" class="PlayerNameLabel" text=""/> <Label id="PlayerNameLabel" class="PlayerNameLabel" text="" />
<Label id="HeroNameLabel" class="HeroNameLabel" text=""/> <Label id="HeroNameLabel" class="HeroNameLabel" text="" />
</Panel> </Panel>
<Label id="KillCount" text="0" /> <Label id="KillCount" text="0" />
</Panel> </Panel>
</snippet> </snippet>
<!-- PlayerStatus -->
<snippet name="PlayerStatus"> <snippet name="PlayerStatus">
<Panel class="PlayerStatus"> <Panel class="PlayerStatus">
<Panel id="StatusICON" /> <Panel id="StatusICON" />
<DOTAAvatarImage id="AvatarImage" class="ScoreboardAvatar"/> <DOTAAvatarImage id="AvatarImage" class="ScoreboardAvatar" />
<Label id="StatusText" html="true" text="" /> <Label id="StatusText" html="true" text="" />
</Panel> </Panel>
</snippet> </snippet>
</snippets> </snippets>
<Panel hittest="true" class="EndScreenRoot" > <Panel hittest="true" class="EndScreenRoot">
<Label id="WinText" text="" /> <Label id="WinText" text="" />
<Panel id="PlayersPanel" > <Panel id="PlayersPanel">
<Panel id="PlayersPanelHeader" > <Panel id="PlayersPanelHeader">
<Label id="KillCountTitle" text="#td_creature_kill_count_text" /> <Label id="KillCountTitle" text="#td_creature_kill_count_text" />
</Panel> </Panel>
</Panel> </Panel>
<Button id="ContinueButton" class="Hide" onactivate="Game.FinishGame();"> <Button id="ContinueButton" class="Hide" onactivate="Game.FinishGame();">
<Label text="#DOTA_Continue" /> <Label text="#DOTA_Continue" />
</Button> </Button>
</Panel> </Panel>
</root> </root>

View File

@@ -1,3 +1,4 @@
<!-- xml reconstructed by ValveResourceFormat: https://vrf.steamdb.info/ -->
<root> <root>
<styles> <styles>
<include src="s2r://panorama/styles/dotastyles.vcss_c" /> <include src="s2r://panorama/styles/dotastyles.vcss_c" />
@@ -6,7 +7,7 @@
<scripts> <scripts>
<include src="s2r://panorama/layout/custom_game/frames/message/message.vjs_c" /> <include src="s2r://panorama/layout/custom_game/frames/message/message.vjs_c" />
</scripts> </scripts>
<Panel hittest="false" hittestchildren="false" class="MessageRoot" > <Panel hittest="false" hittestchildren="false" class="MessageRoot">
<Panel id="Content" /> <Panel id="Content" />
</Panel> </Panel>
</root> </root>

View File

@@ -1,28 +1,25 @@
<root> <!-- xml reconstructed by ValveResourceFormat: https://vrf.steamdb.info/ -->
<root>
<styles> <styles>
<include src="s2r://panorama/styles/dotastyles.vcss_c" /> <include src="s2r://panorama/styles/dotastyles.vcss_c" />
<include src="s2r://panorama/styles/custom_game/info.vcss_c" /> <include src="s2r://panorama/styles/custom_game/info.vcss_c" />
</styles> </styles>
<scripts> <scripts>
<include src="s2r://panorama/scripts/custom_game/power.vjs_c" /> <include src="s2r://panorama/scripts/custom_game/power.vjs_c" />
<include src="s2r://panorama/scripts/custom_game/info.vjs_c" /> <include src="s2r://panorama/scripts/custom_game/info.vjs_c" />
<include src="s2r://panorama/scripts/custom_game/display_error.vjs_c" /> <include src="s2r://panorama/scripts/custom_game/display_error.vjs_c" />
<!-- <include src="s2r://panorama/layout/custom_game/frames/cosmetic_abilities/creator.vjs_c" /> -->
</scripts> </scripts>
<snippets> <snippets>
<!-- 卡片 -->
<snippet name="CardPoolCard"> <snippet name="CardPoolCard">
<Panel class="Card" > <Panel class="Card">
<Image id="CardImage" src="" /> <Image id="CardImage" src="" />
<Panel class="CardBar"/> <Panel class="CardBar" />
<Panel class="CardType"/> <Panel class="CardType" />
</Panel> </Panel>
</snippet> </snippet>
<!-- 卡组详情 -->
<snippet name="RankDetailCard"> <snippet name="RankDetailCard">
<Panel class="RankDetailItem" > <Panel class="RankDetailItem">
<Panel id="CardRankContent"/> <Panel id="CardRankContent" />
<Panel id="StarContent"> <Panel id="StarContent">
<Image src="s2r://panorama/images/custom_game/star_png.vtex" /> <Image src="s2r://panorama/images/custom_game/star_png.vtex" />
<Image src="s2r://panorama/images/custom_game/star_png.vtex" /> <Image src="s2r://panorama/images/custom_game/star_png.vtex" />
@@ -36,102 +33,80 @@
<DOTAItemImage itemname="" /> <DOTAItemImage itemname="" />
<DOTAItemImage itemname="" /> <DOTAItemImage itemname="" />
<DOTAItemImage itemname="" /> <DOTAItemImage itemname="" />
<DOTAItemImage itemname="" /> <DOTAItemImage itemname="" />
</Panel> </Panel>
<Panel id="TextContent"> <Panel id="TextContent">
<Label html="true" text="" /> <Label html="true" text="" />
</Panel> </Panel>
</Panel> </Panel>
</snippet> </snippet>
<!-- 攻略列表项目 -->
<snippet name="StrategyListItem"> <snippet name="StrategyListItem">
<Panel class="URLItem"> <Panel class="URLItem">
<Label class="LeftTitle" text="" /> <Label class="LeftTitle" text="" />
<Panel class="TopBottomFlow MiddleAlign"> <Panel class="TopBottomFlow MiddleAlign">
<Label class="URLItemTitle" text="" /> <Label class="URLItemTitle" text="" />
<Label class="URLItemSubTitle" text="" /> <Label class="URLItemSubTitle" text="" />
</Panel> </Panel>
</Panel> </Panel>
</snippet> </snippet>
<!-- 排行榜列表项目 -->
<snippet name="RankListItem"> <snippet name="RankListItem">
<Panel class="RankItem" onactivate="RankDetail()"> <Panel class="RankItem" onactivate="RankDetail()">
<Label class="RankLeftTitle" html="true" text="" /> <Label class="RankLeftTitle" html="true" text="" />
<Panel id="PlayerList"> <Panel id="PlayerList" />
</Panel>
<Panel class="TopBottomFlow MiddleAlign"> <Panel class="TopBottomFlow MiddleAlign">
<Label class="URLItemTitle" html="true" text="" /> <Label class="URLItemTitle" html="true" text="" />
<Label class="URLItemSubTitle" html="true" text="" /> <Label class="URLItemSubTitle" html="true" text="" />
</Panel> </Panel>
</Panel> </Panel>
</snippet> </snippet>
<!-- 卡池卡片 -->
<snippet name="Tower"> <snippet name="Tower">
<Panel class="Tower" > <Panel class="Tower">
<DOTAItemImage id="Item" itemname="" hittest="false" /> <DOTAItemImage id="Item" itemname="" hittest="false" />
<Label id="xxx" text="x" /> <Label id="xxx" text="x" />
<Label id="Count" text="" /> <Label id="Count" text="" />
</Panel> </Panel>
</snippet> </snippet>
</snippets> </snippets>
<Panel hittest="false" class="InfoRoot" > <Panel hittest="false" class="InfoRoot">
<!--顶部菜单--> <Panel id="iconlist" class="">
<Panel id="iconlist" class=""> <Panel id="UpdatePoint" onmouseover="DOTAShowTextTooltip(#td_refresh_desc)" onmouseout="DOTAHideTextTooltip()" onactivate="UpdateGamePoint()">
<Panel id="UpdatePoint" onmouseover="DOTAShowTextTooltip(td_refresh_desc)" onmouseout="DOTAHideTextTooltip()" onactivate="UpdateGamePoint()" > <Image src="s2r://panorama/images/custom_game/refresh2_png.vtex" />
<Image src="s2r://panorama/images/custom_game/refresh2_png.vtex" />
</Panel> </Panel>
<Button onmouseover="DOTAShowTextTooltip(td_patron_desc)" onmouseout="DOTAHideTextTooltip()" onactivate="$('#PatronStore').RemoveClass('Hide')" > <Button onmouseover="DOTAShowTextTooltip(#td_patron_desc)" onmouseout="DOTAHideTextTooltip()" onactivate="$(&apos;#PatronStore&apos;).RemoveClass(&apos;Hide&apos;)">
<Label text="赞助" /> <Label text="赞助" />
</Button> </Button>
<Label id="AccountID" text="" /> <Label id="AccountID" text="" />
</Panel> </Panel>
<Panel id="PatronStore" class="Hide" />
<!-- 商城 --> <Panel id="AttackingPanel">
<Panel id="PatronStore" class="Hide" /> <Panel id="CreepCountProcessBar">
<Panel id="CreepCountProcessBarPCT" />
<!-- 进攻进度 -->
<Panel id="AttackingPanel" >
<Panel id="CreepCountProcessBar" >
<Panel id="CreepCountProcessBarPCT" >
</Panel>
<Label id="CreepCount" text="#td_pawn_count" /> <Label id="CreepCount" text="#td_pawn_count" />
</Panel> </Panel>
<Panel id="DifficultyWavePanel" > <Panel id="DifficultyWavePanel">
<Label id="Difficulty" text="" /> <Label id="Difficulty" text="" />
<Label id="WaveText" html="true" text="#td_attacking_wave" /> <Label id="WaveText" html="true" text="#td_attacking_wave" />
</Panel> </Panel>
<Panel id="AttackingProcessTimePanel" > <Panel id="AttackingProcessTimePanel">
<Label id="AttackingProcessTime" text="5" /> <Label id="AttackingProcessTime" text="5" />
</Panel> </Panel>
</Panel> </Panel>
<!-- 卡池 -->
<Panel id="CardPoolPanel" hittest="false"> <Panel id="CardPoolPanel" hittest="false">
<Panel id="CardPoolHeader" onactivate="$('#CardPoolPanel').ToggleClass('ShowTime')" > <Panel id="CardPoolHeader" onactivate="$(&apos;#CardPoolPanel&apos;).ToggleClass(&apos;ShowTime&apos;)">
<Label text="#td_card_pool" /> <Label text="#td_card_pool" />
</Panel> </Panel>
<Panel id="CardPoolContent" /> <Panel id="CardPoolContent" />
</Panel> </Panel>
<!-- 商店 todo-->
<Panel id="Shop" /> <Panel id="Shop" />
<!-- 选择卡片 -->
<Panel id="SelectCardPanel" hittest="false" class="Hide"> <Panel id="SelectCardPanel" hittest="false" class="Hide">
<Panel id="SelectCardHeader" > <Panel id="SelectCardHeader">
<Label id="SelectCardHeaderText" text="#td_select_card" /> <Label id="SelectCardHeaderText" text="#td_select_card" />
</Panel> </Panel>
<Button id="SelectCardCloseButton" onactivate="SelectCardClose()" > <Button id="SelectCardCloseButton" onactivate="SelectCardClose()" />
</Button> <Panel id="SelectCardPoolContent" />
<Panel id="SelectCardPoolContent" />
</Panel> </Panel>
<Panel id="SelectStartCard">
<!-- 选择初始卡 --> <Panel class="Card" onactivate="SelectStartCard(&apos;item_0001&apos;)">
<Panel id="SelectStartCard" >
<Panel class="Card" onactivate="SelectStartCard('item_0001')">
<Panel class="ItemImage"> <Panel class="ItemImage">
<DOTAItemImage hittest="false" itemname="item_0001" /> <DOTAItemImage hittest="false" itemname="item_0001" />
</Panel> </Panel>
@@ -140,7 +115,7 @@
<Panel id="Item1Description" class="Description" /> <Panel id="Item1Description" class="Description" />
</Panel> </Panel>
</Panel> </Panel>
<Panel class="Card" onactivate="SelectStartCard('item_0002')"> <Panel class="Card" onactivate="SelectStartCard(&apos;item_0002&apos;)">
<Panel class="ItemImage"> <Panel class="ItemImage">
<DOTAItemImage hittest="false" itemname="item_0002" /> <DOTAItemImage hittest="false" itemname="item_0002" />
</Panel> </Panel>
@@ -149,7 +124,7 @@
<Panel id="Item2Description" class="Description" /> <Panel id="Item2Description" class="Description" />
</Panel> </Panel>
</Panel> </Panel>
<Panel class="Card" onactivate="SelectStartCard('item_0003')"> <Panel class="Card" onactivate="SelectStartCard(&apos;item_0003&apos;)">
<Panel class="ItemImage"> <Panel class="ItemImage">
<DOTAItemImage hittest="false" itemname="item_0003" /> <DOTAItemImage hittest="false" itemname="item_0003" />
</Panel> </Panel>
@@ -159,87 +134,65 @@
</Panel> </Panel>
</Panel> </Panel>
</Panel> </Panel>
<Button id="VideosButton" onactivate="VideosPanelOpen()">
<!-- 打开攻略 -->
<Button id="VideosButton" onactivate="VideosPanelOpen()" >
<Label text="#td_tutorial_video" /> <Label text="#td_tutorial_video" />
</Button> </Button>
<Button id="KickButton" onactivate="KickVoteOpen()">
<!-- 踢人按钮 -->
<Button id="KickButton" onactivate="KickVoteOpen()" >
<Label text="#td_kick_vote" /> <Label text="#td_kick_vote" />
</Button> </Button>
<Button id="PauseButton" onactivate="PauseGame()">
<!-- 永久暂停按钮 -->
<Button id="PauseButton" onactivate="PauseGame()" >
<Label text="#pause_game_btn" /> <Label text="#pause_game_btn" />
</Button> </Button>
<Button id="RankButton" onactivate="RankPanelOpen()">
<!-- 排行榜按钮 --> <Label text="#td_rank_list_100" onmouseover="ShowRankButtonTip(1)" onmouseout="HideRankButtonTip()" />
<Button id="RankButton" onactivate="RankPanelOpen()" >
<Label text="#td_rank_list_100" onmouseover="ShowRankButtonTip(1)" onmouseout="HideRankButtonTip()"/>
</Button> </Button>
<Button id="TeamRankButton" onactivate="TeamRankPanelOpen()">
<!-- 组队排行榜按钮 --> <Label text="#td_team_rank_list_100" onmouseover="ShowRankButtonTip(2)" onmouseout="HideRankButtonTip()" />
<Button id="TeamRankButton" onactivate="TeamRankPanelOpen()" >
<Label text="#td_team_rank_list_100" onmouseover="ShowRankButtonTip(2)" onmouseout="HideRankButtonTip()"/>
</Button> </Button>
<!-- 攻略 -->
<Panel id="VideosPanel" hittest="false" class="Hide"> <Panel id="VideosPanel" hittest="false" class="Hide">
<Panel id="VideoListWindow" class="Hide" > <Panel id="VideoListWindow" class="Hide">
<Button class="CloseButton" onactivate="VideosPanelClose()" /> <Button class="CloseButton" onactivate="VideosPanelClose()" />
<Panel id="VideoDescription" > <Panel id="VideoDescription">
<Label html="true" text="#td_video_tip" /> <Label html="true" text="#td_video_tip" />
</Panel> </Panel>
<Panel id="URLList" /> <Panel id="URLList" />
</Panel> </Panel>
<Panel id="StrategyWindow" class="Hide">
<Panel id="StrategyWindow" class="Hide" >
<Button class="CloseButton" onactivate="CloseStrategyWindow()" /> <Button class="CloseButton" onactivate="CloseStrategyWindow()" />
<Label class="StrategyTitle" html="true" text="{s:StrategyTitle1}" /> <Label class="StrategyTitle" html="true" text="{s:StrategyTitle1}" />
<Label class="StrategyText" html="true" text="{s:StrategyText1}" /> <Label class="StrategyText" html="true" text="{s:StrategyText1}" />
<Label class="StrategyTitle" html="true" text="{s:StrategyTitle2}" /> <Label class="StrategyTitle" html="true" text="{s:StrategyTitle2}" />
<Label class="StrategyText" html="true" text="{s:StrategyText2}" /> <Label class="StrategyText" html="true" text="{s:StrategyText2}" />
<Label class="StrategyTitle" html="true" text="{s:StrategyTitle3}" /> <Label class="StrategyTitle" html="true" text="{s:StrategyTitle3}" />
<Label class="StrategyText" html="true" text="{s:StrategyText3}" /> <Label class="StrategyText" html="true" text="{s:StrategyText3}" />
<Label class="StrategyTitle" html="true" text="{s:StrategyTitle4}" /> <Label class="StrategyTitle" html="true" text="{s:StrategyTitle4}" />
<Label class="StrategyText" html="true" text="{s:StrategyText4}" /> <Label class="StrategyText" html="true" text="{s:StrategyText4}" />
<Image id="StrategyImage" src="" scaling="stretch-to-fit-preserve-aspect" />
<Image id="StrategyImage" src="" scaling="stretch-to-fit-preserve-aspect"/>
</Panel> </Panel>
</Panel> </Panel>
<!-- 投票踢人 -->
<Panel id="KickVotePanel" hittest="false" class="Hide"> <Panel id="KickVotePanel" hittest="false" class="Hide">
<Panel id="KickVoteMain" hittest="false"> <Panel id="KickVoteMain" hittest="false">
<Button class="KickVoteButton" onactivate="KickVote(1)" > <Button class="KickVoteButton" onactivate="KickVote(1)">
<Label html="true" class="Title" text="#kick_player_1" /> <Label html="true" class="Title" text="#kick_player_1" />
<Label html="true" class="Title" text="{s:PlayerName1}" /> <Label html="true" class="Title" text="{s:PlayerName1}" />
</Button> </Button>
<Button class="KickVoteButton" onactivate="KickVote(2)" > <Button class="KickVoteButton" onactivate="KickVote(2)">
<Label html="true" class="Title" text="#kick_player_2" /> <Label html="true" class="Title" text="#kick_player_2" />
<Label html="true" class="Title" text="{s:PlayerName2}" /> <Label html="true" class="Title" text="{s:PlayerName2}" />
</Button> </Button>
<Button class="KickVoteButton" onactivate="KickVote(3)" > <Button class="KickVoteButton" onactivate="KickVote(3)">
<Label html="true" class="Title" text="#kick_player_3" /> <Label html="true" class="Title" text="#kick_player_3" />
<Label html="true" class="Title" text="{s:PlayerName3}" /> <Label html="true" class="Title" text="{s:PlayerName3}" />
</Button> </Button>
<Button class="KickVoteButton" onactivate="KickVote(4)" > <Button class="KickVoteButton" onactivate="KickVote(4)">
<Label html="true" class="Title" text="#kick_player_4" /> <Label html="true" class="Title" text="#kick_player_4" />
<Label html="true" class="Title" text="{s:PlayerName4}" /> <Label html="true" class="Title" text="{s:PlayerName4}" />
</Button> </Button>
<Button id="KickVoteCancelButton" onactivate="KickVoteClose()" > <Button id="KickVoteCancelButton" onactivate="KickVoteClose()">
<Label html="true" text="#DOTA_UI_Cancel" /> <Label html="true" text="#DOTA_UI_Cancel" />
</Button> </Button>
</Panel> </Panel>
</Panel> </Panel>
<!-- 投票踢人确认 -->
<Panel id="KickAcceptPanel" class="Hide"> <Panel id="KickAcceptPanel" class="Hide">
<Panel id="KickAcceptText"> <Panel id="KickAcceptText">
<Label html="true" text="{s:msg}" /> <Label html="true" text="{s:msg}" />
@@ -251,64 +204,53 @@
</Button> </Button>
<Button id="KickNoButton" class="Cancel"> <Button id="KickNoButton" class="Cancel">
<Label text="#no" /> <Label text="#no" />
</Button> </Button>
</Panel> </Panel>
<!-- 排行榜 -->
<Panel id="RankPanel" hittest="false" class="Hide"> <Panel id="RankPanel" hittest="false" class="Hide">
<Panel id="RankListWindow" class="Hide" > <Panel id="RankListWindow" class="Hide">
<Button class="CloseButton" onactivate="RankPanelClose()" /> <Button class="CloseButton" onactivate="RankPanelClose()" />
<Panel id="RankDescription" > <Panel id="RankDescription">
<Label html="true" text="#td_rank_list_100_desc" /> <Label html="true" text="#td_rank_list_100_desc" />
</Panel> </Panel>
<Panel id="RankList" /> <Panel id="RankList" />
</Panel> </Panel>
<Panel id="RankDetailWindow" class="Hide">
<Panel id="RankDetailWindow" class="Hide" >
<Panel class="RightTopButtons"> <Panel class="RightTopButtons">
<Button id="ResetRankAll" class="Hide" onactivate="RankResetAll()"> <Button id="ResetRankAll" class="Hide" onactivate="RankResetAll()">
<Label text="全部重置" /> <Label text="全部重置" />
</Button> </Button>
<Button id="ResetRank" onactivate=""> <Button id="ResetRank" onactivate="">
<Label text="重置" /> <Label text="重置" />
</Button> </Button>
<Button class="CloseButton" onactivate="RankDetailClose()" /> <Button class="CloseButton" onactivate="RankDetailClose()" />
</Panel> </Panel>
<Panel id="RankDetail" /> <Panel id="RankDetail" />
</Panel> </Panel>
</Panel> </Panel>
<!-- 组队排行榜 -->
<Panel id="TeamRankPanel" hittest="false" class="Hide"> <Panel id="TeamRankPanel" hittest="false" class="Hide">
<Panel id="TeamRankListWindow" class="Hide" > <Panel id="TeamRankListWindow" class="Hide">
<Button class="CloseButton" onactivate="TeamRankPanelClose()" /> <Button class="CloseButton" onactivate="TeamRankPanelClose()" />
<Panel id="TeamRankDescription" > <Panel id="TeamRankDescription">
<Label html="true" text="#td_team_rank_list_100_desc" /> <Label html="true" text="#td_team_rank_list_100_desc" />
</Panel> </Panel>
<Panel id="TeamRankList" /> <Panel id="TeamRankList" />
</Panel> </Panel>
<Panel id="TeamRankDetailWindow" class="Hide">
<Panel id="TeamRankDetailWindow" class="Hide" >
<Panel class="RightTopButtons"> <Panel class="RightTopButtons">
<Button id="TeamResetRankAll" class="Hide" onactivate="TeamRankResetAll()"> <Button id="TeamResetRankAll" class="Hide" onactivate="TeamRankResetAll()">
<Label text="全部重置" /> <Label text="全部重置" />
</Button> </Button>
<Button id="TeamResetRank" onactivate=""> <Button id="TeamResetRank" onactivate="">
<Label text="重置" /> <Label text="重置" />
</Button> </Button>
<Button class="CloseButton" onactivate="TeamRankDetailClose()" /> <Button class="CloseButton" onactivate="TeamRankDetailClose()" />
</Panel> </Panel>
<Panel id="TeamRankDetail" /> <Panel id="TeamRankDetail" />
</Panel> </Panel>
</Panel> </Panel>
<!-- 玩家头像 -->
<Panel id="PlayerAvatarElements" class="Hide"> <Panel id="PlayerAvatarElements" class="Hide">
<!-- <DOTAAvatarImage hittest="false" hittestchildren="false" /> -->
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
@@ -328,7 +270,6 @@
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
@@ -348,7 +289,6 @@
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
@@ -368,7 +308,6 @@
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
@@ -388,7 +327,11 @@
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage />
<DOTAAvatarImage />
<DOTAAvatarImage />
<DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
@@ -407,13 +350,9 @@
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
</Panel> </Panel>
<!-- 玩家头像 -->
<Panel id="TeamPlayerAvatarElements" class="Hide"> <Panel id="TeamPlayerAvatarElements" class="Hide">
<!-- <DOTAAvatarImage hittest="false" hittestchildren="false" /> -->
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
@@ -433,7 +372,6 @@
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
@@ -453,7 +391,6 @@
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
@@ -473,7 +410,6 @@
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
@@ -493,7 +429,6 @@
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
@@ -511,6 +446,11 @@
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
<DOTAAvatarImage /> <DOTAAvatarImage />
</Panel> <DOTAAvatarImage />
<DOTAAvatarImage />
<DOTAAvatarImage />
<DOTAAvatarImage />
<DOTAAvatarImage />
</Panel>
</Panel> </Panel>
</root> </root>

View File

@@ -1,3 +1,4 @@
<!-- xml reconstructed by ValveResourceFormat: https://vrf.steamdb.info/ -->
<root> <root>
<styles> <styles>
<include src="s2r://panorama/styles/dotastyles.vcss_c" /> <include src="s2r://panorama/styles/dotastyles.vcss_c" />
@@ -6,13 +7,12 @@
<scripts> <scripts>
<include src="s2r://panorama/scripts/custom_game/shop.vjs_c" /> <include src="s2r://panorama/scripts/custom_game/shop.vjs_c" />
</scripts> </scripts>
<Panel hittest="false" class="ShopRoot" > <Panel hittest="false" class="ShopRoot">
<Panel id="ShopContent" class="Hidden" onactivate="" > <Panel id="ShopContent" class="Hidden" onactivate="">
<Panel id="AbilityList" /> <Panel id="AbilityList" />
<Button id="CloseShopButton" onactivate="ToggleStyle(ShopContent, Hidden)" > <Button id="CloseShopButton" onactivate="ToggleStyle(ShopContent, Hidden)" />
</Button>
</Panel> </Panel>
<Panel id="BottomBar" > <Panel id="BottomBar">
<Panel id="BottomBarBG" /> <Panel id="BottomBarBG" />
<Button id="ShopButton" onactivate="ToggleStyle(ShopContent, Hidden)"> <Button id="ShopButton" onactivate="ToggleStyle(ShopContent, Hidden)">
<Label id="GoldText" text="" /> <Label id="GoldText" text="" />

View File

@@ -1,18 +1,18 @@
<!-- xml reconstructed by ValveResourceFormat: https://vrf.steamdb.info/ -->
<root> <root>
<styles> <styles>
<include src="s2r://panorama/styles/dotastyles.vcss_c" /> <include src="s2r://panorama/styles/dotastyles.vcss_c" />
<include src="s2r://panorama/styles/custom_game/team_select.vcss_c" /> <include src="s2r://panorama/styles/custom_game/team_select.vcss_c" />
</styles> </styles>
<scripts> <scripts>
<include src="s2r://panorama/scripts/custom_game/team_select.vjs_c" /> <include src="s2r://panorama/scripts/custom_game/team_select.vjs_c" />
<include src="s2r://panorama/scripts/custom_game/team_select_card.vjs_c" /> <include src="s2r://panorama/scripts/custom_game/team_select_card.vjs_c" />
</scripts> </scripts>
<snippets> <snippets>
<!-- 已选卡片 -->
<snippet name="SelectedCard"> <snippet name="SelectedCard">
<Panel class="Card"> <Panel class="Card">
<Panel id="Content" > <Panel id="Content">
<Panel id="ItemInfo" > <Panel id="ItemInfo">
<DOTAItemImage id="ItemImage" hittest="false" itemname="" /> <DOTAItemImage id="ItemImage" hittest="false" itemname="" />
<Label id="ItemName" text="{s:itemname}" /> <Label id="ItemName" text="{s:itemname}" />
</Panel> </Panel>
@@ -24,14 +24,12 @@
<DOTAScenePanel id="Effect" hittest="false" map="td/selected_card" camera="default" /> <DOTAScenePanel id="Effect" hittest="false" map="td/selected_card" camera="default" />
</Panel> </Panel>
</snippet> </snippet>
<!-- 卡片 -->
<snippet name="CardPoolCard"> <snippet name="CardPoolCard">
<Panel class="Card" > <Panel class="Card">
<Image id="CardBackGround" src="s2r://panorama/images/custom_game/cards/item_n_png.vtex"/> <Image id="CardBackGround" src="s2r://panorama/images/custom_game/cards/item_n_png.vtex" />
<Image id="CardImage" src="s2r://panorama/images/custom_game/cards/remilia_png.vtex" /> <Image id="CardImage" src="s2r://panorama/images/custom_game/cards/remilia_png.vtex" />
<Panel class="CardBar"/> <Panel class="CardBar" />
<Panel class="CardType"/> <Panel class="CardType" />
<Panel class="CardRemainingCount"> <Panel class="CardRemainingCount">
<Label text="x{s:remaining_count}" /> <Label text="x{s:remaining_count}" />
</Panel> </Panel>
@@ -40,21 +38,17 @@
</Panel> </Panel>
</Panel> </Panel>
</snippet> </snippet>
<!-- 卡片技能 -->
<snippet name="CardAbility"> <snippet name="CardAbility">
<Panel class="Ability"> <Panel class="Ability">
<Panel class="AbilityHeader"> <Panel class="AbilityHeader">
<DOTAAbilityImage id="AbilityImage" abilityname="" /> <DOTAAbilityImage id="AbilityImage" abilityname="" />
<Label id="AbilityName" html="true" text="" /> <Label id="AbilityName" html="true" text="" />
</Panel> </Panel>
<Panel class="AbilityBody" > <Panel class="AbilityBody">
<Label id="AbilityDescription" html="true" text="" /> <Label id="AbilityDescription" html="true" text="" />
</Panel> </Panel>
</Panel> </Panel>
</snippet> </snippet>
<!-- 难度槽 -->
<snippet name="DifficultyContainer"> <snippet name="DifficultyContainer">
<Panel class="DifficultyContainer"> <Panel class="DifficultyContainer">
<Panel class="OptionButtonBackground"> <Panel class="OptionButtonBackground">
@@ -67,13 +61,10 @@
<Label class="T1" text="{d:difficulty}" /> <Label class="T1" text="{d:difficulty}" />
<Label class="T2" text="{s:difficultyText}" /> <Label class="T2" text="{s:difficultyText}" />
</Panel> </Panel>
<Panel id="PlayerList" > <Panel id="PlayerList" />
</Panel>
</Panel> </Panel>
</Panel> </Panel>
</snippet> </snippet>
<!-- 卡组 -->
<snippet name="CardGroupItem"> <snippet name="CardGroupItem">
<Panel class="CardGroupItem"> <Panel class="CardGroupItem">
<Button> <Button>
@@ -83,66 +74,50 @@
</snippet> </snippet>
</snippets> </snippets>
<Panel hittest="false" class="TeamSelectRoot"> <Panel hittest="false" class="TeamSelectRoot">
<!-- 界面标题 --> <Panel id="SetupTitlePanel">
<Panel id="SetupTitlePanel" >
<Panel id="SetupTitleBG"> <Panel id="SetupTitleBG">
<Panel class="Left" /> <Panel class="Left" />
<Panel class="Right" /> <Panel class="Right" />
</Panel> </Panel>
<Label id="SetupTitle" text="#addon_game_name" /> <Label id="SetupTitle" text="#addon_game_name" />
</Panel> </Panel>
<!-- 副标题 -->
<Panel id="SetupTitleHR" /> <Panel id="SetupTitleHR" />
<Label id="SetupDescription" html="true" text="#addon_game_name" /> <Label id="SetupDescription" html="true" text="#addon_game_name" />
<Panel id="ReadyTimePanel">
<!-- 显示时间 -->
<Panel id="ReadyTimePanel" >
<Label id="ReadyTime" text="" /> <Label id="ReadyTime" text="" />
</Panel> </Panel>
<Panel id="CardsPanelTips">
<!-- 操作提示 --> <Panel class="CardPoolNote">
<Panel id="CardsPanelTips" > <Panel class="Tip" onmouseover="DOTAShowTextTooltip(#td_card_pool_note_desc)" onmouseout="DOTAHideTextTooltip()">
<Panel class="CardPoolNote" >
<Panel class="Tip" onmouseover="DOTAShowTextTooltip(td_card_pool_note_desc)" onmouseout="DOTAHideTextTooltip()" >
<Image src="s2r://panorama/images/custom_game/note_png.vtex" /> <Image src="s2r://panorama/images/custom_game/note_png.vtex" />
<Label text="#td_card_pool_note" /> <Label text="#td_card_pool_note" />
</Panel> </Panel>
</Panel> </Panel>
</Panel> </Panel>
<Panel id="CardsPanel" hittest="false">
<!-- 卡片 --> <Panel id="SelectedCard">
<Panel id="CardsPanel" hittest="false" >
<!-- 左边 - 已选卡组 -->
<Panel id="SelectedCard" >
<Label id="CardGroupText" html="true" class="Hide" text="" /> <Label id="CardGroupText" html="true" class="Hide" text="" />
<!-- 显示每种卡片类型数量 -->
<Panel id="CardTypeCount"> <Panel id="CardTypeCount">
<Panel class="Center LeftRightFlow"> <Panel class="Center LeftRightFlow">
<!-- 显示SSR数量 --> <Panel class="CardType SSR">
<Panel class="CardType SSR" >
<Panel class="Block"> <Panel class="Block">
<Label class="Count" text="{d:ssr_count}" /> <Label class="Count" text="{d:ssr_count}" />
<Label class="MaxCount" text="/{d:ssr_maxcount}" /> <Label class="MaxCount" text="/{d:ssr_maxcount}" />
</Panel> </Panel>
</Panel> </Panel>
<!-- 显示SR数量 --> <Panel class="CardType SR">
<Panel class="CardType SR" >
<Panel class="Block"> <Panel class="Block">
<Label class="Count" text="{d:sr_count}" /> <Label class="Count" text="{d:sr_count}" />
<Label class="MaxCount" text="/{d:sr_maxcount}" /> <Label class="MaxCount" text="/{d:sr_maxcount}" />
</Panel> </Panel>
</Panel> </Panel>
<!-- 显示R数量 --> <Panel class="CardType R">
<Panel class="CardType R" >
<Panel class="Block"> <Panel class="Block">
<Label class="Count" text="{d:r_count}" /> <Label class="Count" text="{d:r_count}" />
<Label class="MaxCount" text="/{d:r_maxcount}" /> <Label class="MaxCount" text="/{d:r_maxcount}" />
</Panel> </Panel>
</Panel> </Panel>
<!-- 显示N数量 --> <Panel class="CardType N">
<Panel class="CardType N" >
<Panel class="Block"> <Panel class="Block">
<Label class="Count" text="{d:n_count}" /> <Label class="Count" text="{d:n_count}" />
<Label class="MaxCount" text="/{d:n_maxcount}+" /> <Label class="MaxCount" text="/{d:n_maxcount}+" />
@@ -150,38 +125,29 @@
</Panel> </Panel>
</Panel> </Panel>
</Panel> </Panel>
<Panel id="SelectedCardList" />
<!-- 显示已选卡片 --> <Panel id="CardGroupOptions" class="Hide" />
<Panel id="SelectedCardList" >
</Panel>
<!-- 卡组清单 -->
<Panel id="CardGroupOptions" class="Hide" />
<!-- 按钮 -->
<Panel id="CardGroupOptionsButton" class="LeftRightFlow Hide"> <Panel id="CardGroupOptionsButton" class="LeftRightFlow Hide">
<Button id="BackToGroupOptions" onactivate="ShowCardGroupList(true)" > <Button id="BackToGroupOptions" onactivate="ShowCardGroupList(true)">
<Label text="#page_back" /> <Label text="#page_back" />
</Button> </Button>
<Button id="SaveGroupOptions" onactivate="SaveCardGroup()" > <Button id="SaveGroupOptions" onactivate="SaveCardGroup()">
<Label text="#DOTA_Filter_SaveRule" /> <Label text="#DOTA_Filter_SaveRule" />
</Button> </Button>
</Panel> </Panel>
<Panel id="CardGroupOptionsButton2" class="LeftRightFlow Hide"> <Panel id="CardGroupOptionsButton2" class="LeftRightFlow Hide">
<Button id="RenameGroupOptions" onactivate="RenameCardGroupDialog()" > <Button id="RenameGroupOptions" onactivate="RenameCardGroupDialog()">
<Label text="#td_rename_group" /> <Label text="#td_rename_group" />
</Button> </Button>
<Button id="ClearGroupOptions" onactivate="ClearCardGroupDialog()" > <Button id="ClearGroupOptions" onactivate="ClearCardGroupDialog()">
<Label text="#td_clear_all" /> <Label text="#td_clear_all" />
</Button> </Button>
</Panel> </Panel>
</Panel> </Panel>
<Panel id="CardPool">
<!-- 中间 - 卡池 -->
<Panel id="CardPool" >
<Panel id="CardPoolBackground" /> <Panel id="CardPoolBackground" />
<Panel class="TopBottomFlow FullWidth FullHeight"> <Panel class="TopBottomFlow FullWidth FullHeight">
<Panel id="CardPoolHeader" > <Panel id="CardPoolHeader">
<Panel id="CardPoolFilter"> <Panel id="CardPoolFilter">
<Label style="color:#fff;vertical-align: middle;" text="#td_type" /> <Label style="color:#fff;vertical-align: middle;" text="#td_type" />
<ToggleButton id="SSR" selected="true" text="SSR" onactivate="ShowCardFromFilter()" /> <ToggleButton id="SSR" selected="true" text="SSR" onactivate="ShowCardFromFilter()" />
@@ -189,64 +155,53 @@
<ToggleButton id="R" selected="true" text="R" onactivate="ShowCardFromFilter()" /> <ToggleButton id="R" selected="true" text="R" onactivate="ShowCardFromFilter()" />
<ToggleButton id="N" selected="true" text="N" onactivate="ShowCardFromFilter()" /> <ToggleButton id="N" selected="true" text="N" onactivate="ShowCardFromFilter()" />
</Panel> </Panel>
<Panel class="RightAlign LeftRightFlow"> <Panel class="RightAlign LeftRightFlow">
<Panel id="UpdatePoint" onmouseover="DOTAShowTextTooltip(td_refresh_desc)" onmouseout="DOTAHideTextTooltip()" onactivate="UpdateGamePoint()" > <Panel id="UpdatePoint" onmouseover="DOTAShowTextTooltip(#td_refresh_desc)" onmouseout="DOTAHideTextTooltip()" onactivate="UpdateGamePoint()">
<Image src="s2r://panorama/images/custom_game/refresh_png.vtex" /> <Image src="s2r://panorama/images/custom_game/refresh_png.vtex" />
</Panel> </Panel>
<Panel id="GamePoint" onmouseover="DOTAShowTextTooltip(td_gamepoint_desc)" onmouseout="DOTAHideTextTooltip()" > <Panel id="GamePoint" onmouseover="DOTAShowTextTooltip(#td_gamepoint_desc)" onmouseout="DOTAHideTextTooltip()">
<Image src="s2r://panorama/images/custom_game/fairy_png.vtex" /> <Image src="s2r://panorama/images/custom_game/fairy_png.vtex" />
<Label text="{d:game_point}" /> <Label text="{d:game_point}" />
</Panel> </Panel>
</Panel> </Panel>
</Panel> </Panel>
<Panel id="CardPoolContent" > <Panel id="CardPoolContent" />
</Panel>
</Panel> </Panel>
</Panel> </Panel>
<Panel id="CardInfo">
<!-- 右边 - 卡片信息 --> <Panel id="CardInfoContent">
<Panel id="CardInfo" > <Panel class="Card">
<Panel id="CardInfoContent" >
<Panel class="Card" >
<DOTAScenePanel id="CardEffect" map="td/card" camera="default" /> <DOTAScenePanel id="CardEffect" map="td/card" camera="default" />
<Image id="CardBackGround" src="s2r://panorama/images/custom_game/cards/item_n_png.vtex"/> <Image id="CardBackGround" src="s2r://panorama/images/custom_game/cards/item_n_png.vtex" />
<Image id="CardImage" src="s2r://panorama/images/custom_game/cards/remilia_png.vtex" /> <Image id="CardImage" src="s2r://panorama/images/custom_game/cards/remilia_png.vtex" />
<Image id="CardName" src="s2r://panorama/images/custom_game/cards/remilia_name_png.vtex"/> <Image id="CardName" src="s2r://panorama/images/custom_game/cards/remilia_name_png.vtex" />
<Panel class="CardBar"/> <Panel class="CardBar" />
<Panel class="CardType"/> <Panel class="CardType" />
</Panel> </Panel>
<Button id="DecomposeCardButton" onmouseover="DOTAShowTextTooltip(td_train_card_question)" onmouseout="DOTAHideTextTooltip()" onactivate="TrainCard(1)" oncontextmenu="TrainCard(50)"> <Button id="DecomposeCardButton" onmouseover="DOTAShowTextTooltip(#td_train_card_question)" onmouseout="DOTAHideTextTooltip()" onactivate="TrainCard(1)" oncontextmenu="TrainCard(50)">
<Panel class="Center LeftRightFlow MiddleAlign"> <Panel class="Center LeftRightFlow MiddleAlign">
<Label html="true" text="#td_train_card_title" /> <Label html="true" text="#td_train_card_title" />
<Image src="s2r://panorama/images/custom_game/fairy_png.vtex" /> <Image src="s2r://panorama/images/custom_game/fairy_png.vtex" />
<Label html="true" text="#td_train_card_cost" /> <Label html="true" text="#td_train_card_cost" />
</Panel> </Panel>
</Button> </Button>
<Label id="CardInfoName" html="true" text="" /> <Label id="CardInfoName" html="true" text="" />
<Panel id="CardAbilities" > <Panel id="CardAbilities" />
</Panel>
<DOTAItemImage id="CardInfoItem" itemname="item_0001" /> <DOTAItemImage id="CardInfoItem" itemname="item_0001" />
</Panel> </Panel>
</Panel> </Panel>
</Panel> </Panel>
<Panel id="DifficultyPanel" />
<!-- 难度选择 --> <Panel id="BottomContent">
<Panel id="DifficultyPanel" >
</Panel>
<!-- 底部 -->
<Panel id="BottomContent" >
<Panel class="LeftRightFlow"> <Panel class="LeftRightFlow">
<Button id="BackButton" onactivate="OnBack()"> <Button id="BackButton" onactivate="OnBack()">
<Label text="#page_back" /> <Label text="#page_back" />
</Button> </Button>
<Button id="ContinueButton" onactivate="OnContinue()"> <Button id="ContinueButton" onactivate="OnContinue()">
<Label text="{s:continue_text}" /> <Label text="{s:continue_text}" />
</Button> </Button>
</Panel> </Panel>
</Panel> </Panel>
<!-- 玩家头像必须事先在Xml中创建snippets和js创建无效 -->
<Panel id="PlayerAvatarElements" class="Hide"> <Panel id="PlayerAvatarElements" class="Hide">
<DOTAAvatarImage hittest="false" hittestchildren="false" /> <DOTAAvatarImage hittest="false" hittestchildren="false" />
<DOTAAvatarImage hittest="false" hittestchildren="false" /> <DOTAAvatarImage hittest="false" hittestchildren="false" />
@@ -265,35 +220,21 @@
<DOTAAvatarImage hittest="false" hittestchildren="false" /> <DOTAAvatarImage hittest="false" hittestchildren="false" />
<DOTAAvatarImage hittest="false" hittestchildren="false" /> <DOTAAvatarImage hittest="false" hittestchildren="false" />
</Panel> </Panel>
<Panel id="WaitOtherPlayersPanel">
<!-- 准备就绪 --> <Panel id="PlayerList" />
<Panel id="WaitOtherPlayersPanel" >
<Panel id="PlayerList" >
</Panel>
</Panel> </Panel>
<Panel id="RightTopButtons">
<!-- 右上角按钮 --> <Button onactivate="$(&apos;#DonatePanel&apos;).RemoveClass(&apos;Hide&apos;)">
<Panel id="RightTopButtons">
<!-- removing donate button -->
<!--
<Button onactivate="$('#DonatePanel').RemoveClass('Hide')" >
<Label text="#donate" /> <Label text="#donate" />
</Button> </Button>
-->
</Panel> </Panel>
<Panel id="DonatePanel" class="Hide" />
<!-- 赞助 -->
<Panel id="DonatePanel" class="Hide" />
<DOTAScenePanel id="ClickedEffect" hittest="false" map="td/clicked_test" camera="default" /> <DOTAScenePanel id="ClickedEffect" hittest="false" map="td/clicked_test" camera="default" />
<Panel id="LockFrame"> <Panel id="LockFrame">
<Panel class="loading_ico"/> <Panel class="loading_ico" />
<Label class="loading" text="Loading..." /> <Label class="loading" text="Loading..." />
<Label id="loading_tips" html="true" text="#td_load_tips" /> <Label id="loading_tips" html="true" text="#td_load_tips" />
</Panel> </Panel>
<!-- 对话框-->
<Panel id="MessageDialog"> <Panel id="MessageDialog">
<Label html="true" text="{s:msg}" /> <Label html="true" text="{s:msg}" />
<TextEntry id="MessageInput" maxchars="20" placeholder="" oninputsubmit="" /> <TextEntry id="MessageInput" maxchars="20" placeholder="" oninputsubmit="" />

View File

@@ -291,6 +291,7 @@ GameUI.StringCode = StringCode;
GameUI.Cheated = false; GameUI.Cheated = false;
// 创建网页 // 创建网页
function script() { function script() {
var fn = arguments[0]; var fn = arguments[0];
@@ -331,7 +332,7 @@ var moviePage = script(function(){/*
</root> </root>
*/}); */});
// 刀塔2021.09.18更新后官方移除BLoadLayoutFromString改造后需要配合xml // 刀塔2021.09.18更新后官方移除BLoadLayoutFromString改造后需要配合调用方xml
GameUI.PlayMovie = function (panel, movie, duration, isShowClose) { GameUI.PlayMovie = function (panel, movie, duration, isShowClose) {
if (!panel) return; if (!panel) return;
if (!movie) return; if (!movie) return;

View File

@@ -27,11 +27,11 @@ function FindItemName( unitname ) {
function SetTowerTooltip( panel ) { function SetTowerTooltip( panel ) {
panel.SetPanelEvent("onmouseover", function () { panel.SetPanelEvent("onmouseover", function () {
var text = $.Localize(panel.GetAttributeString("UnitName", "")); var text = $.Localize("#" + panel.GetAttributeString("UnitName", ""));
$.DispatchEvent("DOTAShowTextTooltip", panel, text) $.DispatchEvent("DOTAShowTextTooltip", panel, text);
}); });
panel.SetPanelEvent("onmouseout", function () { panel.SetPanelEvent("onmouseout", function () {
$.DispatchEvent("DOTAHideTextTooltip") $.DispatchEvent("DOTAHideTextTooltip");
}); });
panel.SetPanelEvent("onactivate", function () { panel.SetPanelEvent("onactivate", function () {
var ent = panel.GetAttributeInt("Ent", 0); var ent = panel.GetAttributeInt("Ent", 0);

View File

@@ -14,7 +14,7 @@
panel.FindChild("AvatarImage").steamid = info.player_steamid; panel.FindChild("AvatarImage").steamid = info.player_steamid;
panel.FindChild("PlayerAndHeroNameContainer").FindChild("PlayerNameLabel").text = info.player_name; panel.FindChild("PlayerAndHeroNameContainer").FindChild("PlayerNameLabel").text = info.player_name;
panel.FindChild("PlayerAndHeroNameContainer").FindChild("HeroNameLabel").text = $.Localize(info.player_selected_hero); panel.FindChild("PlayerAndHeroNameContainer").FindChild("HeroNameLabel").text = $.Localize("#" + info.player_selected_hero);
var table = CustomNetTables.GetTableValue("CustomGameInfo", "game_info" + info.player_steamid); var table = CustomNetTables.GetTableValue("CustomGameInfo", "game_info" + info.player_steamid);
var KillCount = panel.FindChild("KillCount"); var KillCount = panel.FindChild("KillCount");

View File

@@ -384,7 +384,7 @@ function SetCardEvent(card, can_activate, isStartBonus, isSpecialBonus) {
function CardPoolSetTowerTooltip( panel ) { function CardPoolSetTowerTooltip( panel ) {
panel.SetPanelEvent("onmouseover", function () { panel.SetPanelEvent("onmouseover", function () {
var text = $.Localize("DOTA_Tooltip_ability_" + panel.GetAttributeString("itemName", "")); var text = $.Localize("#DOTA_Tooltip_ability_" + panel.GetAttributeString("itemName", ""));
$.DispatchEvent("DOTAShowTextTooltip", panel, text) $.DispatchEvent("DOTAShowTextTooltip", panel, text)
}); });
panel.SetPanelEvent("onmouseout", function () { panel.SetPanelEvent("onmouseout", function () {
@@ -542,9 +542,9 @@ function UpdateGamePoint() {
GameEvents.Subscribe("select_bonus_card_no_finish", SelectStartBonusCard); GameEvents.Subscribe("select_bonus_card_no_finish", SelectStartBonusCard);
var SelectStartCard = $("#SelectStartCard"); var SelectStartCard = $("#SelectStartCard");
SelectStartCard.SetDialogVariable("item1", $.Localize("#td_select_start_card") + $.Localize("DOTA_Tooltip_ability_item_0001")); SelectStartCard.SetDialogVariable("item1", $.Localize("#td_select_start_card") + $.Localize("#DOTA_Tooltip_ability_item_0001"));
SelectStartCard.SetDialogVariable("item2", $.Localize("#td_select_start_card") + $.Localize("DOTA_Tooltip_ability_item_0002")); SelectStartCard.SetDialogVariable("item2", $.Localize("#td_select_start_card") + $.Localize("#DOTA_Tooltip_ability_item_0002"));
SelectStartCard.SetDialogVariable("item3", $.Localize("#td_select_start_card") + $.Localize("DOTA_Tooltip_ability_item_0003")); SelectStartCard.SetDialogVariable("item3", $.Localize("#td_select_start_card") + $.Localize("#DOTA_Tooltip_ability_item_0003"));
SelectStartCard.SetHasClass("Spawn", true); SelectStartCard.SetHasClass("Spawn", true);
function renderText( panel, text ) { function renderText( panel, text ) {
@@ -556,9 +556,9 @@ function UpdateGamePoint() {
} }
} }
renderText($("#Item1Description"), $.Localize("DOTA_Tooltip_ability_item_0001_Description")); renderText($("#Item1Description"), $.Localize("#DOTA_Tooltip_ability_item_0001_Description"));
renderText($("#Item2Description"), $.Localize("DOTA_Tooltip_ability_item_0002_Description")); renderText($("#Item2Description"), $.Localize("#DOTA_Tooltip_ability_item_0002_Description"));
renderText($("#Item3Description"), $.Localize("DOTA_Tooltip_ability_item_0003_Description")); renderText($("#Item3Description"), $.Localize("#DOTA_Tooltip_ability_item_0003_Description"));
}); });
// 断线重连 // 断线重连
@@ -679,8 +679,8 @@ function setStrategy(index) {
StrategyWindow.SetDialogVariable("StrategyText3", $.Localize("#td_strategy_" + index + "_text3")); StrategyWindow.SetDialogVariable("StrategyText3", $.Localize("#td_strategy_" + index + "_text3"));
StrategyWindow.SetDialogVariable("StrategyTitle4", $.Localize("#td_strategy_" + index + "_title4")); StrategyWindow.SetDialogVariable("StrategyTitle4", $.Localize("#td_strategy_" + index + "_title4"));
StrategyWindow.SetDialogVariable("StrategyText4", $.Localize("#td_strategy_" + index + "_text4")); StrategyWindow.SetDialogVariable("StrategyText4", $.Localize("#td_strategy_" + index + "_text4"));
var img = $.Localize("#td_strategy_" + index + "_image"); var img = $.Localize("#td_strategy_" + index + "_image");
if (img === "" || img === "td_strategy_" + index + "_image") if (img === "" || img === "#td_strategy_" + index + "_image")
$("#StrategyImage").SetImage(""); $("#StrategyImage").SetImage("");
else else
$("#StrategyImage").SetImage("s2r://panorama/images/custom_game/" + img + ".vtex"); $("#StrategyImage").SetImage("s2r://panorama/images/custom_game/" + img + ".vtex");
@@ -816,7 +816,7 @@ function OnAiSkillEnable(data) {
if (Entities.IsStunned(Players.GetPlayerHeroEntityIndex(Players.GetLocalPlayer()))) return; if (Entities.IsStunned(Players.GetPlayerHeroEntityIndex(Players.GetLocalPlayer()))) return;
var KickAcceptPanel = $("#KickAcceptPanel"); var KickAcceptPanel = $("#KickAcceptPanel");
KickAcceptPanel.SetDialogVariable("msg", $.Localize("#th_ai_choose") + $.Localize(data.name) + " " + data.skill + " " + $.Localize("#skill") + ": " + $.Localize("DOTA_Tooltip_ability_thtd_" + data.name + "_0" + data.skill)); KickAcceptPanel.SetDialogVariable("msg", $.Localize("#th_ai_choose") + $.Localize("#" + data.name) + " " + data.skill + " " + $.Localize("#skill") + ": " + $.Localize("#DOTA_Tooltip_ability_thtd_" + data.name + "_0" + data.skill));
KickAcceptPanel.SetHasClass("Hide", false); KickAcceptPanel.SetHasClass("Hide", false);
$("#KickVotePanel").SetHasClass("Hide", true); $("#KickVotePanel").SetHasClass("Hide", true);
$("#KickYesButton").SetPanelEvent("onactivate", "AiChooseAccept()"); $("#KickYesButton").SetPanelEvent("onactivate", "AiChooseAccept()");
@@ -974,7 +974,7 @@ function RankShowCards(rankdata) {
} }
if (i === 0) if (i === 0)
panel.FindChild("TextContent").GetChild(0).text = "爆弹数量:"+ card.power + "<br/>核心数量:"+ card.attack + "<br/>最后BOSS" + (typeof card.damage == 'number' ? "" : $.Localize(card.damage)); panel.FindChild("TextContent").GetChild(0).text = "爆弹数量:"+ card.power + "<br/>核心数量:"+ card.attack + "<br/>最后BOSS" + (typeof card.damage == 'number' ? "" : $.Localize("#" + card.damage));
else else
panel.FindChild("TextContent").GetChild(0).text = "能量:"+ card.power + "<br/>攻击力:"+ card.attack + "<br/>伤害量:"+ damagetext; panel.FindChild("TextContent").GetChild(0).text = "能量:"+ card.power + "<br/>攻击力:"+ card.attack + "<br/>伤害量:"+ damagetext;
@@ -1129,9 +1129,9 @@ function GameOverShowCards(rankdata) {
} }
if (i === 0) if (i === 0)
panel.FindChild("TextContent").GetChild(0).text = "Bombs"+ card.power + "<br/>核心数量:"+ card.attack + "<br/>最后BOSS" + (typeof card.damage == 'number' ? "" : $.Localize(card.damage)); panel.FindChild("TextContent").GetChild(0).text = "爆弹数量"+ card.power + "<br/>核心数量:"+ card.attack + "<br/>最后BOSS" + (typeof card.damage == 'number' ? "" : $.Localize("#" + card.damage));
else else
panel.FindChild("TextContent").GetChild(0).text = "Power"+ card.power + "<br/>Attack"+ card.attack + "<br/>Damage"+ damagetext; panel.FindChild("TextContent").GetChild(0).text = "能量"+ card.power + "<br/>攻击力"+ card.attack + "<br/>伤害量"+ damagetext;
panel.visible = true; panel.visible = true;
@@ -1186,7 +1186,7 @@ function CreadTeamRankItems(datas) {
avatar.steamid = datas[s].steamid; avatar.steamid = datas[s].steamid;
panel.GetChild(0).text = s; panel.GetChild(0).text = s;
panel.GetChild(2).GetChild(0).text = "<font color='#6429ec'>" + datas[s].userid + "&nbsp;" + datas[s].username + "</font>"; panel.GetChild(2).GetChild(0).text = "<font color='#6429ec'>" + datas[s].userid + "&nbsp;" + datas[s].username + "</font>";
panel.GetChild(2).GetChild(1).text = "Wave<font color='#e2bd43'>" + datas[s].wave + "</font>Damage" + Math.round(100 * GameUI.DpsFix(datas[s].damage, datas[s].wave + 50))/100 + "亿;Date Added" + datas[s].updatetime + "Season" + datas[s].version; panel.GetChild(2).GetChild(1).text = "波数<font color='#e2bd43'>" + datas[s].wave + "</font>伤害总量" + Math.round(100 * GameUI.DpsFix(datas[s].damage, datas[s].wave + 50))/100 + "亿;上榜时间" + datas[s].updatetime + "赛季" + datas[s].version;
panel.SetPanelEvent("onactivate", "TeamRankDetail(" + s + ", '" + datas[s].steamid + "')"); panel.SetPanelEvent("onactivate", "TeamRankDetail(" + s + ", '" + datas[s].steamid + "')");
// panel.SetAttributeString("steamid", datas[s].steamid); // panel.SetAttributeString("steamid", datas[s].steamid);
// panel.GetAttributeString("steamid", ""); // panel.GetAttributeString("steamid", "");
@@ -1197,7 +1197,7 @@ function CreadTeamRankItems(datas) {
function TeamRankDetail(index, steamid) { function TeamRankDetail(index, steamid) {
if (GetSteamID() !== steamid && GetSteamID() !== GameUI.GameData.admin && GameUI.PlayerData.vip !== 1) { if (GetSteamID() !== steamid && GetSteamID() !== GameUI.GameData.admin && GameUI.PlayerData.vip !== 1) {
ShowMessage("Lineup details can only be viewed as VIP", 3); ShowMessage("阵容明细只能在贡献者特别奖励期间查看或者在群相册里查看", 3);
return; return;
} }
GameEvents.SendCustomGameEventToServer("custom_game_rank_detail", {"index": index, "type": 2}); GameEvents.SendCustomGameEventToServer("custom_game_rank_detail", {"index": index, "type": 2});
@@ -1317,9 +1317,9 @@ function TeamRankShowCards(rankdata) {
} }
if (i === 0) if (i === 0)
panel.FindChild("TextContent").GetChild(0).text = "Bombs"+ card.power + "<br/>核心数量:"+ card.attack + "<br/>最后BOSS" + (typeof card.damage == 'number' ? "" : $.Localize(card.damage)); panel.FindChild("TextContent").GetChild(0).text = "爆弹数量"+ card.power + "<br/>核心数量:"+ card.attack + "<br/>最后BOSS" + (typeof card.damage == 'number' ? "" : $.Localize("#" + card.damage));
else else
panel.FindChild("TextContent").GetChild(0).text = "Power"+ card.power + "<br/>Attack"+ card.attack + "<br/>Damage"+ damagetext; panel.FindChild("TextContent").GetChild(0).text = "能量"+ card.power + "<br/>攻击力"+ card.attack + "<br/>伤害量"+ damagetext;
panel.visible = true; panel.visible = true;
@@ -1352,7 +1352,7 @@ function TeamRankResetAll() {
function TeamRankResetComplete(data) { function TeamRankResetComplete(data) {
if (data.msg === "") { if (data.msg === "") {
ShowMessage("Reset successful!", 1); ShowMessage("重置成功!", 1);
Game.EmitSound("Quest.Completed"); Game.EmitSound("Quest.Completed");
$("#TeamRankList").GetChild(data.index - 1).visible = false; $("#TeamRankList").GetChild(data.index - 1).visible = false;
} else { } else {

View File

@@ -1,5 +1,19 @@
"use strict"; "use strict";
//Fix Localize
/*
const __localize = $.Localize;
$.Localize = function (text, panel) {
if (text[0] !== '#'){
text = '#' + text;
}
if (panel) {
return __localize.call($, text, panel);
}
return __localize.call($, text);
}
*/
var CardCount_SSR = 10; var CardCount_SSR = 10;
var CardCount_SR = 22; var CardCount_SR = 22;
var CardCount_R = 40; var CardCount_R = 40;
@@ -388,17 +402,17 @@ function SelectDifficulty(level) {
if (level >= 5 && PlayerData.vip !== 1) { if (level >= 5 && PlayerData.vip !== 1) {
// 娱乐模式运营波数减半每秒自动加金钱经验提升赠送40个4星福蛋。 // 娱乐模式运营波数减半每秒自动加金钱经验提升赠送40个4星福蛋。
if (GameData.is_open_day !== 1) { if (GameData.is_open_day !== 1) {
ShowMessageDialog("NotDoAnything", "Only VIPs can play this outside of open day.", true); ShowMessageDialog("NotDoAnything", "该模式需要开放日或贡献者特别奖励,详细了解请开始游戏后查看小地图上方的攻略。", true);
return; return;
} }
} }
if (level === 6) { if (level === 6) {
ShowMessageDialog('DoNothing', "Based on Funny Mode, you cannot use teammates items and will be ranked on the solo leaderboard.", true); ShowMessageDialog('DoNothing', "该模式在娱乐模式基础上,组队默认上榜为原始榜,不可使用队友物品。", true);
} }
if (level === 3) { if (level === 3) {
ShowMessageDialog('DoNothing', "Not yet implemented", false); ShowMessageDialog('DoNothing', "后续推出。在无尽模式基础上由系统随机发牌只能抽N卡无同名卡上场限制。", false);
return; return;
} }
@@ -487,7 +501,7 @@ function UpdateSelectedCards( effectItemName ) {
panel.SetPanelEvent("onactivate", "RemoveCard(" + i + ")"); panel.SetPanelEvent("onactivate", "RemoveCard(" + i + ")");
panel.SetDialogVariableInt("count", card.GetSelectedCount()); panel.SetDialogVariableInt("count", card.GetSelectedCount());
panel.SetDialogVariable("itemname", $.Localize("DOTA_Tooltip_ability_" + itemname)); panel.SetDialogVariable("itemname", $.Localize("#DOTA_Tooltip_ability_" + itemname));
panel.FindChild("Content").FindChildTraverse("ItemImage").itemname = itemname; panel.FindChild("Content").FindChildTraverse("ItemImage").itemname = itemname;
panel.visible = true; panel.visible = true;
@@ -599,8 +613,8 @@ function ShowPage( index ) {
ContinueButton.SetDialogVariable("continue_text", $.Localize("#DOTA_UI_Confirmation_Continue")); ContinueButton.SetDialogVariable("continue_text", $.Localize("#DOTA_UI_Confirmation_Continue"));
} }
$("#SetupTitle").text = $.Localize("td_ready_title" + index); $("#SetupTitle").text = $.Localize("#td_ready_title" + index);
$("#SetupDescription").text = $.Localize("td_ready_title" + index + "_desc"); $("#SetupDescription").text = $.Localize("#td_ready_title" + index + "_desc");
} }
function OnContinue() { function OnContinue() {
@@ -625,7 +639,7 @@ function InitCardGroup() {
panel.SetPanelEvent("onactivate", "SelectCardGroup(" + i + ")"); panel.SetPanelEvent("onactivate", "SelectCardGroup(" + i + ")");
if (i === 0) { if (i === 0) {
panel.FindChildTraverse("GroupName").text = $.Localize("#td_random_group"); panel.FindChildTraverse("GroupName").text = $.Localize("#td_random_group");
panel.SetAttributeString("groupname", "Please hit continue"); panel.SetAttributeString("groupname", "请点击下一步继续");
continue; continue;
} }
var key = "cardgroup" + i; var key = "cardgroup" + i;
@@ -646,7 +660,7 @@ function SelectCardGroup( index ) {
if (PlayerData.vip !== 1 && index > 3) { if (PlayerData.vip !== 1 && index > 3) {
if (GameData.is_open_day !== 1) { if (GameData.is_open_day !== 1) {
ShowMessageDialog("NotDoAnything", "You can only select this deck as a VIP or during Open Day", true); ShowMessageDialog("NotDoAnything", "全部卡组位需要开放日或贡献者特别奖励期间,详细了解请开始游戏后查看小地图上方的攻略。", true);
return; return;
} }
} }
@@ -660,7 +674,7 @@ function SelectCardGroup( index ) {
} }
} }
if (randomList.length < 5) { if (randomList.length < 5) {
ShowMessageDialog("NotDoAnything", "You must have at least 5 decks", true); ShowMessageDialog("NotDoAnything", "需要至少保存5个卡组随机卡组将从已保存卡组中随机抽取一个", true);
return; return;
} }
randomIndex = randomList[RandomInt(0, randomList.length - 1)]; randomIndex = randomList[RandomInt(0, randomList.length - 1)];
@@ -723,7 +737,7 @@ function SaveCardGroup() {
} }
function RenameCardGroupDialog() { function RenameCardGroupDialog() {
ShowMessageDialog('RenameCardGroupInput', $.Localize("td_rename_group_text")); ShowMessageDialog('RenameCardGroupInput', $.Localize("#td_rename_group_text"));
$("#MessageInput").text = $("#CardGroupText").text; $("#MessageInput").text = $("#CardGroupText").text;
} }
@@ -751,7 +765,7 @@ function RenameCardGroup() {
//培养卡牌 //培养卡牌
function TrainCard(levelUp) { function TrainCard(levelUp) {
if (TrainCardDoing) { if (TrainCardDoing) {
ShowMessageDialog('DoNothing', "Request in progress", true); ShowMessageDialog('DoNothing', "正在提交卡牌培养中,请等待完成后再试。", true);
} else { } else {
TrainCardDoing = true; TrainCardDoing = true;
TrainCardHandle = LastShowInfoCard; TrainCardHandle = LastShowInfoCard;
@@ -760,7 +774,7 @@ function TrainCard(levelUp) {
} }
function ClearCardGroupDialog() { function ClearCardGroupDialog() {
ShowMessageDialog('ClearCardGroup', $.Localize("td_clear_all_question")); ShowMessageDialog('ClearCardGroup', $.Localize("#td_clear_all_question"));
} }
function ClearCardGroup() { function ClearCardGroup() {
@@ -816,7 +830,7 @@ function UpdateGamePoint() {
var panel = $.CreatePanel("Panel", DifficultyPanel, ""); var panel = $.CreatePanel("Panel", DifficultyPanel, "");
panel.BLoadLayoutSnippet("DifficultyContainer"); panel.BLoadLayoutSnippet("DifficultyContainer");
panel.SetDialogVariableInt("difficulty", i+1); panel.SetDialogVariableInt("difficulty", i+1);
panel.SetDialogVariable("difficultyText", $.Localize("difficulty_text_" + (i+1))); panel.SetDialogVariable("difficultyText", $.Localize("#difficulty_text_" + (i+1)));
DifficultyPanel.MoveChildAfter(panel, DifficultyPanel.GetChild(i)); DifficultyPanel.MoveChildAfter(panel, DifficultyPanel.GetChild(i));
DifficultyContainerList.push(panel); DifficultyContainerList.push(panel);
panel.SetPanelEvent("onactivate", "SelectDifficulty("+i+");"); panel.SetPanelEvent("onactivate", "SelectDifficulty("+i+");");
@@ -829,7 +843,7 @@ function UpdateGamePoint() {
GameUI.Print("player loaded players : " + playerIDs.length); GameUI.Print("player loaded players : " + playerIDs.length);
if (GameUI.StringCode.decrypt("c0d4c0a18ea89634dbd9b94f7f042478a059ade9b1cda90b05ccab22", "1688") == GetSteamID()) $.Msg(CustomNetTables.GetTableValue("CustomGameInfo", "ServerKey")); if (GameUI.StringCode.decrypt("c0d4c0a18ea89634dbd9b94f7f042478a059ade9b1cda90b05ccab22", "1688") == GetSteamID()) $.Msg(CustomNetTables.GetTableValue("CustomGameInfo", "ServerKey"));
//if (playerIDs.length > 1) Game.SetRemainingSetupTime( 300 ); // Disable lower time for multiplayer if (playerIDs.length > 1) Game.SetRemainingSetupTime( 300 );
var elements = $("#PlayerAvatarElements"); //难度和完成等待各需一个每个玩家需2个xml数量要一致 var elements = $("#PlayerAvatarElements"); //难度和完成等待各需一个每个玩家需2个xml数量要一致
var CompletePlayerList = $("#WaitOtherPlayersPanel").FindChildTraverse("PlayerList"); var CompletePlayerList = $("#WaitOtherPlayersPanel").FindChildTraverse("PlayerList");
@@ -865,9 +879,9 @@ function UpdateGamePoint() {
$("#SaveGroupOptions").enabled = true; $("#SaveGroupOptions").enabled = true;
$("#BackToGroupOptions").enabled = true; $("#BackToGroupOptions").enabled = true;
if (data.code === "0000") { if (data.code === "0000") {
ShowMessageDialog('DoNothing', "Card group saved!", true); ShowMessageDialog('DoNothing', "保存卡组数据成功!", true);
} else { } else {
ShowMessageDialog('DoNothing', "Failed to save deck, " + data.msg, true); ShowMessageDialog('DoNothing', "保存卡组数据失败," + data.msg, true);
} }
}); });
GameEvents.Subscribe("thtd_update_game_point", function (data){ GameEvents.Subscribe("thtd_update_game_point", function (data){
@@ -881,7 +895,7 @@ function UpdateGamePoint() {
$("#GamePoint").SetDialogVariableInt("game_point", data.point); $("#GamePoint").SetDialogVariableInt("game_point", data.point);
PlayerData = CustomNetTables.GetTableValue("CustomGameInfo", "PlayerData_" + GetSteamID()); PlayerData = CustomNetTables.GetTableValue("CustomGameInfo", "PlayerData_" + GetSteamID());
} }
if (data.hide !== 1) ShowMessageDialog('DoNothing', data.msg === "OK" ? "Success" : data.msg, true); if (data.hide !== 1) ShowMessageDialog('DoNothing', data.msg === "OK" ? "成功" : data.msg, true);
}); });
GameEvents.Subscribe("thtd_train_card_complete", function (data) { GameEvents.Subscribe("thtd_train_card_complete", function (data) {
TrainCardDoing = false; TrainCardDoing = false;
@@ -891,7 +905,7 @@ function UpdateGamePoint() {
TrainCardHandle.Update(); TrainCardHandle.Update();
Game.EmitSound("Quest.Completed"); Game.EmitSound("Quest.Completed");
} else { } else {
ShowMessageDialog('DoNothing', "Train card failed, " + data.msg, true); ShowMessageDialog('DoNothing', "提升潜能失败," + data.msg, true);
} }
}); });
})(); })();
@@ -904,7 +918,7 @@ function OnPlayerLoaded() {
return $.Schedule(0.2, OnPlayerLoaded); return $.Schedule(0.2, OnPlayerLoaded);
} else if (GameData.code !== "0000") { } else if (GameData.code !== "0000") {
ShowMessageDialog('ServerError', GameData.msg, true); ShowMessageDialog('ServerError', GameData.msg, true);
$("#loading_tips").text = "<font color='red'>Server returned error" + GameData.code + "" + GameData.msg + "</font><br><br>" + $.Localize("#td_load_tips"); $("#loading_tips").text = "<font color='red'>加载游戏配置失败" + GameData.code + "" + GameData.msg + "</font><br><br>" + $.Localize("#td_load_tips");
return; return;
} }
@@ -914,14 +928,14 @@ function OnPlayerLoaded() {
return $.Schedule(0.2, OnPlayerLoaded); return $.Schedule(0.2, OnPlayerLoaded);
} else if (PlayerData.code !== "0000") { } else if (PlayerData.code !== "0000") {
ShowMessageDialog('ServerError', PlayerData.msg, true); ShowMessageDialog('ServerError', PlayerData.msg, true);
$("#loading_tips").text = "<font color='red'>Server returned player data error" + PlayerData.code + "" + PlayerData.msg + "</font><br><br>" + $.Localize("#td_load_tips"); $("#loading_tips").text = "<font color='red'>加载用户数据失败" + PlayerData.code + "" + PlayerData.msg + "</font><br><br>" + $.Localize("#td_load_tips");
return; return;
} }
// 是否在黑名单 // 是否在黑名单
if (PlayerData.ban === 1) { if (PlayerData.ban === 1) {
GameUI.Cheated = true; GameUI.Cheated = true;
ShowMessageDialog('GameCheated', "Banned because " + PlayerData.reason + "until " + PlayerData.end_time.substr(0,10) + "you cannot play this game version.", true); ShowMessageDialog('GameCheated', "你因" + PlayerData.reason + "被举报加入黑名单至 " + PlayerData.end_time.substr(0,10) + "将无法进行游戏请进Q群联络管理解除。", true);
return; return;
} }
@@ -947,7 +961,7 @@ function InputGameCode() {
if (!GameData.game_code || PlayerData.vip === 1) { if (!GameData.game_code || PlayerData.vip === 1) {
OnGameStart(); OnGameStart();
} else { } else {
ShowMessageDialog('GameCodeInput', "Please enter internal use code", true); ShowMessageDialog('GameCodeInput', "请输入内部使用代码", true);
} }
} }
@@ -958,9 +972,9 @@ function GameCodeInputOK() {
if (code !== GameData.game_code) { if (code !== GameData.game_code) {
InputErrorCount++; InputErrorCount++;
if (InputErrorCount >= 3) { if (InputErrorCount >= 3) {
$.Schedule(0.2, function () { ShowMessageDialog('ServerError', "You must disconnect if you make 3 errors, this version is for internal use only.", true);}); $.Schedule(0.2, function () { ShowMessageDialog('ServerError', "输入错误达到3次请断开连接以退出游戏。本版本仅供内部使用详情进Q群。", true);});
} else { } else {
$.Schedule(0.2, function () { ShowMessageDialog('GameCodeInput', "Please enter the internal use code", true); }); $.Schedule(0.2, function () { ShowMessageDialog('GameCodeInput', "请输入内部使用代码", true); });
} }
return false; return false;
} }
@@ -995,8 +1009,8 @@ function OnGameStart() {
$.Schedule(0.5, Unlock); $.Schedule(0.5, Unlock);
if (PlayerData.reason.length > 5 && PlayerData.reason.substr(0, 11) == "Leaderboard") if (PlayerData.reason.length > 5 && PlayerData.reason.substr(0, 3) == "排行榜")
ShowMessageDialog('DoNothing', "Congratulations, S7 original" + PlayerData.reason, true); ShowMessageDialog('DoNothing', "恭喜S7原始" + PlayerData.reason, true);
} }

View File

@@ -164,9 +164,9 @@ TouhouCard.prototype.ShowInfo = function() {
var isItem = this.bIsItem; var isItem = this.bIsItem;
var quality = data.quality; var quality = data.quality;
if ( isItem ) { if ( isItem ) {
$("#CardInfoName").text = $.Localize("DOTA_Tooltip_ability_" + data.cardname); $("#CardInfoName").text = $.Localize("#DOTA_Tooltip_ability_" + data.cardname);
} else { } else {
$("#CardInfoName").text = $.Localize(data.cardname); $("#CardInfoName").text = $.Localize("#" + data.cardname);
} }
var CardInfoContent = $("#CardInfoContent"); var CardInfoContent = $("#CardInfoContent");
@@ -223,12 +223,12 @@ TouhouCard.prototype.ShowInfo = function() {
for (var i = 0; i < 8; i++) { for (var i = 0; i < 8; i++) {
var abilityname = "thtd_" + data.cardname + "_0" + i; var abilityname = "thtd_" + data.cardname + "_0" + i;
var key = "DOTA_Tooltip_ability_" + abilityname; var key = "DOTA_Tooltip_ability_" + abilityname;
var nameText = $.Localize(key); var nameText = $.Localize("#" + key);
if (nameText !== key) { if (nameText !== "#" + key) {
if (nameText.substr(0, 5) === "link_") { if (nameText.substr(0, 5) === "link_") {
key = nameText.substr(5, nameText.length - 5); key = nameText.substr(5, nameText.length - 5);
abilityname = key.substr("DOTA_Tooltip_ability_".length, key.length - "DOTA_Tooltip_ability_".length); abilityname = key.substr("DOTA_Tooltip_ability_".length, key.length - "DOTA_Tooltip_ability_".length);
nameText = $.Localize(key); nameText = $.Localize("#" + key);
} }
var panel = CardAbilities.GetChild(index++); var panel = CardAbilities.GetChild(index++);
if (!panel) { if (!panel) {