Change text to icon

This commit is contained in:
kobewi 2022-07-19 11:58:24 +02:00
parent 32c8b35608
commit 6cc3548fdd
2 changed files with 6 additions and 11 deletions

View File

@ -12,6 +12,7 @@ onready var item_container = $VBoxContainer/ScrollContainer/Items
onready var counter = $VBoxContainer/Head/Counter
onready var delete_button = $VBoxContainer/Actions/DeleteColumn
onready var timer = $Timer
var undo_redo: UndoRedo
var minimized = false setget set_minimized
var main: Control
@ -23,13 +24,8 @@ var item_margin = 20
func set_minimized(val):
minimized = val
var new_text = "V"
if !val:
new_text = "^"
minimize_button.text = new_text
minimize_button.icon = get_icon("ArrowDown" if minimized else "ArrowUp", "EditorIcons")
top_separator.visible = !val
scroll_container.visible = !val

View File

@ -55,25 +55,24 @@ mouse_default_cursor_shape = 13
[node name="Name" type="LineEdit" parent="VBoxContainer/Head"]
margin_left = 24.0
margin_right = 337.0
margin_right = 344.0
margin_bottom = 24.0
size_flags_horizontal = 3
text = "Column name"
[node name="Counter" type="Label" parent="VBoxContainer/Head"]
margin_left = 341.0
margin_left = 348.0
margin_top = 5.0
margin_right = 369.0
margin_right = 376.0
margin_bottom = 19.0
rect_min_size = Vector2( 28, 0 )
text = "0"
align = 1
[node name="Minimize" type="Button" parent="VBoxContainer/Head"]
margin_left = 373.0
margin_left = 380.0
margin_right = 392.0
margin_bottom = 24.0
text = "^"
[node name="TopSeparator" type="HSeparator" parent="VBoxContainer"]
margin_top = 28.0