Update to d0d71e0e8517ba13d380f257db551328a36e40a0
This commit is contained in:
parent
26171a1f79
commit
ae79a95914
2 changed files with 26 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue