Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
147 commits
Select commit Hold shift + click to select a range
f0d961a
Merge pull request #666 from windybirth/develop
windybirth Jul 28, 2023
2cac581
Merge pull request #667 from windybirth/develop
windybirth Aug 1, 2023
2d24f6c
Merge pull request #668 from windybirth/develop
windybirth Aug 6, 2023
13d1aa0
Merge pull request #674 from windybirth/develop
windybirth Aug 12, 2023
2d8fc55
Merge pull request #677 from windybirth/develop
windybirth Aug 13, 2023
4554cfa
Merge pull request #680 from windybirth/develop
windybirth Aug 13, 2023
ef847a6
Merge pull request #681 from windybirth/develop
windybirth Aug 21, 2023
4ce0a36
Merge pull request #683 from windybirth/develop
windybirth Aug 26, 2023
0c18924
Merge pull request #684 from windybirth/develop
windybirth Aug 31, 2023
0848335
Merge pull request #685 from windybirth/develop
windybirth Aug 31, 2023
d9a667b
Merge pull request #688 from windybirth/develop
windybirth Sep 13, 2023
5708325
Merge pull request #691 from windybirth/develop
windybirth Sep 30, 2023
d05a43a
Merge pull request #694 from windybirth/develop
windybirth Oct 8, 2023
1f8b567
Merge pull request #698 from windybirth/develop
windybirth Nov 13, 2023
98582ee
Merge pull request #699 from windybirth/develop
windybirth Nov 13, 2023
164feb6
Merge pull request #702 from windybirth/develop
windybirth Dec 3, 2023
2789481
Merge pull request #709 from windybirth/develop
windybirth Dec 9, 2023
a49d081
Merge pull request #710 from windybirth/develop
windybirth Dec 17, 2023
cbec71c
Merge pull request #717 from windybirth/develop
windybirth Dec 24, 2023
db7e19a
Merge pull request #732 from windybirth/develop
windybirth Dec 31, 2023
112c851
Merge pull request #751 from windybirth/develop
windybirth Jan 1, 2024
ddffb36
Merge pull request #755 from windybirth/develop
windybirth Jan 4, 2024
8d3904d
Merge pull request #763 from windybirth/develop
windybirth Jan 6, 2024
c748342
Merge pull request #764 from windybirth/develop
windybirth Jan 7, 2024
44b2664
Merge pull request #773 from windybirth/develop
windybirth Jan 14, 2024
f110713
Merge pull request #777 from windybirth/develop
github-actions[bot] Jan 17, 2024
0da2dbb
Merge pull request #787 from windybirth/develop
github-actions[bot] Jan 20, 2024
b90db01
Merge pull request #791 from windybirth/develop
github-actions[bot] Jan 21, 2024
0768fb4
Merge pull request #793 from windybirth/develop
github-actions[bot] Feb 4, 2024
3cc481c
Merge pull request #804 from windybirth/develop
github-actions[bot] Feb 7, 2024
f23b018
Merge pull request #812 from windybirth/develop
github-actions[bot] Feb 11, 2024
e3a0354
Merge pull request #818 from windybirth/develop
github-actions[bot] Feb 25, 2024
9b1cfec
Merge pull request #837 from windybirth/develop
github-actions[bot] Mar 3, 2024
26d7121
Merge pull request #841 from windybirth/develop
github-actions[bot] Mar 12, 2024
3e41f9e
Merge pull request #846 from windybirth/develop
github-actions[bot] Mar 17, 2024
a9a7eba
Merge pull request #849 from windybirth/develop
github-actions[bot] Mar 23, 2024
1f4d10b
Merge pull request #853 from windybirth/develop
github-actions[bot] Mar 31, 2024
699a79d
Merge pull request #860 from windybirth/develop
github-actions[bot] Apr 14, 2024
e4a100e
Merge pull request #865 from windybirth/develop
github-actions[bot] Apr 22, 2024
efe7776
Merge pull request #868 from windybirth/develop
github-actions[bot] May 12, 2024
3653770
Merge pull request #879 from windybirth/develop
github-actions[bot] Jun 2, 2024
82bf68a
Merge pull request #892 from windybirth/develop
github-actions[bot] Jun 7, 2024
8f4e451
Merge pull request #897 from windybirth/develop
github-actions[bot] Jun 14, 2024
f230a62
Merge pull request #906 from windybirth/develop
github-actions[bot] Jul 10, 2024
2061250
Merge pull request #925 from windybirth/develop
github-actions[bot] Jul 21, 2024
e676411
Merge pull request #938 from windybirth/develop
github-actions[bot] Aug 2, 2024
c5b54d7
Merge pull request #964 from windybirth/develop
github-actions[bot] Aug 13, 2024
ba0f0f5
Merge pull request #975 from windybirth/develop
github-actions[bot] Aug 19, 2024
e6b3348
Merge pull request #981 from windybirth/develop
github-actions[bot] Aug 23, 2024
ee64df0
Merge pull request #984 from windybirth/develop
windybirth Sep 7, 2024
25354fe
Merge pull request #1001 from windybirth/develop
windybirth Sep 12, 2024
d55f129
Merge pull request #1013 from windybirth/develop
windybirth Sep 15, 2024
e260e46
Merge pull request #1022 from windybirth/develop
windybirth Sep 29, 2024
30baeb3
Merge pull request #1033 from windybirth/develop
windybirth Oct 5, 2024
696fb1f
Merge pull request #1037 from windybirth/develop
windybirth Oct 6, 2024
66f135b
Merge pull request #1045 from windybirth/develop
windybirth Oct 14, 2024
33f89ee
Merge pull request #1050 from windybirth/develop
windybirth Oct 27, 2024
865b62c
Merge pull request #1060 from windybirth/develop
windybirth Nov 3, 2024
c8f65ce
Merge pull request #1075 from windy10v10ai/develop
windybirth Nov 10, 2024
22b973b
Merge pull request #1080 from windy10v10ai/develop
windybirth Nov 10, 2024
b66e79c
Merge pull request #1088 from windy10v10ai/develop
windybirth Nov 16, 2024
b300045
Merge pull request #1111 from windy10v10ai/develop
windybirth Dec 1, 2024
af56bf0
Merge pull request #1137 from windy10v10ai/develop
windybirth Dec 2, 2024
de5eb26
Merge pull request #1147 from windy10v10ai/develop
windybirth Dec 6, 2024
7bad205
Merge pull request #1152 from windy10v10ai/develop
windybirth Dec 8, 2024
690cb77
Merge pull request #1165 from windy10v10ai/develop
windybirth Dec 16, 2024
cb14736
Merge pull request #1173 from windy10v10ai/develop
windybirth Dec 23, 2024
0a45911
Merge pull request #1185 from windy10v10ai/develop
windybirth Dec 30, 2024
bc373d2
Merge pull request #1196 from windy10v10ai/develop
windybirth Jan 3, 2025
6ac902b
Merge pull request #1204 from windy10v10ai/develop
windybirth Jan 4, 2025
e04f245
Merge pull request #1213 from windy10v10ai/develop
windybirth Jan 10, 2025
188994d
Merge pull request #1218 from windy10v10ai/develop
windybirth Jan 19, 2025
8b0f39b
Merge pull request #1234 from windy10v10ai/develop
windybirth Feb 2, 2025
4779242
Merge pull request #1249 from windy10v10ai/develop
windybirth Feb 7, 2025
8dfb320
Merge pull request #1252 from windy10v10ai/develop
windybirth Feb 12, 2025
438af01
Merge pull request #1258 from windy10v10ai/develop
windybirth Feb 15, 2025
6d5eddf
Merge pull request #1272 from windy10v10ai/develop
windybirth Feb 21, 2025
087998c
Merge pull request #1299 from windy10v10ai/develop
windybirth Feb 23, 2025
748fd12
Merge pull request #1319 from windy10v10ai/develop
windybirth Feb 28, 2025
934c29f
Merge pull request #1331 from windy10v10ai/develop
windybirth Mar 2, 2025
f9948eb
Merge pull request #1337 from windy10v10ai/develop
windybirth Mar 8, 2025
b94377b
Merge pull request #1354 from windy10v10ai/develop
windybirth Mar 14, 2025
18a1a24
Merge pull request #1356 from windy10v10ai/develop
windybirth Mar 21, 2025
e0ac1d1
Merge pull request #1375 from windy10v10ai/develop
windybirth Mar 24, 2025
1706f86
Merge pull request #1390 from windy10v10ai/develop
windybirth Mar 30, 2025
cb42b24
Merge pull request #1393 from windy10v10ai/develop
windybirth Apr 2, 2025
c0e5784
Merge pull request #1412 from windy10v10ai/develop
windybirth Apr 6, 2025
80dd941
Merge pull request #1434 from windy10v10ai/develop
windybirth Apr 13, 2025
d00fcff
Merge pull request #1446 from windy10v10ai/develop
windybirth Apr 21, 2025
428a55e
Merge pull request #1450 from windy10v10ai/develop
windybirth Apr 27, 2025
e4437ad
Merge pull request #1461 from windy10v10ai/develop
windybirth Apr 29, 2025
97da251
Merge pull request #1471 from windy10v10ai/develop
windybirth May 27, 2025
5ed3d9d
Merge pull request #1483 from windy10v10ai/develop
windybirth Jun 1, 2025
ac30a2e
Merge pull request #1495 from windy10v10ai/develop
windybirth Jun 7, 2025
ec9e84f
Merge pull request #1501 from windy10v10ai/develop
windybirth Jun 14, 2025
54c24f0
Merge pull request #1507 from windy10v10ai/develop
windybirth Jun 20, 2025
6c9e8e7
Merge pull request #1514 from windy10v10ai/develop
windybirth Jun 27, 2025
51a8b72
Merge pull request #1521 from windy10v10ai/develop
windybirth Jul 4, 2025
32f78ad
Merge pull request #1536 from windy10v10ai/develop
windybirth Jul 27, 2025
4dd9fd5
Merge pull request #1552 from windy10v10ai/develop
windybirth Aug 10, 2025
3e862f7
Merge pull request #1558 from windy10v10ai/develop
windybirth Aug 27, 2025
2bc30f5
Merge pull request #1564 from windy10v10ai/develop
windybirth Aug 31, 2025
a73e7dd
Merge pull request #1572 from windy10v10ai/develop
windybirth Sep 5, 2025
86a0bf8
Merge pull request #1586 from windy10v10ai/develop
windybirth Sep 13, 2025
9744e0e
Merge pull request #1592 from windy10v10ai/develop
windybirth Sep 18, 2025
33cf186
Merge pull request #1603 from windy10v10ai/develop
windybirth Sep 28, 2025
3a14317
Merge pull request #1616 from windy10v10ai/develop
windybirth Oct 18, 2025
b73e61b
Merge pull request #1634 from windy10v10ai/develop
windybirth Oct 22, 2025
89eaba1
Merge pull request #1652 from windy10v10ai/develop
windybirth Oct 25, 2025
1a3a4dd
Merge pull request #1663 from windy10v10ai/develop
windybirth Oct 31, 2025
3c90eab
Merge pull request #1684 from windy10v10ai/develop
windybirth Nov 2, 2025
6d4fef6
Merge pull request #1704 from windy10v10ai/develop
windybirth Nov 9, 2025
c00948b
Merge pull request #1728 from windy10v10ai/develop
windybirth Nov 11, 2025
9293208
Merge pull request #1741 from windy10v10ai/develop
windybirth Nov 15, 2025
722f1fe
Merge pull request #1775 from windy10v10ai/develop
windybirth Nov 19, 2025
0bb93fd
Merge pull request #1801 from windy10v10ai/develop
windybirth Nov 23, 2025
b40c370
Merge pull request #1813 from windy10v10ai/develop
windybirth Nov 29, 2025
d7036d3
Merge pull request #1820 from windy10v10ai/develop
windybirth Dec 6, 2025
0dde1a0
Merge pull request #1836 from windy10v10ai/develop
windybirth Dec 14, 2025
162b326
Merge pull request #1840 from windy10v10ai/develop
windybirth Dec 16, 2025
33820f2
Merge pull request #1856 from windy10v10ai/develop
windybirth Dec 20, 2025
949e0ba
Merge pull request #1867 from windy10v10ai/develop
windybirth Jan 6, 2026
34ee308
Merge pull request #1878 from windy10v10ai/develop
windybirth Jan 11, 2026
c8f3c23
Merge pull request #1885 from windy10v10ai/develop
windybirth Jan 17, 2026
cdbc5bc
Merge pull request #1891 from windy10v10ai/develop
windybirth Jan 19, 2026
3d5143a
Merge pull request #1894 from windy10v10ai/develop
windybirth Jan 24, 2026
6f77619
Merge pull request #1900 from windy10v10ai/develop
windybirth Jan 31, 2026
f248416
Merge pull request #1905 from windy10v10ai/develop
windybirth Feb 3, 2026
e842b1a
Merge pull request #1917 from windy10v10ai/develop
windybirth Feb 7, 2026
94a8a1b
Merge pull request #1923 from windy10v10ai/develop
windybirth Feb 23, 2026
17dcac4
Merge pull request #1932 from windy10v10ai/develop
windybirth Feb 27, 2026
f7cb870
Merge pull request #1943 from windy10v10ai/develop
windybirth Mar 1, 2026
52c5329
Merge pull request #1944 from windy10v10ai/develop
windybirth Mar 27, 2026
a93f2d0
Merge pull request #1965 from windy10v10ai/develop
windybirth Mar 28, 2026
03d8222
Merge pull request #1972 from windy10v10ai/develop
windybirth Apr 4, 2026
7c9aa1c
Merge pull request #1984 from windy10v10ai/develop
windybirth Apr 11, 2026
6ac0a2d
Merge pull request #2003 from windy10v10ai/develop
windybirth Apr 13, 2026
b5dd6d4
feat: add Kingmaker's Crown and Beast Helmet items, and rebalance mul…
Sapphire2408 Apr 14, 2026
0413da0
feat: add English localization tokens for game options, UI panels, an…
Sapphire2408 Apr 14, 2026
7c3f225
feat: add custom npc_abilities_override.txt with rebalanced hero abil…
Sapphire2408 Apr 14, 2026
9e3f549
feat: add npc ability overrides and shop configurations
Sapphire2408 Apr 15, 2026
287cddc
Add Hand of Prosperity, more Hero Buffs/Nerfs
Sapphire2408 Apr 15, 2026
ef69ad8
add new difficulties
Sapphire2408 Apr 15, 2026
ab18d85
rework bot behaviour
Sapphire2408 Apr 15, 2026
d70c2d8
rework bot behaviour
Sapphire2408 Apr 16, 2026
62374f0
Merge branch 'feature/rework_bot_behaviour' into fix/clock_beasthelme…
Sapphire2408 Apr 21, 2026
f3299be
added new items, reworked bot behavior, rework rune draft
Sapphire2408 Apr 21, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
861 changes: 861 additions & 0 deletions .claude/plans/custom-items-implementation.md

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,14 @@
"editor.defaultFormatter": "sumneko.lua"
},
"githubPullRequests.ignoredPullRequestBranches": ["develop"],
"editor.wordWrap": "on"
"editor.wordWrap": "on",
"[vdf]": {
"editor.defaultFormatter": "pfwobcke.vscode-vdf"
},
"[xml]": {
"editor.defaultFormatter": "redhat.vscode-xml"
},
"[valve-kv]": {
"editor.defaultFormatter": "Sarrus.sourcepawn-vscode"
}
}
Binary file added content/panorama/images/items/beast_helmet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions content/panorama/images/items/item_beast_helmet.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<root>
<Panel class="AddonLoadingRoot">
<Image id="gamemode" class="SeqImg" src="file://{images}/items/beast_helmet.png" />
</Panel>
</root>
5 changes: 5 additions & 0 deletions content/panorama/images/items/item_hand_of_prosperity.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<root>
<Panel class="AddonLoadingRoot">
<Image id="gamemode" class="SeqImg" src="file://{images}/items/hand_of_prosperity.png" />
</Panel>
</root>
5 changes: 5 additions & 0 deletions content/panorama/images/items/item_kingmakers_crown.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<root>
<Panel class="AddonLoadingRoot">
<Image id="gamemode" class="SeqImg" src="file://{images}/items/kingmakers_crown.png" />
</Panel>
</root>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions content/panorama/images/items/item_recipe_beast_helmet.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<root>
<Panel class="AddonLoadingRoot">
<Image id="gamemode" class="SeqImg" src="file://{images}/items/item_recipe_beast_helmet.png" />
</Panel>
</root>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<root>
<Panel class="AddonLoadingRoot">
<Image id="gamemode" class="SeqImg" src="file://{images}/items/item_recipe_hand_of_prosperity.png" />
</Panel>
</root>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<root>
<Panel class="AddonLoadingRoot">
<Image id="gamemode" class="SeqImg" src="file://{images}/items/item_recipe_kingmakers_crown.png" />
</Panel>
</root>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions content/panorama/layout/custom_game/custom_loading_screen.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
<Label text="10" id="10"/>
<Label text="11" id="11"/>
<Label text="12" id="12"/>
<Label text="14" id="14"/>
<Label text="15" id="15"/>
<Label text="17" id="17"/>
<Label text="20" id="20"/>
<Label text="#bot_gold_xp_multiplier_40" id="40"/>
</DropDown>
Expand Down Expand Up @@ -164,6 +166,11 @@
<Label id="MidOnlyModeTitle" class="GameOptionsLabel" text="#mid_only_mode" />
<ToggleButton checked="false" class="GameOptionsToggle" id="mid_only_mode" onactivate="SendGameOptionsToServer()"/>
</Panel>
<!-- 加速模式 -->
<Panel id="TurboModePanel" class="GameOptionsSubPanel">
<Label id="TurboModeTitle" class="GameOptionsLabel" text="#turbo_mode" />
<ToggleButton checked="false" class="GameOptionsToggle" id="turbo_mode" onactivate="SendGameOptionsToServer()"/>
</Panel>
</Panel>
</Panel>
<!-- 游戏选项显示 START-->
Expand Down
12 changes: 7 additions & 5 deletions content/panorama/layout/custom_game/team_select/team_select.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,11 @@ function SetDifficultyByMapName() {
}

