checheche/Robo-Bus-A31-HMI/common/gui/switch.tscn

96 lines
2.9 KiB
Plaintext
Raw Normal View History

2024-12-06 21:22:11 +08:00
[gd_scene load_steps=9 format=3 uid="uid://dvi1u04jfmirq"]
[ext_resource type="Script" path="res://common/gui/switch.gd" id="1"]
[ext_resource type="Shader" path="res://common/shader/round.gdshader" id="2"]
[ext_resource type="StyleBox" path="res://common/gui/stylebox/switch_close.stylebox" id="3"]
[ext_resource type="Script" path="res://common/base/base_control.gd" id="4"]
[sub_resource type="ShaderMaterial" id="1"]
shader = ExtResource("2")
shader_parameter/size = Vector2(77, 40)
shader_parameter/round_all = 20.0
shader_parameter/left_top = 0.0
shader_parameter/right_top = 0.0
shader_parameter/left_bottom = 0.0
shader_parameter/right_botom = 0.0
shader_parameter/border_color = null
shader_parameter/Background_color = null
shader_parameter/Background_color_a = 0.0
shader_parameter/border_width = 0.0
shader_parameter/isColor = true
shader_parameter/isBackground_color = false
[sub_resource type="StyleBoxFlat" id="3"]
bg_color = Color(0.964706, 0.964706, 0.964706, 1)
corner_radius_top_left = 10
corner_radius_top_right = 10
corner_radius_bottom_right = 10
corner_radius_bottom_left = 10
[sub_resource type="StyleBoxFlat" id="4"]
draw_center = false
border_width_left = 2
border_width_top = 2
border_width_right = 2
border_width_bottom = 2
border_color = Color(0.6, 0.6, 0.6, 1)
corner_radius_top_left = 5
corner_radius_top_right = 5
corner_radius_bottom_right = 5
corner_radius_bottom_left = 5
[sub_resource type="ShaderMaterial" id="2"]
shader = ExtResource("2")
shader_parameter/size = Vector2(34, 34)
shader_parameter/round_all = 17.0
shader_parameter/left_top = 0.0
shader_parameter/right_top = 0.0
shader_parameter/left_bottom = 0.0
shader_parameter/right_botom = 0.0
shader_parameter/border_color = null
shader_parameter/Background_color = null
shader_parameter/Background_color_a = 0.0
shader_parameter/border_width = 0.0
shader_parameter/isColor = true
shader_parameter/isBackground_color = false
[node name="check_button" type="MarginContainer"]
material = SubResource("1")
custom_minimum_size = Vector2(77, 44)
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_right = -1843.0
offset_bottom = -1036.0
size_flags_horizontal = 2
size_flags_vertical = 2
mouse_filter = 2
theme_override_constants/margin_left = 15
theme_override_constants/margin_right = 10
script = ExtResource("1")
styleBox = ExtResource("3")
[node name="MarginContainer" type="MarginContainer" parent="."]
custom_minimum_size = Vector2(2, 10)
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
script = ExtResource("4")
styleBox = SubResource("3")
[node name="MarginContainer2" type="MarginContainer" parent="."]
custom_minimum_size = Vector2(10, 10)
layout_mode = 2
size_flags_horizontal = 8
size_flags_vertical = 4
script = ExtResource("4")
styleBox = SubResource("4")
[node name="yuan" type="ColorRect" parent="."]
material = SubResource("2")
custom_minimum_size = Vector2(36, 36)
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
mouse_filter = 2