56 lines
2 KiB
Plaintext
56 lines
2 KiB
Plaintext
[gd_scene format=3 uid="uid://cwtlsloppn32j"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://beuv78r3u5kmw" path="res://assets/controls/toggle switch/cover/toggle_switch_cover_mount.svg" id="1_8v6he"]
|
|
[ext_resource type="Texture2D" uid="uid://bgh8f7d1ccxau" path="res://assets/controls/toggle switch/cover/toggle_switch_cover_up.svg" id="1_15guj"]
|
|
[ext_resource type="Texture2D" uid="uid://cgreenixf8e4l" path="res://assets/controls/toggle switch/toggle_switch_off.svg" id="1_juatt"]
|
|
[ext_resource type="Script" uid="uid://171lgou78rgg" path="res://base/controls/toggle switch/toggle_switch.gd" id="1_n4f2b"]
|
|
[ext_resource type="Texture2D" uid="uid://dvhjbvsdji6yx" path="res://assets/controls/toggle switch/cover/toggle_switch_cover_down.svg" id="2_8v6he"]
|
|
[ext_resource type="Texture2D" uid="uid://f1b2iwaedol6" path="res://assets/controls/toggle switch/toggle_switch_on.svg" id="2_p5fqu"]
|
|
|
|
[node name="Toggle Switch" type="Control" unique_id=1882478056]
|
|
custom_minimum_size = Vector2(150, 200)
|
|
layout_mode = 3
|
|
anchors_preset = 0
|
|
offset_right = 150.0
|
|
offset_bottom = 287.0
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 4
|
|
script = ExtResource("1_n4f2b")
|
|
|
|
[node name="Mount" type="TextureRect" parent="." unique_id=398456309]
|
|
visible = false
|
|
layout_mode = 0
|
|
offset_right = 150.0
|
|
offset_bottom = 250.0
|
|
texture = ExtResource("1_8v6he")
|
|
|
|
[node name="Cover" type="TextureButton" parent="." unique_id=531410332]
|
|
layout_mode = 0
|
|
offset_right = 150.0
|
|
offset_bottom = 250.0
|
|
focus_mode = 0
|
|
toggle_mode = true
|
|
action_mode = 0
|
|
button_mask = 2
|
|
texture_normal = ExtResource("1_15guj")
|
|
texture_pressed = ExtResource("2_8v6he")
|
|
|
|
[node name="Switch" type="TextureButton" parent="." unique_id=596357217]
|
|
layout_mode = 0
|
|
offset_top = 43.0
|
|
offset_right = 150.0
|
|
offset_bottom = 243.0
|
|
tooltip_text = "test
|
|
"
|
|
focus_mode = 0
|
|
mouse_filter = 1
|
|
mouse_default_cursor_shape = 2
|
|
toggle_mode = true
|
|
action_mode = 0
|
|
shortcut_feedback = false
|
|
texture_normal = ExtResource("1_juatt")
|
|
texture_pressed = ExtResource("2_p5fqu")
|
|
stretch_mode = 3
|
|
|
|
[connection signal="toggled" from="Cover" to="." method="_on_cover_flipped"]
|