checheche/Robo-Bus-A31-HMI/Modules/main_3d_vehicle.tscn
2024-12-13 14:23:21 +08:00

223 lines
8.5 KiB
Plaintext

[gd_scene load_steps=12 format=3 uid="uid://tqrf0pcv1bay"]
[ext_resource type="Script" path="res://pad_hmi_ui/Main3DVehicle.gd" id="1_nyon1"]
[ext_resource type="Texture2D" uid="uid://bhsjkyho6jr42" path="res://pad_hmi_ui/home/l2_1.png" id="2_pl52w"]
[ext_resource type="Shader" path="res://common/shader/round.gdshader" id="3_pmm6i"]
[ext_resource type="Texture2D" uid="uid://bigplutpkgp7o" path="res://pad_hmi_ui/home/Preview.png" id="4_skpou"]
[ext_resource type="Script" path="res://common/base/base_control.gd" id="5_wa5ip"]
[ext_resource type="Texture2D" uid="uid://dgwf4d5wkwqgb" path="res://pad_hmi_ui/home/signal_icon_green.png" id="6_cdhlp"]
[ext_resource type="Texture2D" uid="uid://b4ddgruml02uj" path="res://pad_hmi_ui/home/information_bg.png" id="7_7in7q"]
[ext_resource type="Texture2D" uid="uid://c1ncf47u6ssrd" path="res://pad_hmi_ui/home/arrow_icon_right.png" id="8_3ei63"]
[ext_resource type="Texture2D" uid="uid://dsoc1dfktnbff" path="res://pad_hmi_ui/home/wheel_icon.png" id="9_m3c80"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_8c5rn"]
shader = ExtResource("3_pmm6i")
shader_parameter/size = Vector2(10, 8)
shader_parameter/round_all = 0.25
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 = Color(1, 1, 1, 1)
shader_parameter/Background_color = null
shader_parameter/Background_color_a = 0.0
shader_parameter/border_width = 0.0
shader_parameter/isColor = false
shader_parameter/isBackground_color = false
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_j2i4v"]
content_margin_left = 34.0
content_margin_top = 23.0
[node name="Main3DVehicle" type="MarginContainer"]
visible = false
custom_minimum_size = Vector2(2320, 1520)
script = ExtResource("1_nyon1")
[node name="Main3DVehicleBackground" type="NinePatchRect" parent="."]
unique_name_in_owner = true
layout_mode = 2
texture = ExtResource("2_pl52w")
patch_margin_left = 64
patch_margin_top = 64
patch_margin_right = 64
patch_margin_bottom = 64
[node name="MarginContainer" type="MarginContainer" parent="."]
layout_mode = 2
theme_override_constants/margin_left = 53
theme_override_constants/margin_top = 51
theme_override_constants/margin_right = 40
theme_override_constants/margin_bottom = 51
[node name="Main3DVehicleTexture" type="TextureRect" parent="MarginContainer"]
unique_name_in_owner = true
material = SubResource("ShaderMaterial_8c5rn")
layout_mode = 2
texture = ExtResource("4_skpou")
expand_mode = 1
script = ExtResource("5_wa5ip")
_pivot_offset = "Null"
StatusTime = 0.3
scaleMin = Vector2(0.49, 0.57)
[node name="PretendMain3DVehicleInformation" type="MarginContainer" parent="MarginContainer/Main3DVehicleTexture"]
unique_name_in_owner = true
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
[node name="Label" type="Label" parent="MarginContainer/Main3DVehicleTexture/PretendMain3DVehicleInformation"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 0
theme_override_font_sizes/font_size = 22
theme_override_styles/normal = SubResource("StyleBoxEmpty_j2i4v")
text = "FPS:51"
[node name="TrafficLight" type="MarginContainer" parent="MarginContainer/Main3DVehicleTexture/PretendMain3DVehicleInformation"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 0
theme_override_constants/margin_top = 13
[node name="TextureRect2" type="TextureRect" parent="MarginContainer/Main3DVehicleTexture/PretendMain3DVehicleInformation/TrafficLight"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 0
texture = ExtResource("6_cdhlp")
[node name="DrivingInformation" type="MarginContainer" parent="MarginContainer/Main3DVehicleTexture/PretendMain3DVehicleInformation"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 8
theme_override_constants/margin_bottom = 53
script = ExtResource("5_wa5ip")
_pivot_offset = null
is_Scale = null
is_Rotation = null
is_OnClickScaleAwt = null
StatusTime = null
[node name="TextureRect" type="TextureRect" parent="MarginContainer/Main3DVehicleTexture/PretendMain3DVehicleInformation/DrivingInformation"]
layout_mode = 2
size_flags_vertical = 4
texture = ExtResource("7_7in7q")
[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/Main3DVehicleTexture/PretendMain3DVehicleInformation/DrivingInformation"]
layout_mode = 2
theme_override_constants/margin_left = 17
theme_override_constants/margin_right = 27
[node name="Steering" type="TextureRect" parent="MarginContainer/Main3DVehicleTexture/PretendMain3DVehicleInformation/DrivingInformation/MarginContainer"]
layout_mode = 2
size_flags_horizontal = 0
texture = ExtResource("8_3ei63")
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/Main3DVehicleTexture/PretendMain3DVehicleInformation/DrivingInformation/MarginContainer"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
theme_override_constants/separation = -3
[node name="Speed" type="Label" parent="MarginContainer/Main3DVehicleTexture/PretendMain3DVehicleInformation/DrivingInformation/MarginContainer/VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 4
theme_override_font_sizes/font_size = 49
text = "20.0"
[node name="SpeedUnit" type="Label" parent="MarginContainer/Main3DVehicleTexture/PretendMain3DVehicleInformation/DrivingInformation/MarginContainer/VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 4
theme_override_font_sizes/font_size = 23
text = "Km/h"
[node name="SteeringWheel" type="TextureRect" parent="MarginContainer/Main3DVehicleTexture/PretendMain3DVehicleInformation/DrivingInformation/MarginContainer"]
layout_mode = 2
size_flags_horizontal = 8
size_flags_vertical = 4
texture = ExtResource("9_m3c80")
[node name="Main3DVehicleInformation" type="MarginContainer" parent="MarginContainer"]
unique_name_in_owner = true
layout_mode = 2
mouse_filter = 2
[node name="Label" type="Label" parent="MarginContainer/Main3DVehicleInformation"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 0
theme_override_font_sizes/font_size = 22
theme_override_styles/normal = SubResource("StyleBoxEmpty_j2i4v")
text = "FPS:51"
[node name="TrafficLight" type="MarginContainer" parent="MarginContainer/Main3DVehicleInformation"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 0
theme_override_constants/margin_top = 13
[node name="TextureRect2" type="TextureRect" parent="MarginContainer/Main3DVehicleInformation/TrafficLight"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 0
texture = ExtResource("6_cdhlp")
[node name="DrivingInformation" type="MarginContainer" parent="MarginContainer/Main3DVehicleInformation"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 8
theme_override_constants/margin_bottom = 53
script = ExtResource("5_wa5ip")
_pivot_offset = null
is_Scale = null
is_Rotation = null
is_OnClickScaleAwt = null
StatusTime = null
[node name="TextureRect" type="TextureRect" parent="MarginContainer/Main3DVehicleInformation/DrivingInformation"]
layout_mode = 2
size_flags_vertical = 4
texture = ExtResource("7_7in7q")
[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/Main3DVehicleInformation/DrivingInformation"]
layout_mode = 2
theme_override_constants/margin_left = 17
theme_override_constants/margin_right = 27
[node name="Steering" type="TextureRect" parent="MarginContainer/Main3DVehicleInformation/DrivingInformation/MarginContainer"]
layout_mode = 2
size_flags_horizontal = 0
texture = ExtResource("8_3ei63")
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/Main3DVehicleInformation/DrivingInformation/MarginContainer"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
theme_override_constants/separation = -3
[node name="Speed" type="Label" parent="MarginContainer/Main3DVehicleInformation/DrivingInformation/MarginContainer/VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 4
theme_override_font_sizes/font_size = 49
text = "20.0"
[node name="SpeedUnit" type="Label" parent="MarginContainer/Main3DVehicleInformation/DrivingInformation/MarginContainer/VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 4
theme_override_font_sizes/font_size = 23
text = "Km/h"
[node name="SteeringWheel" type="TextureRect" parent="MarginContainer/Main3DVehicleInformation/DrivingInformation/MarginContainer"]
layout_mode = 2
size_flags_horizontal = 8
size_flags_vertical = 4
texture = ExtResource("9_m3c80")
[connection signal="on_click" from="MarginContainer/Main3DVehicleTexture" to="." method="_on_main_3d_vehicle_texture_on_click"]