From ae79a95914bd3a8dda9e32cdfbbf502c69a126c5 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sat, 23 Mar 2024 17:01:12 +0100 Subject: [PATCH] Update to d0d71e0e8517ba13d380f257db551328a36e40a0 --- src/SuiText.gd | 10 ++++++++++ themes/Button.tres | 16 ++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/src/SuiText.gd b/src/SuiText.gd index 049a91a..1748ac4 100644 --- a/src/SuiText.gd +++ b/src/SuiText.gd @@ -11,10 +11,20 @@ extends Control @export var editor_process: bool = true @export var runtime_process: bool = true +signal meta_clicked +signal meta_hover_started +signal meta_hover_ended + func _ready() -> void: # Free unused children logger.diag("<" + name + "> Freeing ToolScript") get_child(0).queue_free() + + # Add signals + logger.diag("<" + name + "> Adding signals") + $Text.connect("meta_clicked", func(meta: Variant) -> void: emit_signal("meta_clicked", meta)) + $Text.connect("meta_hover_started", func(meta: Variant) -> void: emit_signal("meta_hover_started", meta)) + $Text.connect("meta_hover_ended", func(meta: Variant) -> void: emit_signal("meta_hover_ended", meta)) func _process(_delta: float) -> void: if !runtime_process: return diff --git a/themes/Button.tres b/themes/Button.tres index 750fe4f..5565893 100644 --- a/themes/Button.tres +++ b/themes/Button.tres @@ -2,17 +2,33 @@ [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_wtmj3"] bg_color = Color(1, 0.368627, 0.392157, 1) +corner_radius_top_left = 16 +corner_radius_top_right = 16 +corner_radius_bottom_right = 16 +corner_radius_bottom_left = 16 [sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_3w3dx"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_u0wf7"] bg_color = Color(0.992157, 0.0470588, 0.243137, 1) +corner_radius_top_left = 16 +corner_radius_top_right = 16 +corner_radius_bottom_right = 16 +corner_radius_bottom_left = 16 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_d8ye5"] bg_color = Color(0.839216, 0.0196078, 0.196078, 1) +corner_radius_top_left = 16 +corner_radius_top_right = 16 +corner_radius_bottom_right = 16 +corner_radius_bottom_left = 16 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ng1ub"] bg_color = Color(0.658824, 0.00784314, 0.145098, 1) +corner_radius_top_left = 16 +corner_radius_top_right = 16 +corner_radius_bottom_right = 16 +corner_radius_bottom_left = 16 [resource] Button/styles/disabled = SubResource("StyleBoxFlat_wtmj3")