(client) feat:支持定义实体的碰撞体大小和偏移;建筑支持定义实体建筑和瓦片建筑,建筑支持指定按钮回调;添加存档管理器;Dev支持设置是否暂停;实体允许定义事件组;添加基地界面 (#57)

Co-authored-by: m0_75251201 <m0_75251201@noreply.gitcode.com>
Reviewed-on: http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite/pulls/57
This commit is contained in:
2025-09-28 15:02:57 +08:00
parent 87a8abe86c
commit aff747be17
232 changed files with 39203 additions and 4161 deletions

View File

@@ -4,6 +4,7 @@ using Prefab; // 假设 TextPrefab 在 Prefab 命名空间下
using TMPro; // 假设 TextPrefab 内部使用了 TextMeshPro
using UnityEngine;
using UnityEngine.UI;
namespace UI
{
@@ -11,6 +12,8 @@ namespace UI
{
public Transform contentPanel; // 日志内容容器
public TextPrefab textPrefab; // 文本预制体引用
public Toggle pauseToggle;
// 日志类型颜色映射
private static readonly Dictionary<LogType, Color> logColors = new Dictionary<LogType, Color>
@@ -41,6 +44,7 @@ namespace UI
public override void Show()
{
base.Show();
pauseToggle.isOn = needPause;
RefreshLogDisplay(); // 首次显示时刷新
}
@@ -133,5 +137,11 @@ namespace UI
{
UIInputControl.Instance.Hide(this);
}
public void SetPauseCallback()
{
needPause = pauseToggle.isOn;
Clock.Instance.Pause=needPause;
}
}
}