The int properties for the world editor's ui now also use a HBoxContainer.

This commit is contained in:
Relintai 2022-03-09 18:10:03 +01:00
parent d7e133e446
commit c6fbc8cf9b
1 changed files with 2 additions and 1 deletions

View File

@ -111,10 +111,11 @@ func add_slot_enum(getter : String, setter : String, slot_name : String, values
return slot_idx return slot_idx
func add_slot_int(getter : String, setter : String, slot_name : String, prange : Vector2 = Vector2(-1000, 1000)) -> int: 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() var l : Label = Label.new()
l.text = slot_name l.text = slot_name
l.size_flags_horizontal = SIZE_EXPAND_FILL
bc.add_child(l) bc.add_child(l)
var sb : SpinBox = SpinBox.new() var sb : SpinBox = SpinBox.new()