Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Kvel2D committed Nov 21, 2024
1 parent 9349f85 commit 3ea787c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/ui/hud/mission_track_indicator.gd
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,19 @@ var _mission_id: int
@export var _completed_label: Label


#########################
### Built-in ###
#########################

func _ready():
var description: String = MissionProperties.get_description(_mission_id)
_description_label.text = description


#########################
### Public ###
#########################

func set_state(state: MissionTrackIndicator.State):
_in_progress_label.visible = state == MissionTrackIndicator.State.IN_PROGRESS
_failed_label.visible = state == MissionTrackIndicator.State.FAILED
Expand Down
8 changes: 8 additions & 0 deletions src/ui/hud/mission_tracker_container.gd
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ class_name MissionTrackerContainer extends VBoxContainer
var _indicator_map: Dictionary = {}


#########################
### Built-in ###
#########################

func _ready() -> void:
var mission_id_list: Array = MissionProperties.get_id_list()

Expand All @@ -29,6 +33,10 @@ func _ready() -> void:
break


#########################
### Public ###
#########################

func set_mission_track_state(mission_id: int, state: MissionTrackIndicator.State):
if !_indicator_map.has(mission_id):
return
Expand Down

0 comments on commit 3ea787c

Please sign in to comment.