More work on registering via FSM
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
class_name GamePanel extends PanelContainer
|
||||
|
||||
|
||||
const notice_template = preload("res://notice_panel.tscn")
|
||||
const quest_progress_bar_template = preload("res://quest_progress_bar.tscn")
|
||||
|
||||
signal time_changed(time : float)
|
||||
@@ -40,3 +40,10 @@ func connect_visitor_spawner(spawner : VisitorSpawner) -> void:
|
||||
|
||||
func update_visitor_count(current : int, total : int) -> void:
|
||||
%Passive/VisitorsLabel.text = "Visitors: %d/%d" % [current, total]
|
||||
|
||||
func notice(msg : String, time : float) -> void:
|
||||
var ntc : NoticePanel = notice_template.instantiate()
|
||||
$MarginContainer.add_child(ntc)
|
||||
ntc.message = msg
|
||||
ntc.duration = time
|
||||
|
||||
|
||||
Reference in New Issue
Block a user