Highlight selected ship lab cards
This commit is contained in:
parent
d20a62a26f
commit
8f7b58f2a8
3 changed files with 27 additions and 4 deletions
|
|
@ -905,8 +905,8 @@ func _refresh_lab() -> void:
|
|||
var this_vessel: String = [GameState.VESSEL_INTERCEPTOR, GameState.VESSEL_SHIELD,
|
||||
GameState.VESSEL_TRANSPORTER][i]
|
||||
lab_vessel_buttons[i].enabled = true
|
||||
lab_vessel_buttons[i].glow_color = Color(0.45, 0.9, 0.55) if this_vessel == lab_vessel \
|
||||
else _vessel_colour(this_vessel)
|
||||
lab_vessel_buttons[i].glow_color = _vessel_colour(this_vessel)
|
||||
lab_vessel_buttons[i].highlighted = this_vessel == lab_vessel
|
||||
lab_vessel_buttons[i].queue_redraw()
|
||||
lab_vessel_label.text = "%s research" % GameState.VESSEL_NAMES.get(lab_vessel, lab_vessel)
|
||||
|
||||
|
|
@ -925,7 +925,8 @@ func _refresh_lab() -> void:
|
|||
GameState.upgrade_level(option.id), int(GameState.upgrade_def(option.id).max_level)]
|
||||
lab_upgrade_labels[i].text = "%s%s\n%s" % [option.name, level_note, price_text]
|
||||
lab_upgrade_buttons[i].icon = _upgrade_icon(option)
|
||||
lab_upgrade_buttons[i].glow_color = Color(1.0, 0.85, 0.4) if i == lab_choice else _vessel_colour(lab_vessel)
|
||||
lab_upgrade_buttons[i].glow_color = _vessel_colour(lab_vessel)
|
||||
lab_upgrade_buttons[i].highlighted = i == lab_choice
|
||||
lab_upgrade_buttons[i].enabled = true
|
||||
lab_upgrade_buttons[i].queue_redraw()
|
||||
if options.is_empty():
|
||||
|
|
|
|||
Loading…
Reference in a new issue