File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11extends PanelContainer
22
3- # This overengineered menu mostly has logic around not hiding the text as you move your
4- # mouse between the buttons. The text stays unless the mouse moves too far away from
5- # the specific button that showed the current list of pros/cons.
3+ # This overengineered menu mostly has logic around not hiding the text as you
4+ # move your mouse between the buttons. The text stays unless the mouse moves too far away
5+ # from the specific button that showed the current list of pros/cons.
66
77enum Link {NONE , GITHUB , KO_FI , PATREON }
88var current_link := Link .NONE
@@ -77,6 +77,12 @@ func _on_link_focused(button: Button, link: Link) -> void:
7777 set_link (link )
7878
7979func set_link (new_link : Link ) -> void :
80+ if new_link == Link .NONE :
81+ for button in button_links :
82+ if button .has_focus (true ):
83+ new_link = button_links [button ]
84+ break
85+
8086 current_link = new_link
8187 if new_link == Link .NONE :
8288 clarifications .clear ()
You can’t perform that action at this time.
0 commit comments