if (mapDisplayName !== 'hard') {
for (let i = 6; i <= 7; i++) {
for (let i = 6; i <= 10; i++) {
const button = $('#DifficultyN' + i);
disableDifficultyButton(button, '#map_hard_warning');
if (button) {
disableDifficultyButton(button, '#map_hard_warning');
}
}
}

Expand Down Expand Up @@ -337,7 +339,7 @@ function OnChooseDifficulty(difficulty) {
$.Msg(`Map ${mapDisplayName} cannot choose difficulty ${difficulty}`);
return;
}
if (mapDisplayName === 'hard' && difficulty !== 6 && difficulty !== 7) {
if (mapDisplayName === 'hard' && (difficulty < 6 || difficulty > 10)) {
$.Msg(`Map ${mapDisplayName} cannot choose difficulty ${difficulty}`);
return;
}
Expand All @@ -346,7 +348,7 @@ function OnChooseDifficulty(difficulty) {
return;
}
// remove all selected class
for (let i = 0; i <= 7; i++) {
for (let i = 0; i <= 10; i++) {
const button = $('#DifficultyN' + i);
if (button) {
button.RemoveClass('selected');
Expand Down Expand Up @@ -375,7 +377,7 @@ function OnGameDifficultyChoiceChange(_table, key, value) {
Game.SetRemainingSetupTime(10);
}

for (let i = 0; i <= 7; i++) {
for (let i = 0; i <= 10; i++) {
const button = $('#DifficultyN' + i);
if (!button) continue;
button.enabled = false;
Expand Down
84 changes: 60 additions & 24 deletions content/panorama/layout/custom_game/team_select/team_select.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,37 @@
</scripts>
<Panel hittest="false" class="TeamSelect">
<Panel hittest="false" id="TeamSelectContainer" selectionpos="auto">
<!--Empty space to let the loading screen and chat be visible-->
<!--Empty
space to let the loading screen and chat be visible-->
<Panel hittest="false" id="TeamsSelectEmptySpace" />

<!--Game Info and Unassigned players, right hand panel-->
<!--Game
Info and Unassigned players, right hand panel-->
<Panel id="GameAndPlayersRoot">

<Panel id="GameInfoPanel">

<!--Game mode and map-->
<!--Game
mode and map-->
<Panel id="CustomGameModeName">
<Label id="GameModeNameLabel" text="#addon_game_name" />
</Panel>
<Panel id="MapInfo">
<Label id="MapInfoLabel" text="#LoadingScreenMapInfo" />
</Panel>

<!--Countdown timer-->
<!--Countdown
timer-->
<Panel id="StartGameCountdownTimer">
<Image id="TimerBg" src="s2r://panorama/images/status_icons/timer_background.psd" />
<Image id="TimerRing" src="s2r://panorama/images/status_icons/timer_ring.psd" />
<Image id="TimerBg"
src="s2r://panorama/images/status_icons/timer_background.psd" />
<Image id="TimerRing"
src="s2r://panorama/images/status_icons/timer_ring.psd" />
<Label id="TeamSelectTimer" text="#custom_game_team_select_timer" />
<Panel id="TimerLabelBox" >
<Panel id="TimerLabelBox">
<Label id="TimerLabelVote" text="#custom_game_vote" />
<Label id="TimerLabelAutoStart" text="#custom_game_team_select_auto_start" />
<Label id="TimerLabelAutoStart"
text="#custom_game_team_select_auto_start" />
<Label id="TimerLabelGameStart" text="#custom_game_team_select_starting" />
</Panel>
</Panel>
Expand All @@ -45,59 +52,88 @@
<Panel id="DifficultyContainer" class="flowDown">
<Label class="selectTitle" text="#game_difficulty_choice" />
<Panel id="DifficultyList" class="flowDown">

<Panel id="DifficultyDota" class="flowRight">
<Button id="DifficultyN1" class="difficultyChoice" onactivate="OnChooseDifficulty(1)">
<Button id="DifficultyN1" class="difficultyChoice"
onactivate="OnChooseDifficulty(1)">
<Label class="difficultyText" text="#game_difficulty_n1" />
</Button>
<Button id="DifficultyN2" class="difficultyChoice" onactivate="OnChooseDifficulty(2)">
<Button id="DifficultyN2" class="difficultyChoice"
onactivate="OnChooseDifficulty(2)">
<Label class="difficultyText" text="#game_difficulty_n2" />
</Button>
<Button id="DifficultyN3" class="difficultyChoice" onactivate="OnChooseDifficulty(3)">
<Button id="DifficultyN3" class="difficultyChoice"
onactivate="OnChooseDifficulty(3)">
<Label class="difficultyText" text="#game_difficulty_n3" />
</Button>
<Button id="DifficultyN4" class="difficultyChoice" onactivate="OnChooseDifficulty(4)">
<Button id="DifficultyN4" class="difficultyChoice"
onactivate="OnChooseDifficulty(4)">
<Label class="difficultyText" text="#game_difficulty_n4" />
</Button>
<Button id="DifficultyN5" class="difficultyChoice" onactivate="OnChooseDifficulty(5)">
<Button id="DifficultyN5" class="difficultyChoice"
onactivate="OnChooseDifficulty(5)">
<Label class="difficultyText" text="#game_difficulty_n5" />
</Button>
</Panel>

<Panel id="DifficultyHard" class="flowRight">
<Button id="DifficultyN6" class="difficultyChoice fullWidth" onactivate="OnChooseDifficulty(6)">
<Button id="DifficultyN6" class="difficultyChoice"
onactivate="OnChooseDifficulty(6)">
<Label class="difficultyText" text="#game_difficulty_n6" />
</Button>
<Button id="DifficultyN7" class="difficultyChoice fullWidth" onactivate="OnChooseDifficulty(7)">
<Button id="DifficultyN7" class="difficultyChoice"
onactivate="OnChooseDifficulty(7)">
<Label class="difficultyText" text="#game_difficulty_n7" />
</Button>
<Button id="DifficultyN8" class="difficultyChoice"
onactivate="OnChooseDifficulty(8)">
<Label class="difficultyText" text="#game_difficulty_n8" />
</Button>
<Button id="DifficultyN9" class="difficultyChoice"
onactivate="OnChooseDifficulty(9)">
<Label class="difficultyText" text="#game_difficulty_n9" />
</Button>
<Button id="DifficultyN10" class="difficultyChoice"
onactivate="OnChooseDifficulty(10)">
<Label class="difficultyText" text="#game_difficulty_n10" />
</Button>
</Panel>

<Panel id="DifficultyCustom" class="flowRight">
<Button id="DifficultyN0" class="difficultyChoice longer" onactivate="OnChooseDifficulty(0)">
<Label class="difficultyText" text="#game_difficulty_n0"/>
<Button id="DifficultyN0" class="difficultyChoice longer"
onactivate="OnChooseDifficulty(0)">
<Label class="difficultyText" text="#game_difficulty_n0" />
</Button>
</Panel>
</Panel>
</Panel>

<!--Teams List, left hand panel-->
<!--Teams
List, left hand panel-->
<Panel id="TeamsContainer">
<Panel id="TeamsListRoot" />
</Panel>

<!--API Loading Status-->
<!--API
Loading Status-->
<Panel id="GameLoadingStatus" class="DisplayOptionsSubPanel">
<Label id="GameLoadingStatusText" class="DisplayOptionsLableTitle" text="#loading_status_1" style="color:#FD841F;" />
<Label id="GameLoadingStatusText" class="DisplayOptionsLableTitle"
text="#loading_status_1" style="color:#FD841F;" />
</Panel>

<!--Start and lock button-->
<Button id="LockAndStartButton" class="PlayButton" onactivate="OnLockAndStartPressed()">
<!--Start
and lock button-->
<Button id="LockAndStartButton" class="PlayButton"
onactivate="OnLockAndStartPressed()">
<Label text="#custom_game_team_select_lock_start" />
</Button>
<Button id="CancelAndUnlockButton" class="PlayButton" onactivate="OnCancelAndUnlockPressed()">
<Button id="CancelAndUnlockButton" class="PlayButton"
onactivate="OnCancelAndUnlockPressed()">
<Label text="#custom_game_team_select_cancel_unlock" />
</Button>

<!-- playerPanel background -->
<Panel id="UnassignedPlayersContainer"/>
<Panel id="UnassignedPlayersContainer" />

</Panel>
</Panel>
Expand Down
41 changes: 41 additions & 0 deletions content/panorama/scripts/custom_game/game_mode.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ function InitCustomSetting() {
$('#force_random_hero').checked = false; // 默认不强制随机
$('#enable_player_attribute').checked = true;
$('#mid_only_mode').checked = false;
$('#turbo_mode').checked = false;
$('#player_gold_xp_multiplier_dropdown').SetSelected('1.5');
$('#bot_gold_xp_multiplier_dropdown').SetSelected('10');
$('#radiant_player_number_dropdown').SetSelected('1');
Expand Down Expand Up @@ -111,6 +112,7 @@ function LockOption() {
$('#force_random_hero').enabled = false;
$('#enable_player_attribute').enabled = false;
$('#mid_only_mode').enabled = false;
$('#turbo_mode').enabled = false;
}

function UnLockOptionAll() {
Expand All @@ -129,6 +131,7 @@ function UnLockOptionAll() {
$('#force_random_hero').enabled = true;
$('#enable_player_attribute').enabled = true;
$('#mid_only_mode').enabled = true;
$('#turbo_mode').enabled = true;
}

// N1-N6 通用设置
Expand All @@ -143,6 +146,7 @@ function InitDifficultyCommonSetting() {
$('#force_random_hero').checked = false;
$('#enable_player_attribute').checked = true;
$('#mid_only_mode').checked = false;
$('#turbo_mode').checked = false;
}

function InitN1Setting() {
Expand Down Expand Up @@ -208,6 +212,35 @@ function InitN7Setting() {
$('#starting_gold_player_dropdown').SetSelected('3000');
$('#starting_gold_bot_dropdown').SetSelected('5000');
}
function InitN8Setting() {
$('#player_gold_xp_multiplier_dropdown').SetSelected('1.5');
$('#bot_gold_xp_multiplier_dropdown').SetSelected('14');

$('#tower_power_dropdown').SetSelected('400');

$('#starting_gold_player_dropdown').SetSelected('3000');
$('#starting_gold_bot_dropdown').SetSelected('5000');
}

function InitN9Setting() {
$('#player_gold_xp_multiplier_dropdown').SetSelected('1.5');
$('#bot_gold_xp_multiplier_dropdown').SetSelected('17');

$('#tower_power_dropdown').SetSelected('400');

$('#starting_gold_player_dropdown').SetSelected('3000');
$('#starting_gold_bot_dropdown').SetSelected('7000');
}

function InitN10Setting() {
$('#player_gold_xp_multiplier_dropdown').SetSelected('1.5');
$('#bot_gold_xp_multiplier_dropdown').SetSelected('20');

$('#tower_power_dropdown').SetSelected('400');

$('#starting_gold_player_dropdown').SetSelected('3000');
$('#starting_gold_bot_dropdown').SetSelected('7000');
}
// -------- send to server --------
function StateChange() {
if (Game.GameStateIs(DOTA_GameState.DOTA_GAMERULES_STATE_CUSTOM_GAME_SETUP)) {
Expand Down Expand Up @@ -255,6 +288,7 @@ function SendGameOptionsToServer() {
const forceRandomHero = $('#force_random_hero').checked;
const enablePlayerAttribute = $('#enable_player_attribute').checked;
const midOnlyMode = $('#mid_only_mode').checked;
const turboMode = $('#turbo_mode').checked;

GameEvents.SendCustomGameEventToServer('game_options_change', {
multiplier_radiant: Number(playerGoldXpMultiplier),
Expand All @@ -270,6 +304,7 @@ function SendGameOptionsToServer() {
force_random_hero: forceRandomHero,
enable_player_attribute: enablePlayerAttribute,
mid_only_mode: midOnlyMode,
turbo_mode: turboMode,
});
}

Expand Down Expand Up @@ -315,6 +350,12 @@ function OnDifficultyDropDownChanged(difficulty) {
InitN6Setting();
} else if (optionId === 7) {
InitN7Setting();
} else if (optionId === 8) {
InitN8Setting();
} else if (optionId === 9) {
InitN9Setting();
} else if (optionId === 10) {
InitN10Setting();
}
LockOption();
}
Expand Down
6 changes: 3 additions & 3 deletions content/panorama/styles/custom_game/custom_loading_screen.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
}

#QQDiscordContainer {
width: 500px;
width: 300px;
vertical-align: bottom;
margin-bottom: 60px;
}
Expand All @@ -94,8 +94,8 @@

#QQQRCodeImage,
#DiscordQRCodeImage {
width: 200px;
height: 260px;
width: 120px;
height: 156px;
}

#LinkButtonContainer {
Expand Down
Loading