diff options
author | tpart <tpart120@proton.me> | 2024-07-02 00:21:55 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2024-07-02 00:22:02 +0200 |
commit | 359ddd27fc86241cebd99851118c11bad31fcf9f (patch) | |
tree | 23a54633066038c8989a826ea6cff6ac85eb795b | |
parent | a57c833665172c83eb449f739073ac36238377c9 (diff) | |
download | hurrycurry-359ddd27fc86241cebd99851118c11bad31fcf9f.tar hurrycurry-359ddd27fc86241cebd99851118c11bad31fcf9f.tar.bz2 hurrycurry-359ddd27fc86241cebd99851118c11bad31fcf9f.tar.zst |
Fix on-screen buttons crashing; Make buttons slightly transparent
-rw-r--r-- | client/player/onscreen_controls/controls.gd | 4 | ||||
-rw-r--r-- | client/player/onscreen_controls/controls.tscn | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/client/player/onscreen_controls/controls.gd b/client/player/onscreen_controls/controls.gd index 395f6665..be7fe67e 100644 --- a/client/player/onscreen_controls/controls.gd +++ b/client/player/onscreen_controls/controls.gd @@ -16,8 +16,8 @@ extends CanvasLayer @onready var buttons = $Buttons -@onready var boost = $Control/Boost -@onready var interact = $Control/Interact +@onready var boost = $Buttons/Boost +@onready var interact = $Buttons/Interact @onready var modulate_color = $MovementStick.pressed_color func _ready(): diff --git a/client/player/onscreen_controls/controls.tscn b/client/player/onscreen_controls/controls.tscn index 960a48b1..53acc922 100644 --- a/client/player/onscreen_controls/controls.tscn +++ b/client/player/onscreen_controls/controls.tscn @@ -9,8 +9,11 @@ script = ExtResource("1_rnoki") [node name="MovementStick" parent="." instance=ExtResource("1_4k4lh")] +modulate = Color(1, 1, 1, 0.752941) +joystick_mode = 1 [node name="Buttons" type="Control" parent="."] +modulate = Color(1, 1, 1, 0.752941) layout_mode = 3 anchors_preset = 3 anchor_left = 1.0 @@ -28,7 +31,7 @@ scale = Vector2(0.5, 0.5) texture_normal = ExtResource("2_i4ife") [node name="Interact" type="TouchScreenButton" parent="Buttons"] -position = Vector2(0, 150) +position = Vector2(150, 150) scale = Vector2(0.5, 0.5) texture_normal = ExtResource("3_37rne") |