Add prototype gameplay loop with character/battlefield assets and server game APIs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
udx
2026-10-20 18:50:00 +08:00
co-authored by Cursor
parent 79369e4473
commit 6c64210331
833 changed files with 998079 additions and 1042 deletions
+8
View File
@@ -56,8 +56,16 @@ Canvas、CanvasScaler、GraphicRaycaster、CanvasGroup、Image、TextMeshProUGUI
### 按钮 / 列表模板
- 按钮:`Image`(Sliced)+ `Button`(SpriteSwap:normal/pressed/disabled;无 hover 切图可用 ColorTint)。
- `Button.transition: ColorTint` 支持 `normalColor` / `highlightedColor` / `pressedColor` / `selectedColor` / `disabledColor` / `fadeDuration`;不填时沿用 Unity 默认。可选 `targetGraphic` 为 Graphic 节点名,可将点击区域与实际变色的子图标分开(Mint 关闭按钮)。
- 列表:`ScrollRect` → Viewport(RectMask2D)→ Content(VerticalLayoutGroup + ContentSizeFitter)→ Item_Template。
### 标准控件九宫格(必须)
- 面板、按钮及所有状态、输入框、列表项、页签、进度条、滑条/滚动条、Toast、开关底图必须使用 `Image.imageType: Sliced`,Sprite 配置有效的非零 `Border` 和 `Full Rect`。
- `UiSpriteNineSliceRules.cs` 自动维护 Common 的标准控件导入设置;已有资源执行 `Tools/UI/Apply Standard Control Nine-Slice` 后重建对应 JSON Prefab。边界取自 `UI_Normal_Set.md` 并按实际切图尺寸换算,包含 2px 透明留边;Unity 的 Border Vector4 顺序为 L,B,R,T。
- 转换器检查标准控件的 Image 类型、Sprite 及 Border(包含 Button 状态图);省略 Image 类型时默认 Sliced。
- 新增标准控件须扩展切图清单与导入规则。图标、插画、带完整符号的关闭/返回图等整图保持 Simple、等比显示。
## Part C - 接管与排错
1. 确认自动转换开启,或执行 `Convert Changed JSON Prefabs Now`。