New art assets, work on implementing more adventurer behavior and making them work better together, and steps towards completing the first quest loop.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
class_name GamePanel extends PanelContainer
|
||||
class_name GamePanel extends MarginContainer
|
||||
|
||||
const notice_template = preload("res://notice_panel.tscn")
|
||||
const quest_progress_bar_template = preload("res://quest_progress_bar.tscn")
|
||||
@@ -24,8 +24,8 @@ func add_quest_progress_bar(quest : Quest) -> void:
|
||||
|
||||
|
||||
func switch_panel(active : bool) -> void:
|
||||
%Active.visible = active
|
||||
%Passive.visible = !active
|
||||
%OpenList.visible = active
|
||||
%WorkingList.visible = !active
|
||||
|
||||
|
||||
func _on_end_shift_pressed() -> void:
|
||||
@@ -39,11 +39,11 @@ func connect_visitor_spawner(spawner : VisitorSpawner) -> void:
|
||||
update_visitor_count(spawner.total_visitors - spawner.visitors_remaining, spawner.total_visitors)
|
||||
|
||||
func update_visitor_count(current : int, total : int) -> void:
|
||||
%Passive/VisitorsLabel.text = "Visitors: %d/%d" % [current, total]
|
||||
%OpenList/VisitorsLabel.text = "Visitors: %d/%d" % [current, total]
|
||||
|
||||
func notice(msg : String, time : float) -> void:
|
||||
var ntc : NoticePanel = notice_template.instantiate()
|
||||
$MarginContainer.add_child(ntc)
|
||||
%Notices.add_child(ntc)
|
||||
ntc.message = msg
|
||||
ntc.duration = time
|
||||
|
||||
|
||||
Reference in New Issue
Block a user