fix(editor): move build stamp to bottom, expand palette list, add hover feedback and instructions
checkpoint / checkpoint (push) Successful in 6m5s
checkpoint / checkpoint (push) Successful in 6m5s
This commit is contained in:
@@ -14,15 +14,26 @@ var _ids: Array[String] = []
|
||||
|
||||
func _init() -> void:
|
||||
name = "PalettePanel"
|
||||
size_flags_vertical = Control.SIZE_EXPAND_FILL
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
var header := Label.new()
|
||||
header.text = "Palette"
|
||||
header.add_theme_font_size_override("font_size", 15)
|
||||
header.add_theme_color_override("font_color", Color(1, 0.95, 0.4))
|
||||
add_child(header)
|
||||
|
||||
var hint := Label.new()
|
||||
hint.text = "Click an item to place on the grid:"
|
||||
hint.autowrap_mode = TextServer.AUTOWRAP_WORD_SMART
|
||||
hint.add_theme_font_size_override("font_size", 11)
|
||||
hint.add_theme_color_override("font_color", Color(0.7, 0.7, 0.7))
|
||||
add_child(hint)
|
||||
|
||||
_list = ItemList.new()
|
||||
_list.size_flags_vertical = Control.SIZE_EXPAND_FILL
|
||||
_list.custom_minimum_size = Vector2(0, 180)
|
||||
_list.item_selected.connect(_on_item_selected)
|
||||
add_child(_list)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user