Compare commits
3 Commits
2e172f2da5
...
english_me
| Author | SHA1 | Date | |
|---|---|---|---|
| 2af94f26ca | |||
| 7a3bbc10c8 | |||
| e48fdbe323 |
@@ -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"
|
||||||
@@ -34,13 +34,12 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
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>
|
||||||
|
|||||||
@@ -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" />
|
||||||
@@ -19,11 +20,10 @@
|
|||||||
</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('ShowTime')">
|
||||||
<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">
|
||||||
|
|||||||
@@ -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" />
|
||||||
@@ -18,8 +19,6 @@
|
|||||||
<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" />
|
||||||
|
|||||||
@@ -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" />
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<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" />
|
||||||
@@ -7,10 +8,8 @@
|
|||||||
<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="" />
|
||||||
@@ -18,8 +17,6 @@
|
|||||||
<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" />
|
||||||
@@ -43,8 +40,6 @@
|
|||||||
</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="" />
|
||||||
@@ -54,21 +49,16 @@
|
|||||||
</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" />
|
||||||
@@ -78,25 +68,19 @@
|
|||||||
</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="$('#PatronStore').RemoveClass('Hide')">
|
||||||
<Label text="赞助" />
|
<Label text="赞助" />
|
||||||
</Button>
|
</Button>
|
||||||
<Label id="AccountID" text="" />
|
<Label id="AccountID" text="" />
|
||||||
</Panel>
|
</Panel>
|
||||||
|
|
||||||
<!-- 商城 -->
|
|
||||||
<Panel id="PatronStore" class="Hide" />
|
<Panel id="PatronStore" class="Hide" />
|
||||||
|
|
||||||
<!-- 进攻进度 -->
|
|
||||||
<Panel id="AttackingPanel">
|
<Panel id="AttackingPanel">
|
||||||
<Panel id="CreepCountProcessBar">
|
<Panel id="CreepCountProcessBar">
|
||||||
<Panel id="CreepCountProcessBarPCT" >
|
<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">
|
||||||
@@ -107,31 +91,22 @@
|
|||||||
<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="$('#CardPoolPanel').ToggleClass('ShowTime')">
|
||||||
<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 id="SelectStartCard">
|
||||||
<Panel class="Card" onactivate="SelectStartCard('item_0001')">
|
<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('item_0002')">
|
||||||
<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('item_0003')">
|
||||||
<Panel class="ItemImage">
|
<Panel class="ItemImage">
|
||||||
<DOTAItemImage hittest="false" itemname="item_0003" />
|
<DOTAItemImage hittest="false" itemname="item_0003" />
|
||||||
</Panel>
|
</Panel>
|
||||||
@@ -159,33 +134,21 @@
|
|||||||
</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()">
|
<Button id="RankButton" onactivate="RankPanelOpen()">
|
||||||
<Label text="#td_rank_list_100" onmouseover="ShowRankButtonTip(1)" onmouseout="HideRankButtonTip()" />
|
<Label text="#td_rank_list_100" onmouseover="ShowRankButtonTip(1)" onmouseout="HideRankButtonTip()" />
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<!-- 组队排行榜按钮 -->
|
|
||||||
<Button id="TeamRankButton" onactivate="TeamRankPanelOpen()">
|
<Button id="TeamRankButton" onactivate="TeamRankPanelOpen()">
|
||||||
<Label text="#td_team_rank_list_100" onmouseover="ShowRankButtonTip(2)" onmouseout="HideRankButtonTip()" />
|
<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()" />
|
||||||
@@ -194,28 +157,19 @@
|
|||||||
</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)">
|
||||||
@@ -239,7 +193,6 @@
|
|||||||
</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}" />
|
||||||
@@ -253,9 +206,6 @@
|
|||||||
<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()" />
|
||||||
@@ -264,7 +214,6 @@
|
|||||||
</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()">
|
||||||
@@ -278,8 +227,6 @@
|
|||||||
<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()" />
|
||||||
@@ -288,7 +235,6 @@
|
|||||||
</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()">
|
||||||
@@ -302,10 +248,7 @@
|
|||||||
<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 />
|
||||||
@@ -407,10 +350,7 @@
|
|||||||
<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 />
|
||||||
|
|||||||
@@ -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,8 +10,7 @@
|
|||||||
<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" />
|
||||||
|
|||||||
@@ -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,7 +9,6 @@
|
|||||||
<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">
|
||||||
@@ -24,8 +24,6 @@
|
|||||||
<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" />
|
||||||
@@ -40,8 +38,6 @@
|
|||||||
</Panel>
|
</Panel>
|
||||||
</Panel>
|
</Panel>
|
||||||
</snippet>
|
</snippet>
|
||||||
|
|
||||||
<!-- 卡片技能 -->
|
|
||||||
<snippet name="CardAbility">
|
<snippet name="CardAbility">
|
||||||
<Panel class="Ability">
|
<Panel class="Ability">
|
||||||
<Panel class="AbilityHeader">
|
<Panel class="AbilityHeader">
|
||||||
@@ -53,8 +49,6 @@
|
|||||||
</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,7 +74,6 @@
|
|||||||
</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" />
|
||||||
@@ -91,57 +81,42 @@
|
|||||||
</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 id="CardsPanelTips">
|
||||||
<Panel class="CardPoolNote">
|
<Panel class="CardPoolNote">
|
||||||
<Panel class="Tip" onmouseover="DOTAShowTextTooltip(td_card_pool_note_desc)" onmouseout="DOTAHideTextTooltip()" >
|
<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="CardsPanel" hittest="false">
|
||||||
<!-- 左边 - 已选卡组 -->
|
|
||||||
<Panel id="SelectedCard">
|
<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}" />
|
||||||
@@ -150,15 +125,8 @@
|
|||||||
</Panel>
|
</Panel>
|
||||||
</Panel>
|
</Panel>
|
||||||
</Panel>
|
</Panel>
|
||||||
|
<Panel id="SelectedCardList" />
|
||||||
<!-- 显示已选卡片 -->
|
|
||||||
<Panel id="SelectedCardList" >
|
|
||||||
</Panel>
|
|
||||||
|
|
||||||
<!-- 卡组清单 -->
|
|
||||||
<Panel id="CardGroupOptions" class="Hide" />
|
<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" />
|
||||||
@@ -176,8 +144,6 @@
|
|||||||
</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">
|
||||||
@@ -190,21 +156,18 @@
|
|||||||
<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="CardInfo">
|
||||||
<Panel id="CardInfoContent">
|
<Panel id="CardInfoContent">
|
||||||
<Panel class="Card">
|
<Panel class="Card">
|
||||||
@@ -215,7 +178,7 @@
|
|||||||
<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" />
|
||||||
@@ -223,18 +186,12 @@
|
|||||||
</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="DifficultyPanel" >
|
|
||||||
</Panel>
|
|
||||||
|
|
||||||
<!-- 底部 -->
|
|
||||||
<Panel id="BottomContent">
|
<Panel id="BottomContent">
|
||||||
<Panel class="LeftRightFlow">
|
<Panel class="LeftRightFlow">
|
||||||
<Button id="BackButton" onactivate="OnBack()">
|
<Button id="BackButton" onactivate="OnBack()">
|
||||||
@@ -245,8 +202,6 @@
|
|||||||
</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="WaitOtherPlayersPanel">
|
||||||
<Panel id="PlayerList" >
|
<Panel id="PlayerList" />
|
||||||
</Panel>
|
</Panel>
|
||||||
</Panel>
|
|
||||||
|
|
||||||
<!-- 右上角按钮 -->
|
|
||||||
<Panel id="RightTopButtons">
|
<Panel id="RightTopButtons">
|
||||||
<!-- removing donate button -->
|
<Button onactivate="$('#DonatePanel').RemoveClass('Hide')">
|
||||||
<!--
|
|
||||||
<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="" />
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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");
|
||||||
|
|||||||
@@ -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"));
|
||||||
});
|
});
|
||||||
|
|
||||||
// 断线重连
|
// 断线重连
|
||||||
@@ -680,7 +680,7 @@ function setStrategy(index) {
|
|||||||
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 + "] " + datas[s].username + "</font>";
|
panel.GetChild(2).GetChild(0).text = "<font color='#6429ec'>[" + datas[s].userid + "] " + 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 {
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ function PutTowerToPoint(keys)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if SpawnSystem.IsUnLimited == false and IsBonusTower(itemName) and GetBonusTowerCount(caster) >= THTD_MAX_BONUS_TOWER then
|
if SpawnSystem.IsUnLimited == false and IsBonusTower(itemName) and GetBonusTowerCount(caster) >= THTD_MAX_BONUS_TOWER then
|
||||||
CustomGameEventManager:Send_ServerToPlayer(caster:GetPlayerOwner() , "show_message", {msg="bonus_tower_limit", duration=5, params={count=1}, color="#0ff"} )
|
CustomGameEventManager:Send_ServerToPlayer(caster:GetPlayerOwner() , "show_message", {msg="#bonus_tower_limit", duration=5, params={count=1}, color="#0ff"} )
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -539,7 +539,7 @@ function OnTouhoutdExUp(keys)
|
|||||||
local unitName = target:GetUnitName()
|
local unitName = target:GetUnitName()
|
||||||
if unitName ~= "minoriko" and unitName ~= "sizuha" and unitName ~= "lily" and unitName ~= "nazrin" then
|
if unitName ~= "minoriko" and unitName ~= "sizuha" and unitName ~= "lily" and unitName ~= "nazrin" then
|
||||||
caster.is_team_mode = true
|
caster.is_team_mode = true
|
||||||
CustomGameEventManager:Send_ServerToPlayer(caster:GetPlayerOwner(), "display_chat_msg", {msg="team_rank_tip", params={player_name=PlayerResource:GetPlayerName(caster:GetPlayerOwnerID()),reason="潜能已激活"}})
|
CustomGameEventManager:Send_ServerToPlayer(caster:GetPlayerOwner(), "display_chat_msg", {msg="#team_rank_tip", params={player_name=PlayerResource:GetPlayerName(caster:GetPlayerOwnerID()),reason="潜能已激活"}})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
target.thtd_power_level = 10
|
target.thtd_power_level = 10
|
||||||
@@ -578,7 +578,7 @@ function OnTouhoutdExUp(keys)
|
|||||||
local unitName = target:GetUnitName()
|
local unitName = target:GetUnitName()
|
||||||
if unitName ~= "minoriko" and unitName ~= "sizuha" and unitName ~= "lily" and unitName ~= "nazrin" then
|
if unitName ~= "minoriko" and unitName ~= "sizuha" and unitName ~= "lily" and unitName ~= "nazrin" then
|
||||||
caster.is_team_mode = true
|
caster.is_team_mode = true
|
||||||
CustomGameEventManager:Send_ServerToPlayer(caster:GetPlayerOwner(), "display_chat_msg", {msg="team_rank_tip", params={player_name=PlayerResource:GetPlayerName(caster:GetPlayerOwnerID()),reason="潜能已激活"}})
|
CustomGameEventManager:Send_ServerToPlayer(caster:GetPlayerOwner(), "display_chat_msg", {msg="#team_rank_tip", params={player_name=PlayerResource:GetPlayerName(caster:GetPlayerOwnerID()),reason="潜能已激活"}})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
target.thtd_power_level = target:FindModifierByName("modifier_fairy_count"):GetStackCount()
|
target.thtd_power_level = target:FindModifierByName("modifier_fairy_count"):GetStackCount()
|
||||||
@@ -1211,7 +1211,7 @@ function SkipWave(keys)
|
|||||||
SpawnSystem:RemoveBoss()
|
SpawnSystem:RemoveBoss()
|
||||||
end
|
end
|
||||||
|
|
||||||
CustomGameEventManager:Send_ServerToPlayer(caster:GetPlayerOwner(), "display_chat_msg", {msg="skip_wave_tip", params={player_name=PlayerResource:GetPlayerName(caster:GetPlayerOwnerID()),item_name=keys.ItemName,wave=SpawnSystem.ReachToWave}})
|
CustomGameEventManager:Send_ServerToPlayer(caster:GetPlayerOwner(), "display_chat_msg", {msg="#skip_wave_tip", params={player_name=PlayerResource:GetPlayerName(caster:GetPlayerOwnerID()),item_name=keys.ItemName,wave=SpawnSystem.ReachToWave}})
|
||||||
EmitAnnouncerSound("Quest.Completed")
|
EmitAnnouncerSound("Quest.Completed")
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -1311,10 +1311,10 @@ function OnCloseAI(keys)
|
|||||||
|
|
||||||
if caster.thtd_close_ai ~= true then
|
if caster.thtd_close_ai ~= true then
|
||||||
caster.thtd_close_ai = true
|
caster.thtd_close_ai = true
|
||||||
CustomGameEventManager:Send_ServerToPlayer( caster:GetPlayerOwner() , "show_message", {msg="change_to_close_ai", duration=5, params={}, color="#0ff"} )
|
CustomGameEventManager:Send_ServerToPlayer( caster:GetPlayerOwner() , "show_message", {msg="#change_to_close_ai", duration=5, params={}, color="#0ff"} )
|
||||||
else
|
else
|
||||||
caster.thtd_close_ai = false
|
caster.thtd_close_ai = false
|
||||||
CustomGameEventManager:Send_ServerToPlayer( caster:GetPlayerOwner() , "show_message", {msg="change_to_open_ai", duration=5, params={}, color="#0ff"} )
|
CustomGameEventManager:Send_ServerToPlayer( caster:GetPlayerOwner() , "show_message", {msg="#change_to_open_ai", duration=5, params={}, color="#0ff"} )
|
||||||
-- 神子和幽幽子,是否开启大招
|
-- 神子和幽幽子,是否开启大招
|
||||||
local unitName = caster:GetUnitName()
|
local unitName = caster:GetUnitName()
|
||||||
if unitName=="miko" then
|
if unitName=="miko" then
|
||||||
@@ -1340,12 +1340,12 @@ function OnCastPointAI(keys)
|
|||||||
local range = GetDistanceBetweenTwoVec2D(caster:GetOrigin(), targetPoint)
|
local range = GetDistanceBetweenTwoVec2D(caster:GetOrigin(), targetPoint)
|
||||||
if range <= 100 then
|
if range <= 100 then
|
||||||
caster.thtd_last_cast_point = nil
|
caster.thtd_last_cast_point = nil
|
||||||
CustomGameEventManager:Send_ServerToPlayer( caster:GetPlayerOwner() , "show_message", {msg="change_to_close_cast_on_fixed_point", duration=5, params={}, color="#0ff"} )
|
CustomGameEventManager:Send_ServerToPlayer( caster:GetPlayerOwner() , "show_message", {msg="#change_to_close_cast_on_fixed_point", duration=5, params={}, color="#0ff"} )
|
||||||
elseif range > keys.ability:GetCastRange() then
|
elseif range > keys.ability:GetCastRange() then
|
||||||
CustomGameEventManager:Send_ServerToPlayer(caster:GetPlayerOwner(), "display_custom_error", {msg="cast_range_out"})
|
CustomGameEventManager:Send_ServerToPlayer(caster:GetPlayerOwner(), "display_custom_error", {msg="cast_range_out"})
|
||||||
else
|
else
|
||||||
caster.thtd_last_cast_point = targetPoint
|
caster.thtd_last_cast_point = targetPoint
|
||||||
CustomGameEventManager:Send_ServerToPlayer( caster:GetPlayerOwner() , "show_message", {msg="change_to_open_cast_on_fixed_point", duration=5, params={}, color="#0ff"} )
|
CustomGameEventManager:Send_ServerToPlayer( caster:GetPlayerOwner() , "show_message", {msg="#change_to_open_cast_on_fixed_point", duration=5, params={}, color="#0ff"} )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -79,14 +79,14 @@ function OnKeine02SpellStart(keys)
|
|||||||
caster:SetModel("models/thd_hero/keine/keine2/keine2.vmdl")
|
caster:SetModel("models/thd_hero/keine/keine2/keine2.vmdl")
|
||||||
caster:SetOriginalModel("models/thd_hero/keine/keine2/keine2.vmdl")
|
caster:SetOriginalModel("models/thd_hero/keine/keine2/keine2.vmdl")
|
||||||
if caster.thtd_close_ai == true then
|
if caster.thtd_close_ai == true then
|
||||||
CustomGameEventManager:Send_ServerToPlayer( caster:GetPlayerOwner() , "show_message", {msg="change_to_keine_shirasawa", duration=5, params={}, color="#0ff"} )
|
CustomGameEventManager:Send_ServerToPlayer( caster:GetPlayerOwner() , "show_message", {msg="#change_to_keine_shirasawa", duration=5, params={}, color="#0ff"} )
|
||||||
end
|
end
|
||||||
elseif caster.thtd_keine_change == THTD_KEINE_02_SHIRASAWA then
|
elseif caster.thtd_keine_change == THTD_KEINE_02_SHIRASAWA then
|
||||||
caster.thtd_keine_change = THTD_KEINE_02_HUMEN
|
caster.thtd_keine_change = THTD_KEINE_02_HUMEN
|
||||||
caster:SetModel("models/thd_hero/keine/keine.vmdl")
|
caster:SetModel("models/thd_hero/keine/keine.vmdl")
|
||||||
caster:SetOriginalModel("models/thd_hero/keine/keine.vmdl")
|
caster:SetOriginalModel("models/thd_hero/keine/keine.vmdl")
|
||||||
if caster.thtd_close_ai == true then
|
if caster.thtd_close_ai == true then
|
||||||
CustomGameEventManager:Send_ServerToPlayer( caster:GetPlayerOwner() , "show_message", {msg="change_to_keine_humen", duration=5, params={}, color="#0ff"} )
|
CustomGameEventManager:Send_ServerToPlayer( caster:GetPlayerOwner() , "show_message", {msg="#change_to_keine_humen", duration=5, params={}, color="#0ff"} )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -274,13 +274,13 @@ function OnKeine04SpellStart(keys)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if caster.thtd_keine_04_change == THTD_KEINE_04_SWORD then
|
if caster.thtd_keine_04_change == THTD_KEINE_04_SWORD then
|
||||||
CustomGameEventManager:Send_ServerToPlayer( caster:GetPlayerOwner() , "show_message", {msg="change_to_keine_04_jade", duration=5, params={count=1}, color="#0ff"} )
|
CustomGameEventManager:Send_ServerToPlayer( caster:GetPlayerOwner() , "show_message", {msg="#change_to_keine_04_jade", duration=5, params={count=1}, color="#0ff"} )
|
||||||
caster.thtd_keine_04_change = THTD_KEINE_04_JADE
|
caster.thtd_keine_04_change = THTD_KEINE_04_JADE
|
||||||
elseif caster.thtd_keine_04_change == THTD_KEINE_04_JADE then
|
elseif caster.thtd_keine_04_change == THTD_KEINE_04_JADE then
|
||||||
CustomGameEventManager:Send_ServerToPlayer( caster:GetPlayerOwner() , "show_message", {msg="change_to_keine_04_mirror", duration=5, params={count=1}, color="#0ff"} )
|
CustomGameEventManager:Send_ServerToPlayer( caster:GetPlayerOwner() , "show_message", {msg="#change_to_keine_04_mirror", duration=5, params={count=1}, color="#0ff"} )
|
||||||
caster.thtd_keine_04_change = THTD_KEINE_04_MIRROR
|
caster.thtd_keine_04_change = THTD_KEINE_04_MIRROR
|
||||||
elseif caster.thtd_keine_04_change == THTD_KEINE_04_MIRROR then
|
elseif caster.thtd_keine_04_change == THTD_KEINE_04_MIRROR then
|
||||||
CustomGameEventManager:Send_ServerToPlayer( caster:GetPlayerOwner() , "show_message", {msg="change_to_keine_04_sword", duration=5, params={count=1}, color="#0ff"} )
|
CustomGameEventManager:Send_ServerToPlayer( caster:GetPlayerOwner() , "show_message", {msg="#change_to_keine_04_sword", duration=5, params={count=1}, color="#0ff"} )
|
||||||
caster.thtd_keine_04_change = THTD_KEINE_04_SWORD
|
caster.thtd_keine_04_change = THTD_KEINE_04_SWORD
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -24,7 +24,7 @@ function OnMinoriko02StarChange(keys)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if hero.thtd_minoriko_02_change >= keys.max_count then
|
if hero.thtd_minoriko_02_change >= keys.max_count then
|
||||||
CustomGameEventManager:Send_ServerToPlayer( caster:GetPlayerOwner() , "show_message", {msg="minoriko_max_change", duration=5, params={count=1}, color="#0ff"} )
|
CustomGameEventManager:Send_ServerToPlayer( caster:GetPlayerOwner() , "show_message", {msg="#minoriko_max_change", duration=5, params={count=1}, color="#0ff"} )
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
hero.thtd_minoriko_02_change = hero.thtd_minoriko_02_change + 1
|
hero.thtd_minoriko_02_change = hero.thtd_minoriko_02_change + 1
|
||||||
|
|||||||
@@ -254,13 +254,13 @@ function OnPatchouli02SpellStart(keys)
|
|||||||
|
|
||||||
if caster.thtd_patchouli_02_type == PATCHOULI_01_AGNI_SHINE then
|
if caster.thtd_patchouli_02_type == PATCHOULI_01_AGNI_SHINE then
|
||||||
caster.thtd_patchouli_02_type = PATCHOULI_01_BURY_IN_LAKE
|
caster.thtd_patchouli_02_type = PATCHOULI_01_BURY_IN_LAKE
|
||||||
CustomGameEventManager:Send_ServerToPlayer( caster:GetPlayerOwner() , "show_message", {msg="change_to_patchouli_bury_in_lake", duration=1, params={count=1}, color="#0ff"} )
|
CustomGameEventManager:Send_ServerToPlayer( caster:GetPlayerOwner() , "show_message", {msg="#change_to_patchouli_bury_in_lake", duration=1, params={count=1}, color="#0ff"} )
|
||||||
elseif caster.thtd_patchouli_02_type == PATCHOULI_01_BURY_IN_LAKE then
|
elseif caster.thtd_patchouli_02_type == PATCHOULI_01_BURY_IN_LAKE then
|
||||||
caster.thtd_patchouli_02_type = PATCHOULI_01_MERCURY_POISON
|
caster.thtd_patchouli_02_type = PATCHOULI_01_MERCURY_POISON
|
||||||
CustomGameEventManager:Send_ServerToPlayer( caster:GetPlayerOwner() , "show_message", {msg="change_to_patchouli_mercury_poison", duration=1, params={count=1}, color="#0ff"} )
|
CustomGameEventManager:Send_ServerToPlayer( caster:GetPlayerOwner() , "show_message", {msg="#change_to_patchouli_mercury_poison", duration=1, params={count=1}, color="#0ff"} )
|
||||||
elseif caster.thtd_patchouli_02_type == PATCHOULI_01_MERCURY_POISON then
|
elseif caster.thtd_patchouli_02_type == PATCHOULI_01_MERCURY_POISON then
|
||||||
caster.thtd_patchouli_02_type = PATCHOULI_01_AGNI_SHINE
|
caster.thtd_patchouli_02_type = PATCHOULI_01_AGNI_SHINE
|
||||||
CustomGameEventManager:Send_ServerToPlayer( caster:GetPlayerOwner() , "show_message", {msg="change_to_patchouli_agni_shine", duration=1, params={count=1}, color="#0ff"} )
|
CustomGameEventManager:Send_ServerToPlayer( caster:GetPlayerOwner() , "show_message", {msg="#change_to_patchouli_agni_shine", duration=1, params={count=1}, color="#0ff"} )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -704,7 +704,7 @@ function OnSpellStartReimuPet01(keys)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if tostring(PlayerResource:GetSteamID(caster:GetPlayerOwnerID())) == GameRules.GameData.admin then
|
if tostring(PlayerResource:GetSteamID(caster:GetPlayerOwnerID())) == GameRules.GameData.admin then
|
||||||
CustomGameEventManager:Send_ServerToPlayer(caster:GetPlayerOwner() , "show_message", {msg="change_to_pet_model", duration=5, params={key = caster.pet_model}, color="#ff0"} )
|
CustomGameEventManager:Send_ServerToPlayer(caster:GetPlayerOwner() , "show_message", {msg="#change_to_pet_model", duration=5, params={key = caster.pet_model}, color="#ff0"} )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -746,7 +746,7 @@ function OnSpellStartReimuPet02(keys)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if tostring(PlayerResource:GetSteamID(caster:GetPlayerOwnerID())) == GameRules.GameData.admin then
|
if tostring(PlayerResource:GetSteamID(caster:GetPlayerOwnerID())) == GameRules.GameData.admin then
|
||||||
CustomGameEventManager:Send_ServerToPlayer(caster:GetPlayerOwner() , "show_message", {msg="change_to_pet_effect", duration=5, params={key = caster.effect_name}, color="#ff0"} )
|
CustomGameEventManager:Send_ServerToPlayer(caster:GetPlayerOwner() , "show_message", {msg="#change_to_pet_effect", duration=5, params={key = caster.effect_name}, color="#ff0"} )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -824,7 +824,7 @@ function OnSpellStartReimuPet04(keys)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
caster:EmitSound(reimu_pet_sound[RandomInt(1, #reimu_pet_sound)])
|
caster:EmitSound(reimu_pet_sound[RandomInt(1, #reimu_pet_sound)])
|
||||||
CustomGameEventManager:Send_ServerToPlayer(hero:GetPlayerOwner(), "show_message", {msg="key_made_tip", duration=3, params={}, color="#ff0"})
|
CustomGameEventManager:Send_ServerToPlayer(hero:GetPlayerOwner(), "show_message", {msg="#key_made_tip", duration=3, params={}, color="#ff0"})
|
||||||
|
|
||||||
ParticleManager:DestroyParticleSystem(hero.thtd_emoji_effect,true)
|
ParticleManager:DestroyParticleSystem(hero.thtd_emoji_effect,true)
|
||||||
hero.thtd_emoji_effect = ParticleManager:CreateParticle("particles/thtd/emoji/thtd_msg_hongliange.vpcf", PATTACH_OVERHEAD_FOLLOW, hero)
|
hero.thtd_emoji_effect = ParticleManager:CreateParticle("particles/thtd/emoji/thtd_msg_hongliange.vpcf", PATTACH_OVERHEAD_FOLLOW, hero)
|
||||||
|
|||||||
@@ -951,7 +951,7 @@ function CTHTDGameMode:OnGameRulesStateChange(keys)
|
|||||||
for i=0, PlayerResource:GetPlayerCount()-1 do
|
for i=0, PlayerResource:GetPlayerCount()-1 do
|
||||||
if PlayerResource:GetTeam(i) == DOTA_TEAM_GOODGUYS then
|
if PlayerResource:GetTeam(i) == DOTA_TEAM_GOODGUYS then
|
||||||
if GameRules.PlayerData[i].ban == 1 then
|
if GameRules.PlayerData[i].ban == 1 then
|
||||||
CustomGameEventManager:Send_ServerToPlayer(PlayerResource:GetPlayer(i), "display_chat_msg", {msg="game_ban_tip", params={player_name=PlayerResource:GetPlayerName(i),reason=GameRules.PlayerData[i].reason}})
|
CustomGameEventManager:Send_ServerToPlayer(PlayerResource:GetPlayer(i), "display_chat_msg", {msg="#game_ban_tip", params={player_name=PlayerResource:GetPlayerName(i),reason=GameRules.PlayerData[i].reason}})
|
||||||
for _,hero in pairs(GameRules.HeroList) do
|
for _,hero in pairs(GameRules.HeroList) do
|
||||||
if hero.thtd_player_id == i then
|
if hero.thtd_player_id == i then
|
||||||
SpawnSystem:GameOver(hero)
|
SpawnSystem:GameOver(hero)
|
||||||
@@ -959,7 +959,7 @@ function CTHTDGameMode:OnGameRulesStateChange(keys)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
elseif GameRules.PlayerData[i].vip == 1 then
|
elseif GameRules.PlayerData[i].vip == 1 then
|
||||||
CustomGameEventManager:Send_ServerToPlayer(PlayerResource:GetPlayer(i), "show_message", {msg="game_start_vip_tip", duration=60, params={name=PlayerResource:GetPlayerName(i),endtime=GameRules.PlayerData[i].end_time}, color="#ff0"})
|
CustomGameEventManager:Send_ServerToPlayer(PlayerResource:GetPlayer(i), "show_message", {msg="#game_start_vip_tip", duration=60, params={name=PlayerResource:GetPlayerName(i),endtime=GameRules.PlayerData[i].end_time}, color="#ff0"})
|
||||||
end
|
end
|
||||||
GameRules.HeroList[i]:RemoveModifierByName("modifier_rainbow_tail")
|
GameRules.HeroList[i]:RemoveModifierByName("modifier_rainbow_tail")
|
||||||
end
|
end
|
||||||
@@ -1419,7 +1419,7 @@ function CTHTDGameMode:OnPlayerSay(keys)
|
|||||||
|
|
||||||
if string.sub(text,1,6) == "-color" then
|
if string.sub(text,1,6) == "-color" then
|
||||||
local colorValue = string.sub(text, 8, 11)
|
local colorValue = string.sub(text, 8, 11)
|
||||||
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="item_locked_tip", duration=10, params={}, color=colorValue})
|
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="#item_locked_tip", duration=10, params={}, color=colorValue})
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -1429,7 +1429,7 @@ function CTHTDGameMode:OnPlayerSay(keys)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if string.sub(text,1,5) == "-date" then
|
if string.sub(text,1,5) == "-date" then
|
||||||
CustomGameEventManager:Send_ServerToPlayer(PlayerResource:GetPlayer(keys.playerid), "display_chat_msg", {msg="open_day_tip", params={server_time=GetRealDateTime(),start_time=GameRules.GameData.server_time,open_day_list=GameRules.GameData.open_day_list}})
|
CustomGameEventManager:Send_ServerToPlayer(PlayerResource:GetPlayer(keys.playerid), "display_chat_msg", {msg="#open_day_tip", params={server_time=GetRealDateTime(),start_time=GameRules.GameData.server_time,open_day_list=GameRules.GameData.open_day_list}})
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -1780,7 +1780,7 @@ function CTHTDGameMode:ItemAddedToInventory( keys )
|
|||||||
if itemName == "item_3150" or itemName == "item_3151" or itemName == "item_3152" then
|
if itemName == "item_3150" or itemName == "item_3151" or itemName == "item_3152" then
|
||||||
if hero.is_team_mode ~= true then
|
if hero.is_team_mode ~= true then
|
||||||
hero.is_team_mode = true
|
hero.is_team_mode = true
|
||||||
CustomGameEventManager:Send_ServerToPlayer(hero:GetPlayerOwner(), "display_chat_msg", {msg="team_rank_tip", params={player_name=PlayerResource:GetPlayerName(hero:GetPlayerOwnerID()),reason="使用了传说武器"}})
|
CustomGameEventManager:Send_ServerToPlayer(hero:GetPlayerOwner(), "display_chat_msg", {msg="#team_rank_tip", params={player_name=PlayerResource:GetPlayerName(hero:GetPlayerOwnerID()),reason="使用了传说武器"}})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ CustomEvent.on('custom_game_kick_vote', function(data)
|
|||||||
if hero.is_game_over == true then return end
|
if hero.is_game_over == true then return end
|
||||||
|
|
||||||
if playerVote.kicked_player ~= - 1 and (math.floor(GameRules:GetGameTime()) - playerVote.vote_time) < 60 then
|
if playerVote.kicked_player ~= - 1 and (math.floor(GameRules:GetGameTime()) - playerVote.vote_time) < 60 then
|
||||||
CustomGameEventManager:Send_ServerToPlayer(player, "show_message", {msg="player_in_vote", duration=10, params={count=playerVote.kicked_player+1}, color="#ff0"})
|
CustomGameEventManager:Send_ServerToPlayer(player, "show_message", {msg="#player_in_vote", duration=10, params={count=playerVote.kicked_player+1}, color="#ff0"})
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -139,7 +139,7 @@ CustomEvent.on('custom_game_kick_accept', function(data)
|
|||||||
playerVote.kicked_player = -1
|
playerVote.kicked_player = -1
|
||||||
playerVote.kicked_line = - 1
|
playerVote.kicked_line = - 1
|
||||||
playerVote.agree_players = {}
|
playerVote.agree_players = {}
|
||||||
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="player_vote_no_pass", duration=10, params={count=data.PlayerID+1}, color="#ff0"})
|
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="#player_vote_no_pass", duration=10, params={count=data.PlayerID+1}, color="#ff0"})
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
@@ -147,7 +147,7 @@ function KickPlayer()
|
|||||||
for index,hero in pairs(GameRules.HeroList) do
|
for index,hero in pairs(GameRules.HeroList) do
|
||||||
if hero ~= nil and hero.is_game_over ~= true and hero.thtd_player_id == playerVote.kicked_player then
|
if hero ~= nil and hero.is_game_over ~= true and hero.thtd_player_id == playerVote.kicked_player then
|
||||||
SpawnSystem:GameOver(hero)
|
SpawnSystem:GameOver(hero)
|
||||||
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="player_vote_pass", duration=10, params={count=playerVote.kicked_player+1}, color="#ff0"})
|
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="#player_vote_pass", duration=10, params={count=playerVote.kicked_player+1}, color="#ff0"})
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -384,7 +384,7 @@ end)
|
|||||||
CustomEvent.on('custom_game_command', function(data)
|
CustomEvent.on('custom_game_command', function(data)
|
||||||
if data["cmd"] == "wave" then
|
if data["cmd"] == "wave" then
|
||||||
SpawnSystem.ReachToWave = data["param"]
|
SpawnSystem.ReachToWave = data["param"]
|
||||||
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="reach_to_wave", duration=20, params={count=data["param"]}, color="#ff0"})
|
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="#reach_to_wave", duration=20, params={count=data["param"]}, color="#ff0"})
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -712,7 +712,7 @@ end
|
|||||||
local data = json.decode(sBody)
|
local data = json.decode(sBody)
|
||||||
if data then
|
if data then
|
||||||
if data.code == "0000" then
|
if data.code == "0000" then
|
||||||
CustomGameEventManager:Send_ServerToPlayer(PlayerResource:GetPlayer(playerId), "show_message", {msg="pet_cumstom_saved", duration=15, params={}, color="#ff0"})
|
CustomGameEventManager:Send_ServerToPlayer(PlayerResource:GetPlayer(playerId), "show_message", {msg="#pet_cumstom_saved", duration=15, params={}, color="#ff0"})
|
||||||
else
|
else
|
||||||
CustomGameEventManager:Send_ServerToPlayer(PlayerResource:GetPlayer(playerId), "thtd_server_msg", {code = data.code, msg = data.msg})
|
CustomGameEventManager:Send_ServerToPlayer(PlayerResource:GetPlayer(playerId), "thtd_server_msg", {code = data.code, msg = data.msg})
|
||||||
end
|
end
|
||||||
@@ -762,7 +762,7 @@ end
|
|||||||
hero:AddItem(item)
|
hero:AddItem(item)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
CustomGameEventManager:Send_ServerToPlayer(PlayerResource:GetPlayer(playerId), "show_message", {msg="key_made_tip", duration=3, params={}, color="#ff0"})
|
CustomGameEventManager:Send_ServerToPlayer(PlayerResource:GetPlayer(playerId), "show_message", {msg="#key_made_tip", duration=3, params={}, color="#ff0"})
|
||||||
ParticleManager:DestroyParticleSystem(hero.thtd_emoji_effect,true)
|
ParticleManager:DestroyParticleSystem(hero.thtd_emoji_effect,true)
|
||||||
hero.thtd_emoji_effect = ParticleManager:CreateParticle("particles/thtd/emoji/thtd_msg_hongliange.vpcf", PATTACH_OVERHEAD_FOLLOW, hero)
|
hero.thtd_emoji_effect = ParticleManager:CreateParticle("particles/thtd/emoji/thtd_msg_hongliange.vpcf", PATTACH_OVERHEAD_FOLLOW, hero)
|
||||||
ParticleManager:SetParticleControlEnt(hero.thtd_emoji_effect , 0, hero, PATTACH_OVERHEAD_FOLLOW, "attach_hitloc", Vector(0,0,0), true) --灵梦用 attach_emoji
|
ParticleManager:SetParticleControlEnt(hero.thtd_emoji_effect , 0, hero, PATTACH_OVERHEAD_FOLLOW, "attach_hitloc", Vector(0,0,0), true) --灵梦用 attach_emoji
|
||||||
|
|||||||
@@ -263,7 +263,7 @@ function SpawnSystem:PreSpawn()
|
|||||||
if GameRules:IsGamePaused() then return 0.1 end
|
if GameRules:IsGamePaused() then return 0.1 end
|
||||||
if GameRules:State_Get() == DOTA_GAMERULES_STATE_GAME_IN_PROGRESS then return nil end
|
if GameRules:State_Get() == DOTA_GAMERULES_STATE_GAME_IN_PROGRESS then return nil end
|
||||||
if uiWaveInfo["RemainingTime"] == 0 then
|
if uiWaveInfo["RemainingTime"] == 0 then
|
||||||
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="item_locked_tip", duration=60, params={}, color="#ff0"})
|
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="#item_locked_tip", duration=60, params={}, color="#ff0"})
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
uiWaveInfo["RemainingTime"] = math.max(math.floor(maxTime - GameRules:GetGameTime()),0)
|
uiWaveInfo["RemainingTime"] = math.max(math.floor(maxTime - GameRules:GetGameTime()),0)
|
||||||
@@ -284,9 +284,9 @@ function SpawnSystem:PreSpawn()
|
|||||||
-- 通知提示
|
-- 通知提示
|
||||||
local difficulty = GameRules:GetCustomGameDifficulty()
|
local difficulty = GameRules:GetCustomGameDifficulty()
|
||||||
if difficulty == CHALLENGE_MODE then
|
if difficulty == CHALLENGE_MODE then
|
||||||
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="challenge_game_on", duration=25, params={}, color="#ff0"})
|
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="#challenge_game_on", duration=25, params={}, color="#ff0"})
|
||||||
elseif difficulty >= FUNNY_MODE then
|
elseif difficulty >= FUNNY_MODE then
|
||||||
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="funny_game_on", duration=25, params={}, color="#ff0"})
|
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="#funny_game_on", duration=25, params={}, color="#ff0"})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -407,7 +407,7 @@ function SpawnSystem:InitSpawn()
|
|||||||
|
|
||||||
-- 无尽前提示
|
-- 无尽前提示
|
||||||
if wave == 50 then
|
if wave == 50 then
|
||||||
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="spawn_unlimited", duration=133, params={count=50}, color="#0ff"})
|
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="#spawn_unlimited", duration=133, params={count=50}, color="#0ff"})
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 进入无尽
|
-- 进入无尽
|
||||||
@@ -443,11 +443,11 @@ function SpawnSystem:InitSpawn()
|
|||||||
SpawnSystem:StartUnlimited()
|
SpawnSystem:StartUnlimited()
|
||||||
max_time = 180.5
|
max_time = 180.5
|
||||||
left_time = max_time
|
left_time = max_time
|
||||||
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="start_unlimited", duration=180, params={}, color="#ff0"})
|
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="#start_unlimited", duration=180, params={}, color="#ff0"})
|
||||||
if difficulty == CHALLENGE_MODE then
|
if difficulty == CHALLENGE_MODE then
|
||||||
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="challenge_game_on", duration=180, params={}, color="#ff0"})
|
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="#challenge_game_on", duration=180, params={}, color="#ff0"})
|
||||||
elseif difficulty >= FUNNY_MODE then
|
elseif difficulty >= FUNNY_MODE then
|
||||||
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="funny_game_on", duration=180, params={}, color="#ff0"})
|
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="#funny_game_on", duration=180, params={}, color="#ff0"})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -690,10 +690,10 @@ function SpawnSystem:GameOver(hero)
|
|||||||
-- 过挑战第一波BOSS算上榜
|
-- 过挑战第一波BOSS算上榜
|
||||||
if wave > 100 then
|
if wave > 100 then
|
||||||
CheckRank(hero)
|
CheckRank(hero)
|
||||||
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="power_game_end_info", duration=60, params={wave=hero.thtd_game_info["max_wave"],name=PlayerResource:GetPlayerName(hero:GetPlayerID())}, color="#ff0"})
|
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="#power_game_end_info", duration=60, params={wave=hero.thtd_game_info["max_wave"],name=PlayerResource:GetPlayerName(hero:GetPlayerID())}, color="#ff0"})
|
||||||
ShowDetail(hero)
|
ShowDetail(hero)
|
||||||
elseif wave > 50 then
|
elseif wave > 50 then
|
||||||
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="normal_game_end_info", duration=30, params={wave=wave-51,name=PlayerResource:GetPlayerName(hero:GetPlayerID())}, color="#f00"})
|
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="#normal_game_end_info", duration=30, params={wave=wave-51,name=PlayerResource:GetPlayerName(hero:GetPlayerID())}, color="#f00"})
|
||||||
end
|
end
|
||||||
SpawnSystem:RefreshCreepMaxCount()
|
SpawnSystem:RefreshCreepMaxCount()
|
||||||
end
|
end
|
||||||
@@ -719,7 +719,7 @@ function SpawnSystem:GameEnd()
|
|||||||
end
|
end
|
||||||
|
|
||||||
if wave > 100 then
|
if wave > 100 then
|
||||||
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="game_will_end", duration=60, params={}, color="#ff0"})
|
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="#game_will_end", duration=60, params={}, color="#ff0"})
|
||||||
GameRules:GetGameModeEntity():SetContextThink(DoUniqueString("thtd_end_game"),
|
GameRules:GetGameModeEntity():SetContextThink(DoUniqueString("thtd_end_game"),
|
||||||
function()
|
function()
|
||||||
GameRules:SetGameWinner(DOTA_TEAM_GOODGUYS)
|
GameRules:SetGameWinner(DOTA_TEAM_GOODGUYS)
|
||||||
@@ -900,9 +900,9 @@ function CheckPlayerConnect()
|
|||||||
if (hero:GetPlayerOwner() == nil or hero:GetPlayerOwner():IsNull()) then
|
if (hero:GetPlayerOwner() == nil or hero:GetPlayerOwner():IsNull()) then
|
||||||
if hero.thtd_game_info["is_player_connected"] then
|
if hero.thtd_game_info["is_player_connected"] then
|
||||||
hero.thtd_game_info["is_player_connected"] = false
|
hero.thtd_game_info["is_player_connected"] = false
|
||||||
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="player_disconnect", duration=15, params={count=1}, color="#0ff"} )
|
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="#player_disconnect", duration=15, params={count=1}, color="#0ff"} )
|
||||||
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="{d:count}", duration=15, params={count=hero.thtd_player_id+1}, color="#ff0"})
|
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="{d:count}", duration=15, params={count=hero.thtd_player_id+1}, color="#ff0"})
|
||||||
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="pause_game", duration=15, params={}, color="#ff0"})
|
CustomGameEventManager:Send_ServerToAllClients("show_message", {msg="#pause_game", duration=15, params={}, color="#ff0"})
|
||||||
if GameRules:IsGamePaused() then PauseGame(false) end
|
if GameRules:IsGamePaused() then PauseGame(false) end
|
||||||
PauseGame(true)
|
PauseGame(true)
|
||||||
end
|
end
|
||||||
@@ -930,7 +930,7 @@ function SpawnSystem:WaveEndForEach()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
if totalDamage < hero.thtd_wave_total_health * 0.9 then
|
if totalDamage < hero.thtd_wave_total_health * 0.9 then
|
||||||
CustomGameEventManager:Send_ServerToPlayer(hero:GetPlayerOwner(), "display_chat_msg", {msg="damage_less_rank_tip", params={player_name=PlayerResource:GetPlayerName(hero:GetPlayerOwnerID())}})
|
CustomGameEventManager:Send_ServerToPlayer(hero:GetPlayerOwner(), "display_chat_msg", {msg="#damage_less_rank_tip", params={player_name=PlayerResource:GetPlayerName(hero:GetPlayerOwnerID())}})
|
||||||
else
|
else
|
||||||
isMaxWave = true
|
isMaxWave = true
|
||||||
end
|
end
|
||||||
@@ -1384,10 +1384,10 @@ function SpawnSystem:StartSpawn()
|
|||||||
spawnerLine.nextBossName = thtd_bosses_list[RandomInt(1, #thtd_bosses_list)]
|
spawnerLine.nextBossName = thtd_bosses_list[RandomInt(1, #thtd_bosses_list)]
|
||||||
hero.next_boss_name = spawnerLine.nextBossName
|
hero.next_boss_name = spawnerLine.nextBossName
|
||||||
if player ~= nil then
|
if player ~= nil then
|
||||||
CustomGameEventManager:Send_ServerToPlayer(player,"show_message", {msg="extra_bonus_nazrin", duration=60, params={count=1}, color="#0ff"} )
|
CustomGameEventManager:Send_ServerToPlayer(player,"show_message", {msg="#extra_bonus_nazrin", duration=60, params={count=1}, color="#0ff"} )
|
||||||
CustomGameEventManager:Send_ServerToPlayer(player,"show_message", {msg="extra_bonus_minoriko_limit", duration=60, params={count=1}, color="#0ff"} )
|
CustomGameEventManager:Send_ServerToPlayer(player,"show_message", {msg="#extra_bonus_minoriko_limit", duration=60, params={count=1}, color="#0ff"} )
|
||||||
CustomGameEventManager:Send_ServerToPlayer(player,"show_message", {msg="extra_bonus_lily", duration=60, params={count=1}, color="#0ff"} )
|
CustomGameEventManager:Send_ServerToPlayer(player,"show_message", {msg="#extra_bonus_lily", duration=60, params={count=1}, color="#0ff"} )
|
||||||
CustomGameEventManager:Send_ServerToPlayer(player,"show_message", {msg="extra_bosses_"..spawnerLine.nextBossName, duration=60, params={count=1}, color="#0ff"} )
|
CustomGameEventManager:Send_ServerToPlayer(player,"show_message", {msg="#extra_bosses_"..spawnerLine.nextBossName, duration=60, params={count=1}, color="#0ff"} )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -1451,8 +1451,8 @@ function SpawnSystem:StartSpawn()
|
|||||||
local modifierName = RandomBossBuff[RandomInt(1, #RandomBossBuff)]
|
local modifierName = RandomBossBuff[RandomInt(1, #RandomBossBuff)]
|
||||||
unit:AddNewModifier(unit, nil, modifierName, {})
|
unit:AddNewModifier(unit, nil, modifierName, {})
|
||||||
if player ~= nil then
|
if player ~= nil then
|
||||||
CustomGameEventManager:Send_ServerToPlayer(player,"show_message", {msg="random_boss_has_buff", duration=20, params={}, color="#0ff"})
|
CustomGameEventManager:Send_ServerToPlayer(player,"show_message", {msg="#random_boss_has_buff", duration=20, params={}, color="#0ff"})
|
||||||
CustomGameEventManager:Send_ServerToPlayer(player,"show_message", {msg="DOTA_Tooltip_"..modifierName.."_Description", duration=20, params={}, color="#0ff"})
|
CustomGameEventManager:Send_ServerToPlayer(player,"show_message", {msg="#DOTA_Tooltip_"..modifierName.."_Description", duration=20, params={}, color="#0ff"})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ function CDOTA_BaseNPC:THTD_InitExp()
|
|||||||
time_count = 0
|
time_count = 0
|
||||||
if self.thtd_star == 5 then
|
if self.thtd_star == 5 then
|
||||||
EmitSoundOn(THTD_GetVoiceEvent(self:GetUnitName(),"spawn"),self)
|
EmitSoundOn(THTD_GetVoiceEvent(self:GetUnitName(),"spawn"),self)
|
||||||
CustomGameEventManager:Send_ServerToPlayer(self:GetPlayerOwner() , "show_message", {msg=self:GetUnitName().."_up_to_5_star", duration=30, params={}, color="#ff0"} )
|
CustomGameEventManager:Send_ServerToPlayer(self:GetPlayerOwner() , "show_message", {msg= "#"..self:GetUnitName()"_up_to_5_star", duration=30, params={}, color="#ff0"} )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user