button modulate on pause + x & c (:

This commit is contained in:
Harmony Honey Monroe 2024-09-18 01:16:54 -04:00
parent ba42634f27
commit 8dbc55d662
2 changed files with 5 additions and 5 deletions

View file

@ -159,6 +159,9 @@ visibility_mode = 1
[node name="Circle" type="Sprite" parent="Control/HBoxTop/Pause/Control"]
modulate = Color( 1, 1, 1, 0.156863 )
texture = ExtResource( 2 )
script = ExtResource( 4 )
button_path = NodePath("../Button")
idle_color = Color( 1, 1, 1, 0.156863 )
[node name="ColorRect" type="ColorRect" parent="Control/HBoxTop/Pause/Control"]
margin_left = -5.0
@ -208,7 +211,7 @@ position = Vector2( 2, 0 )
polygon = PoolVector2Array( 2.12132, 2.12132, 3, 0, 2.12132, -2.12132, 12.7279, -12.7279, 16.6298, -6.8883, 18, 0, 16.6298, 6.8883, 12.7279, 12.7279 )
script = ExtResource( 4 )
button_path = NodePath("..")
idle_color = Color( 1, 1, 1, 0.5 )
idle_color = Color( 1, 1, 1, 0.501961 )
[node name="1" type="TouchScreenButton" parent="Control/Joystick/Buttons"]
shape = SubResource( 8 )
@ -226,7 +229,6 @@ position = Vector2( -8.74228e-08, 2 )
polygon = PoolVector2Array( -2.12132, 2.12132, -1.31134e-07, 3, 2.12132, 2.12132, 12.7279, 12.7279, 6.8883, 16.6298, -7.86805e-07, 18, -6.8883, 16.6298, -12.7279, 12.7279 )
script = ExtResource( 4 )
button_path = NodePath("..")
idle_color = Color( 1, 1, 1, 0.5 )
[node name="2" type="TouchScreenButton" parent="Control/Joystick/Buttons"]
shape = SubResource( 9 )
@ -244,7 +246,6 @@ position = Vector2( -2, -1.74846e-07 )
polygon = PoolVector2Array( -2.12132, -2.12132, -3, -2.62268e-07, -2.12132, 2.12132, -12.7279, 12.7279, -16.6298, 6.8883, -18, -1.57361e-06, -16.6298, -6.8883, -12.7279, -12.7279 )
script = ExtResource( 4 )
button_path = NodePath("..")
idle_color = Color( 1, 1, 1, 0.5 )
[node name="3" type="TouchScreenButton" parent="Control/Joystick/Buttons"]
shape = SubResource( 10 )
@ -262,4 +263,3 @@ position = Vector2( 2.38498e-08, -2 )
polygon = PoolVector2Array( 2.12132, -2.12132, 3.57746e-08, -3, -2.12132, -2.12132, -12.7279, -12.7279, -6.8883, -16.6298, 2.14648e-07, -18, 6.8883, -16.6298, 12.7279, -12.7279 )
script = ExtResource( 4 )
button_path = NodePath("..")
idle_color = Color( 1, 1, 1, 0.5 )

View file

@ -7,7 +7,7 @@ export var color_path : NodePath = "."
onready var color_node : CanvasItem = get_node_or_null(color_path)
export var press_color := Color(1,0,1, 1.0)
export var idle_color := Color(1,1,1, 0.66)
export var idle_color := Color(1,1,1, 0.5)
func _ready():
if is_instance_valid(button):