mirror of
https://github.com/Relintai/Godot-Simple-TODO.git
synced 2024-12-20 10:16:52 +01:00
Change text to icon
This commit is contained in:
parent
32c8b35608
commit
6cc3548fdd
@ -12,6 +12,7 @@ onready var item_container = $VBoxContainer/ScrollContainer/Items
|
|||||||
onready var counter = $VBoxContainer/Head/Counter
|
onready var counter = $VBoxContainer/Head/Counter
|
||||||
onready var delete_button = $VBoxContainer/Actions/DeleteColumn
|
onready var delete_button = $VBoxContainer/Actions/DeleteColumn
|
||||||
onready var timer = $Timer
|
onready var timer = $Timer
|
||||||
|
|
||||||
var undo_redo: UndoRedo
|
var undo_redo: UndoRedo
|
||||||
var minimized = false setget set_minimized
|
var minimized = false setget set_minimized
|
||||||
var main: Control
|
var main: Control
|
||||||
@ -23,13 +24,8 @@ var item_margin = 20
|
|||||||
|
|
||||||
func set_minimized(val):
|
func set_minimized(val):
|
||||||
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
|
top_separator.visible = !val
|
||||||
scroll_container.visible = !val
|
scroll_container.visible = !val
|
||||||
|
@ -55,25 +55,24 @@ mouse_default_cursor_shape = 13
|
|||||||
|
|
||||||
[node name="Name" type="LineEdit" parent="VBoxContainer/Head"]
|
[node name="Name" type="LineEdit" parent="VBoxContainer/Head"]
|
||||||
margin_left = 24.0
|
margin_left = 24.0
|
||||||
margin_right = 337.0
|
margin_right = 344.0
|
||||||
margin_bottom = 24.0
|
margin_bottom = 24.0
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
text = "Column name"
|
text = "Column name"
|
||||||
|
|
||||||
[node name="Counter" type="Label" parent="VBoxContainer/Head"]
|
[node name="Counter" type="Label" parent="VBoxContainer/Head"]
|
||||||
margin_left = 341.0
|
margin_left = 348.0
|
||||||
margin_top = 5.0
|
margin_top = 5.0
|
||||||
margin_right = 369.0
|
margin_right = 376.0
|
||||||
margin_bottom = 19.0
|
margin_bottom = 19.0
|
||||||
rect_min_size = Vector2( 28, 0 )
|
rect_min_size = Vector2( 28, 0 )
|
||||||
text = "0"
|
text = "0"
|
||||||
align = 1
|
align = 1
|
||||||
|
|
||||||
[node name="Minimize" type="Button" parent="VBoxContainer/Head"]
|
[node name="Minimize" type="Button" parent="VBoxContainer/Head"]
|
||||||
margin_left = 373.0
|
margin_left = 380.0
|
||||||
margin_right = 392.0
|
margin_right = 392.0
|
||||||
margin_bottom = 24.0
|
margin_bottom = 24.0
|
||||||
text = "^"
|
|
||||||
|
|
||||||
[node name="TopSeparator" type="HSeparator" parent="VBoxContainer"]
|
[node name="TopSeparator" type="HSeparator" parent="VBoxContainer"]
|
||||||
margin_top = 28.0
|
margin_top = 28.0
|
||||||
|
Loading…
Reference in New Issue
Block a user