Minor improvements
This commit is contained in:
@@ -152,7 +152,11 @@ func _refresh_generator_ui() -> void:
|
||||
_buy_max_button.disabled = not can_interact
|
||||
|
||||
_owned_value.text = str(_generator.owned)
|
||||
_next_cost_value.text = _generator.get_next_cost().to_string_suffix(2) if can_interact else "-"
|
||||
if can_interact:
|
||||
var purchase_currency_name: String = GameState.get_currency_name(_generator.get_purchase_currency_id())
|
||||
_next_cost_value.text = "%s %s" % [_generator.get_next_cost().to_string_suffix(2), purchase_currency_name]
|
||||
else:
|
||||
_next_cost_value.text = "-"
|
||||
|
||||
var production_per_second: float = 0.0
|
||||
if _generator.data != null and can_interact:
|
||||
|
||||
Reference in New Issue
Block a user