From 953be13a66be323b14f12540b10c2e51320a45a6 Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 9 Mar 2022 18:06:21 +0100 Subject: [PATCH] Now the world generator addon's float properties use a hbox container, and their label is set to expand fill. --- 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 33deaaaf..42f2cb31 100644 --- a/game/addons/world_generator/ui/ResourcePropertyList.gd +++ b/game/addons/world_generator/ui/ResourcePropertyList.gd @@ -144,10 +144,11 @@ func add_slot_bool(getter : String, setter : String, slot_name : String) -> int: return slot_idx func add_slot_float(getter : String, setter : String, slot_name : String, step : float = 0.1, 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()