docs: document Buttons reposition step in Task 1 (layout follow-on)

This commit is contained in:
xiaji
2026-06-02 19:46:30 +08:00
parent b5d403e850
commit 885befab81

View File

@@ -98,6 +98,32 @@ vertical_scroll_mode = 2
打开 Godot 编辑器 → 打开 `project.godot` → 打开 `src/ui/scenes/training_room.tscn`
预期场景正常加载错误列表无报错F5 运行后 27 张手牌自动分两行(会因 `extends HBoxContainer` 警告未消除而出现一行排开 —— 这是预期的,因为脚本尚未修改;本次任务到此完成,下一任务修复脚本)。
- [ ] **Step 4b: 同步调整 `Buttons` 位置避免与新 ScrollContainer 重叠**
新 ScrollContainer 占 380660高 280`Buttons` HBoxContainer 在 540600会被覆盖。将第 53-58 行:
```ini
[node name="Buttons" type="HBoxContainer" parent="."]
layout_mode = 0
offset_top = 540.0
offset_right = 1280.0
offset_bottom = 600.0
alignment = 1
```
改为:
```ini
[node name="Buttons" type="HBoxContainer" parent="."]
layout_mode = 0
offset_top = 670.0
offset_right = 1280.0
offset_bottom = 710.0
alignment = 1
```
(视口高 720Buttons 落 670710留 10px 边距与 ScrollContainer 间隔。)
- [ ] **Step 5: 提交**
```bash