Skip to content

Commit 7455f8a

Browse files
committed
Update chinese debug console to 0.1.1
1 parent b8a89f5 commit 7455f8a

6 files changed

Lines changed: 11 additions & 11 deletions

File tree

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,14 @@
6767

6868
- 安装目录:`mods/chinese_debug_console`
6969
- 源码目录:`mod_src/chinese_debug_console`
70-
- 当前版本:`0.1.0`
70+
- 当前版本:`0.1.1`
7171

7272
功能说明:
7373

74-
- 在游戏内添加中文覆盖层调试控制台。
75-
- 支持添加或移除当前牌组卡牌。
76-
- 支持添加或移除当前玩家遗物。
74+
- 在游戏内按 `F10` 呼出或关闭中文覆盖层调试控制台。
75+
- 控制台顶部有四个快捷按钮:`添加卡牌``移除卡牌``添加遗物``移除遗物`
76+
- 支持按中文名、英文名或内部 ID 搜索卡牌/遗物。
77+
- 支持中文命令,例如 `加卡 相信着你``删卡 打击``加遗物 锚``删遗物 锚`
7778

7879
### Card Effect Tweaks
7980

@@ -87,7 +88,7 @@
8788
推荐使用 Release 里的压缩包安装:
8889

8990
1. 打开本仓库的 GitHub Release 页面。
90-
2. 下载 `STS2mods-v1.0.15.zip`
91+
2. 下载 `STS2mods-v1.0.16.zip`
9192
3. 解压压缩包。
9293
4. 把解压出来的 `mods` 文件夹复制到《杀戮尖塔 2》的游戏目录下。
9394

mod_src/chinese_debug_console/chinese_debug_console.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<LangVersion>12.0</LangVersion>
99
<Nullable>enable</Nullable>
1010
<ImplicitUsings>enable</ImplicitUsings>
11+
<Version>0.1.1</Version>
1112
</PropertyGroup>
1213

1314
<ItemGroup>

mod_src/chinese_debug_console/src/UI/ChineseConsoleOverlay.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ private Control BuildQuickActions()
192192
row.AddChild(CreateModeButton("添加遗物", PickerMode.AddRelic));
193193
row.AddChild(CreateModeButton("移除遗物", PickerMode.RemoveRelic));
194194

195-
Label hint = CreateLabel("快捷键:` / ~ / ' 呼出或关闭", 16, MutedTextColor);
195+
Label hint = CreateLabel("快捷键:F10 呼出或关闭", 16, MutedTextColor);
196196
hint.SizeFlagsHorizontal = SizeFlags.ExpandFill;
197197
hint.HorizontalAlignment = HorizontalAlignment.Right;
198198
row.AddChild(hint);
@@ -440,9 +440,7 @@ private void AppendLog(string message, bool success)
440440

441441
private static bool IsToggleKey(InputEventKey key)
442442
{
443-
return key.Keycode is Key.Quoteleft or Key.Apostrophe or Key.Asciicircum or Key.Asterisk
444-
|| key.PhysicalKeycode is Key.Quoteleft or Key.Apostrophe
445-
|| (key.ShiftPressed && key.Keycode == Key.Key8);
443+
return key.Keycode == Key.F10 || key.PhysicalKeycode == Key.F10;
446444
}
447445

448446
private static Label CreateLabel(string text, int fontSize, Color color)
0 Bytes
Binary file not shown.

mods/chinese_debug_console/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"id": "chinese_debug_console",
33
"name": "中文调试控制台",
44
"author": "良风有幸(Mr.Huang)",
5-
"description": "中文覆盖层调试控制台,支持在游戏内添加或移除当前牌组卡牌,也可以添加或移除当前玩家遗物。\n\n详情见我的github仓库https://github.com/lfyxhappy/STS2mods",
6-
"version": "0.1.0",
5+
"description": "中文覆盖层调试控制台,按 F10 呼出,支持在游戏内添加或移除当前牌组卡牌,也可以添加或移除当前玩家遗物。\n\n详情见我的github仓库https://github.com/lfyxhappy/STS2mods",
6+
"version": "0.1.1",
77
"has_dll": true,
88
"has_pck": false,
99
"affects_gameplay": true

release/STS2mods-v1.0.16.zip

82.6 MB
Binary file not shown.

0 commit comments

Comments
 (0)