add label to display if the board is empty
This commit is contained in:
parent
7de83600f5
commit
56ab26d1d6
|
|
@ -27,6 +27,7 @@ var has_stage = false:
|
|||
@onready var postit_container = $HBoxContainer/ScrollContainer/VBoxContainer
|
||||
@onready var board_of_devs = $"board of devs"
|
||||
@onready var base_postit_panel = $HBoxContainer/ScrollContainer/VBoxContainer/Panel
|
||||
@onready var empty_text = $emptyText
|
||||
@onready var active_context = ui_context.DROPZONE # 0 = dropzone, 1 = post it list
|
||||
|
||||
var currently_selected_node: Area2D = null
|
||||
|
|
@ -66,6 +67,8 @@ func _process(delta):
|
|||
|
||||
# Will be used later to spawn Cards and Post-Its and remember them in the dictionary
|
||||
func populate_board(card_names: Array):
|
||||
empty_text.visible = false
|
||||
|
||||
var all_cards = Array()
|
||||
var all_postits = Array()
|
||||
|
||||
|
|
|
|||
|
|
@ -137,3 +137,9 @@ direction = Vector2(-100, 0)
|
|||
position = Vector2(12, 13)
|
||||
rotation = 1.5708
|
||||
shape = SubResource("RectangleShape2D_ivo5o")
|
||||
|
||||
[node name="emptyText" type="Label" parent="."]
|
||||
layout_mode = 2
|
||||
text = "Bitte nicht wundern!"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
|
|
|||
Loading…
Reference in New Issue