First commit 🎉
This commit is contained in:
commit
43ea213f9b
728 changed files with 37080 additions and 0 deletions
|
@ -0,0 +1,15 @@
|
|||
extends PopochiuSettingsBarButton
|
||||
|
||||
|
||||
#region Godot ######################################################################################
|
||||
func _ready() -> void:
|
||||
super()
|
||||
PopochiuUtils.e.game_saved.connect(show)
|
||||
|
||||
if PopochiuUtils.e.has_save():
|
||||
show()
|
||||
else:
|
||||
hide()
|
||||
|
||||
|
||||
#endregion
|
|
@ -0,0 +1 @@
|
|||
uid://p0vkry54t2lc
|
|
@ -0,0 +1,11 @@
|
|||
extends PopochiuSettingsBarButton
|
||||
|
||||
#region Godot ######################################################################################
|
||||
func _ready() -> void:
|
||||
super()
|
||||
|
||||
if OS.has_feature("web"):
|
||||
hide()
|
||||
|
||||
|
||||
#endregion
|
|
@ -0,0 +1 @@
|
|||
uid://7tvb4u0a2cgs
|
|
@ -0,0 +1,32 @@
|
|||
class_name PopochiuSettingsBarButton
|
||||
extends TextureButton
|
||||
|
||||
@export var description := "" : get = get_description
|
||||
@export var script_name := ""
|
||||
|
||||
|
||||
#region Godot ######################################################################################
|
||||
func _ready() -> void:
|
||||
mouse_entered.connect(_on_mouse_entered)
|
||||
mouse_exited.connect(_on_mouse_exited)
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region SetGet #####################################################################################
|
||||
func get_description() -> String:
|
||||
return description
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region Private ####################################################################################
|
||||
func _on_mouse_entered() -> void:
|
||||
PopochiuUtils.g.show_hover_text(self.description)
|
||||
|
||||
|
||||
func _on_mouse_exited() -> void:
|
||||
PopochiuUtils.g.show_hover_text()
|
||||
|
||||
|
||||
#endregion
|
|
@ -0,0 +1 @@
|
|||
uid://d2d5leid2mkh4
|
Loading…
Add table
Add a link
Reference in a new issue