docs: document Buttons reposition step in Task 1 (layout follow-on)
This commit is contained in:
@@ -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 占 380–660(高 280),原 `Buttons` HBoxContainer 在 540–600,会被覆盖。将第 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
|
||||
```
|
||||
|
||||
(视口高 720,Buttons 落 670–710,留 10px 边距与 ScrollContainer 间隔。)
|
||||
|
||||
- [ ] **Step 5: 提交**
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user