diff --git a/DungeonShooting_Godot/prefab/ui/Main.tscn b/DungeonShooting_Godot/prefab/ui/Main.tscn index 9d9742f..adb11ae 100644 --- a/DungeonShooting_Godot/prefab/ui/Main.tscn +++ b/DungeonShooting_Godot/prefab/ui/Main.tscn @@ -45,17 +45,13 @@ [node name="Start" type="Button" parent="VBoxContainer/ButtonList"] custom_minimum_size = Vector2(0, 50) layout_mode = 2 -focus_neighbor_top = NodePath("../Exit") -focus_neighbor_bottom = NodePath("../Setting") theme = ExtResource("2_bbd6i") -text = "开始游戏 -" +theme_override_font_sizes/font_size = 32 +text = "开始游戏" [node name="Tools" type="Button" parent="VBoxContainer/ButtonList"] custom_minimum_size = Vector2(0, 50) layout_mode = 2 -focus_neighbor_top = NodePath("../Start") -focus_neighbor_bottom = NodePath("../Exit") theme = ExtResource("2_bbd6i") theme_override_font_sizes/font_size = 32 text = "开发者工具" @@ -63,8 +59,6 @@ [node name="Setting" type="Button" parent="VBoxContainer/ButtonList"] custom_minimum_size = Vector2(0, 50) layout_mode = 2 -focus_neighbor_top = NodePath("../Start") -focus_neighbor_bottom = NodePath("../Exit") theme = ExtResource("2_bbd6i") theme_override_font_sizes/font_size = 32 text = "设置" @@ -72,8 +66,6 @@ [node name="Exit" type="Button" parent="VBoxContainer/ButtonList"] custom_minimum_size = Vector2(0, 50) layout_mode = 2 -focus_neighbor_top = NodePath("../Setting") -focus_neighbor_bottom = NodePath("../Start") theme = ExtResource("2_bbd6i") text = "退出" diff --git a/DungeonShooting_Godot/src/game/ui/mapEditorMapMark/EditorWaveCell.cs b/DungeonShooting_Godot/src/game/ui/mapEditorMapMark/EditorWaveCell.cs index 85232f3..f03c09a 100644 --- a/DungeonShooting_Godot/src/game/ui/mapEditorMapMark/EditorWaveCell.cs +++ b/DungeonShooting_Godot/src/game/ui/mapEditorMapMark/EditorWaveCell.cs @@ -20,6 +20,8 @@ MarkGrid.SetColumns(1); MarkGrid.SetHorizontalExpand(true); MarkGrid.SetCellOffset(new Vector2I(0, 5)); + + CellNode.Instance.CustomMinimumSize = Vector2.Zero; } public override void OnSetData(List data)