From c6fbc8cf9b9b46eca7eac9eca3f3f1cfe842cb01 Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 9 Mar 2022 18:10:03 +0100 Subject: [PATCH] The int properties for the world editor's ui now also use a HBoxContainer. --- game/addons/world_generator/ui/ResourcePropertyList.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/game/addons/world_generator/ui/ResourcePropertyList.gd b/game/addons/world_generator/ui/ResourcePropertyList.gd index 42f2cb31..c25c79ae 100644 --- a/game/addons/world_generator/ui/ResourcePropertyList.gd +++ b/game/addons/world_generator/ui/ResourcePropertyList.gd @@ -111,10 +111,11 @@ func add_slot_enum(getter : String, setter : String, slot_name : String, values return slot_idx func add_slot_int(getter : String, setter : String, slot_name : String, prange : Vector2 = Vector2(-1000, 1000)) -> int: - var bc : VBoxContainer = VBoxContainer.new() + var bc : HBoxContainer = HBoxContainer.new() var l : Label = Label.new() l.text = slot_name + l.size_flags_horizontal = SIZE_EXPAND_FILL bc.add_child(l) var sb : SpinBox = SpinBox.new()