mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-24 11:17:26 -04:00
thinner icons, buttons cursor fix
This commit is contained in:
parent
0b61c43576
commit
02aa9514ab
23 changed files with 110 additions and 317 deletions
23
app/scripts/ui/menu/round_button.gd
Normal file
23
app/scripts/ui/menu/round_button.gd
Normal file
|
@ -0,0 +1,23 @@
|
|||
extends Button
|
||||
class_name RoundButton
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
if disabled: disable()
|
||||
else: enable()
|
||||
|
||||
button_up.connect(on_button_up)
|
||||
|
||||
|
||||
func on_button_up() -> void:
|
||||
release_focus()
|
||||
|
||||
|
||||
func disable() -> void:
|
||||
disabled = true
|
||||
mouse_default_cursor_shape = Control.CURSOR_ARROW
|
||||
|
||||
|
||||
func enable() -> void:
|
||||
disabled = false
|
||||
mouse_default_cursor_shape = Control.CURSOR_POINTING_HAND
|
Loading…
Add table
Add a link
Reference in a new issue