diff --git a/1.6/Assemblies/WulaFallenEmpire.dll b/1.6/Assemblies/WulaFallenEmpire.dll index 003e18c3..39811e21 100644 Binary files a/1.6/Assemblies/WulaFallenEmpire.dll and b/1.6/Assemblies/WulaFallenEmpire.dll differ diff --git a/1.6/Defs/EventDefs/CustomUI_Example.xml b/1.6/Defs/EventDefs/CustomUI_Example.xml index 8f68452d..4e5ef947 100644 --- a/1.6/Defs/EventDefs/CustomUI_Example.xml +++ b/1.6/Defs/EventDefs/CustomUI_Example.xml @@ -9,19 +9,8 @@ 兰迪·随机 这是一个事件链的开端。选择第一个选项将会打开第二个事件窗口。 -
  • - 事件窗口已打开! - NeutralEvent -
  • -
  • - 事件窗口已关闭,进度已重置。 - NeutralEvent -
  • -
  • - wula_event_progress -
  • diff --git a/Documentation/EventSystem_Documentation.md b/Documentation/EventSystem_Documentation.md index 9b22ae39..b0cc6ac0 100644 --- a/Documentation/EventSystem_Documentation.md +++ b/Documentation/EventSystem_Documentation.md @@ -403,9 +403,23 @@ 你触发了特殊选项!
  • - +
  • +--- + +## 9. 调试工具 + +为了方便测试,我们提供了一个开发者调试命令来快速打开任何一个事件窗口。 + +**如何使用:** +1. 在游戏中打开开发者模式。 +2. 点击屏幕上方的第四个按钮 "Open the debug actions menu"。 +3. 在搜索框中输入 "Custom UI"。 +4. 点击 "Wula Fallen Empire - Open Custom UI..." 选项。 +5. 在弹出的列表中,选择你想要测试的事件的 `defName`。 + +这会立即打开对应的事件窗口,让你可以在不满足游戏内触发条件的情况下快速预览和测试你的事件。 diff --git a/Source/WulaFallenEmpire/.vs/WulaFallenEmpire/v17/.suo b/Source/WulaFallenEmpire/.vs/WulaFallenEmpire/v17/.suo index 84d24777..72996bd1 100644 Binary files a/Source/WulaFallenEmpire/.vs/WulaFallenEmpire/v17/.suo and b/Source/WulaFallenEmpire/.vs/WulaFallenEmpire/v17/.suo differ diff --git a/Source/WulaFallenEmpire/EventSystem/DebugActions.cs b/Source/WulaFallenEmpire/EventSystem/DebugActions.cs index cec64aa5..0fcc1ed5 100644 --- a/Source/WulaFallenEmpire/EventSystem/DebugActions.cs +++ b/Source/WulaFallenEmpire/EventSystem/DebugActions.cs @@ -7,7 +7,7 @@ namespace WulaFallenEmpire { public static class WulaDebugActions { - [DebugAction("Wula Fallen Empire", "Open Custom UI...", actionType = DebugActionType.ToolMap, allowedGameStates = AllowedGameStates.Playing)] + [DebugAction("Wula Fallen Empire", "Open Custom UI...", actionType = DebugActionType.Action, allowedGameStates = AllowedGameStates.Playing)] private static void OpenCustomUI() { List list = new List();