add mini texture on icon button and pick random weather

This commit is contained in:
2026-05-31 22:28:35 +02:00
parent 4a321c88ae
commit 242f2ea344
5 changed files with 44 additions and 24 deletions

View File

@@ -11,19 +11,17 @@ class_name IconButton
if is_inside_tree() and has_node("%Texture"):
$%Texture.texture = image
@onready var mini_texture: TextureRect = $%MiniTexture
func _ready():
if image != null and has_node("%Texture"):
$%Texture.texture = image
func _on_mouse_entered() -> void:
if TweenFX.is_playing(self, TweenFX.Animations.BREATHE):
return
TweenFX.breathe(self, 1)
func _on_mouse_exited() -> void:
TweenFX.stop(self, TweenFX.Animations.BREATHE)
scale = Vector2(1, 1)