feat(WulaFallenEmpire): 新增自定义 UI 布局并优化事件系统

- 添加新布局配置和相关代码,支持自定义 UI 样式
- 实现新的事件定义和对话选项,增加游戏互动性
- 优化事件处理逻辑,提高代码复用性和可维护性
- 更新事件配置文件,引入新布局参数
This commit is contained in:
2025-08-30 23:21:07 +08:00
parent ddf817046c
commit 30a4f64230
12 changed files with 554 additions and 25 deletions

View File

@@ -1,3 +1,4 @@
using System; // Add this line
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
@@ -26,6 +27,7 @@ namespace WulaFallenEmpire
public Vector2 windowSize = Vector2.zero;
public Type windowType = typeof(Dialog_CustomDisplay); // 默认窗口类型
public List<EventOption> options;
public string backgroundImagePath;
public List<ConditionalEffects> immediateEffects;
@@ -83,7 +85,7 @@ namespace WulaFallenEmpire
public List<Effect> randomlistEffects;
public List<LoopEffects> loopEffects;
public void Execute(Dialog_CustomDisplay dialog)
public void Execute(Window dialog)
{
// Execute all standard effects
if (!effects.NullOrEmpty())