Skip to content

Commit

Permalink
Fix "refuel button doesn't update when currency is traded after landing"
Browse files Browse the repository at this point in the history
Resolves #87.
  • Loading branch information
jspahrsummers committed Aug 27, 2024
1 parent 3f337f5 commit 96a9f91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions screens/landing/landing.gd
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ func _ready() -> void:

self._update_refuel_button()

self.player.bank_account.changed.connect(self._update_refuel_button)
self.player.ship.cargo_hold.changed.connect(self._update_refuel_button)

func _on_bar_button_pressed() -> void:
self.bar_dialog.dialog_text = self.spaceport_bar.get_description()
self.bar_dialog.show()
Expand Down

0 comments on commit 96a9f91

Please sign in to comment.