diff --git a/Robo-Bus-A31-HMI/pad_hmi_ui/home/l3_7.png b/Robo-Bus-A31-HMI/code/l3_7.png similarity index 100% rename from Robo-Bus-A31-HMI/pad_hmi_ui/home/l3_7.png rename to Robo-Bus-A31-HMI/code/l3_7.png diff --git a/Robo-Bus-A31-HMI/pad_hmi_ui/home/l3_7.png.import b/Robo-Bus-A31-HMI/code/l3_7.png.import similarity index 73% rename from Robo-Bus-A31-HMI/pad_hmi_ui/home/l3_7.png.import rename to Robo-Bus-A31-HMI/code/l3_7.png.import index 69c7e03..9ada822 100644 --- a/Robo-Bus-A31-HMI/pad_hmi_ui/home/l3_7.png.import +++ b/Robo-Bus-A31-HMI/code/l3_7.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://qaq46brhnjbn" -path="res://.godot/imported/l3_7.png-ca4e6c14f3ecf8e6811217696b7d5cb5.ctex" +path="res://.godot/imported/l3_7.png-5fbd988a714b1a6560cf44c14d69a2bc.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://pad_hmi_ui/home/l3_7.png" -dest_files=["res://.godot/imported/l3_7.png-ca4e6c14f3ecf8e6811217696b7d5cb5.ctex"] +source_file="res://code/l3_7.png" +dest_files=["res://.godot/imported/l3_7.png-5fbd988a714b1a6560cf44c14d69a2bc.ctex"] [params] diff --git a/Robo-Bus-A31-HMI/code/main.gd b/Robo-Bus-A31-HMI/code/main.gd new file mode 100644 index 0000000..e5b4c69 --- /dev/null +++ b/Robo-Bus-A31-HMI/code/main.gd @@ -0,0 +1,57 @@ +extends BaseControl + +@onready var main_3d_vehicle: MarginContainer = %Main3DVehicle +@onready var main_3d_vehicle_texture: BaseControl = %Main3DVehicleTexture +@onready var data_panel: HBoxContainer = %DataPanel +@onready var _3d_vehicle: BaseControl = $"HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/3DVehicle" +@onready var main_3d_vehicle_background: NinePatchRect = %Main3DVehicleBackground +@onready var main_3d_vehicle_information: MarginContainer = %Main3DVehicleInformation +@onready var _3d_vehicle_information: MarginContainer = %"3DVehicleInformation" +@onready var pretend_main_3d_vehicle_information: MarginContainer = %PretendMain3DVehicleInformation + +# Called when the node enters the scene tree for the first time. +func _ready() -> void: + #Engine.time_scale = 0.01 + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta: float) -> void: + pass + + +func OnClick3DVehicle(_node: Variant) -> void: + main_3d_vehicle.visible = true + #main_3d_vehicle_background.visible = false + pretend_main_3d_vehicle_information.modulate.a = 1 + main_3d_vehicle_background.modulate.a = 0 + main_3d_vehicle_information.modulate.a = 0 + data_panel.modulate.a = 1 + _3d_vehicle.modulate.a = 0 + _3d_vehicle_information.modulate.a = 1 + main_3d_vehicle_texture.modulate.a = 0 + await get_tree().process_frame + await get_tree().process_frame + #main_3d_vehicle.self_modulate.a = 0 + main_3d_vehicle_texture.modulate.a = 255 + main_3d_vehicle_texture.onStart() + var tween0 = create_tween() + tween0.set_parallel() + tween0.tween_property(_3d_vehicle_information, "modulate", Color(1,1,1,0), 0.1) + tween0.tween_property(pretend_main_3d_vehicle_information, "modulate", Color(1,1,1,0), 0.1) + await get_tree().create_timer(0.3).timeout + #main_3d_vehicle_background.visible = true + var tween = create_tween() + tween.set_parallel() + tween.tween_property(main_3d_vehicle_background, "modulate", Color(1,1,1,1), 0.1) + tween.tween_property(main_3d_vehicle_information, "modulate", Color(1,1,1,1), 0.05) + tween.tween_property(data_panel, "modulate", Color(1,1,1,0), 0.1) + main_3d_vehicle_information + + _3d_vehicle.modulate.a = 1 + await get_tree().create_timer(0.1).timeout + _3d_vehicle_information.modulate.a = 1 + data_panel.visible = false + #main_3d_vehicle.self_modulate.a = 1 + + pass # Replace with function body."" diff --git a/Robo-Bus-A31-HMI/code/path_follow_2d_por.gd b/Robo-Bus-A31-HMI/code/path_follow_2d_por.gd new file mode 100644 index 0000000..190a6e7 --- /dev/null +++ b/Robo-Bus-A31-HMI/code/path_follow_2d_por.gd @@ -0,0 +1,9 @@ +@tool +extends PathFollow2D +@export var textureProgressBar : TextureProgressBar +@export var node : Node +func _physics_process(delta: float) -> void: + + progress_ratio = textureProgressBar._value / textureProgressBar._max_value + node.global_position = global_position - node.size/2 + pass diff --git a/Robo-Bus-A31-HMI/code/speedometer.gd b/Robo-Bus-A31-HMI/code/speedometer.gd new file mode 100644 index 0000000..b4cbb8f --- /dev/null +++ b/Robo-Bus-A31-HMI/code/speedometer.gd @@ -0,0 +1,15 @@ +@tool +extends TextureProgressBar + +@export var _max_value :float= 0 +@export var _value :float= 0 +# Called when the node enters the scene tree for the first time. +func _ready() -> void: + pass # Replace with function body. + + +func _process(delta: float) -> void: + _value = clampf(_value,0,_max_value) + material.set_shader_parameter("value",_value/_max_value) + #value = float(_value) /float( _max_value) * float(max_value) + pass diff --git a/Robo-Bus-A31-HMI/common/base/base_control.gd b/Robo-Bus-A31-HMI/common/base/base_control.gd index 02b638b..1e04971 100644 --- a/Robo-Bus-A31-HMI/common/base/base_control.gd +++ b/Robo-Bus-A31-HMI/common/base/base_control.gd @@ -1,132 +1,3 @@ -#@tool -#class_name BaseControl -#extends Control -# -#signal result_data(value) -#signal init_complete() -#signal load_anim_complete() -#signal on_click(_node) -#signal on_long_click(_node) -##@export var long_time = 800 -#var clickTime = 0 -#var clickPosition = Vector2.ZERO -#var itemRoot : BaseControl = null -# -#enum { - #RESULT_OK, - #RESULT_CANCELED -#} -# -#class GResult : - #var code = RESULT_OK - #var data = null - #func _init(p_code,p_data = null): - #self.code = p_code - #self.data = p_data -# -# -# -#@export var styleBox : StyleBox = null : set = set_styleBox -#@export var enter_anim : Animation = null -#@export var exit_anim : Animation = null -#@export var is_anim = true -#@export var on_click_anim : Animation = null -#var baseAnimationPlayer : AnimationPlayer = null -#func _ready(): - #await get_tree().process_frame - #if is_anim: - #init_anim() - #playEnter() -# - #await get_tree().create_timer(0.2).timeout - #init_complete.emit() -# -# -#func init_anim(): - #if enter_anim == null and exit_anim == null : - #return - #baseAnimationPlayer = AnimationPlayer.new() - #var animationLibrary = AnimationLibrary.new() - #if enter_anim != null : - #animationLibrary.add_animation("enter",enter_anim) - #if exit_anim != null : - #animationLibrary.add_animation("exit",exit_anim) - #if on_click_anim != null: - #animationLibrary.add_animation("on_click_anim",on_click_anim) - #baseAnimationPlayer.add_animation_library("",animationLibrary) - #add_child(baseAnimationPlayer) -## -# -#func playEnter(): - #if enter_anim != null and baseAnimationPlayer != null : - #baseAnimationPlayer.play("enter") -# -# -# -#func playExit(): - #if exit_anim != null and baseAnimationPlayer != null : - #baseAnimationPlayer.play("exit") - #await baseAnimationPlayer.animation_finished -# -##func queue_free(): - ##if is_anim: - ##await playExit() - ##super.queue_free() -# -#func set_styleBox(value) : - #styleBox = value - #queue_redraw() -#var is_move_r = false -#func _gui_input(event): - #if event is InputEventScreenTouch : - #is_move_r = event.pressed - #if event.pressed == true: - #clickTime = Time.get_ticks_msec() - #clickPosition = event.position - #pressed_true() - #if event.pressed == false: - #var diff = Time.get_ticks_msec() - clickTime - #clickTime = 0 - #if event.position.distance_to(clickPosition)<2 : - #if mouse_filter == Control.MOUSE_FILTER_STOP : - #accept_event() - #if diff < 800: - #emit_signal("on_click",self) - #if on_click_anim != null and baseAnimationPlayer != null : - #baseAnimationPlayer.play("on_click_anim") - #click() - #else : - #emit_signal("on_long_click",self) - #long_click() - #pressed_false() -#func pressed_true(): - #pass -#func pressed_false(): - #pass -#func _process(delta): - #if not Rect2(global_position, global_position+size).has_point(get_global_mouse_position()): - #pressed_false() -#func click(): - #pass -#func long_click(): - #pass -# -# -#func _draw(): - #if styleBox !=null : - #draw_style_box(styleBox, Rect2(Vector2(0,0) , size )) - - - - - - - - - - - - @tool class_name BaseControl extends Control @@ -160,9 +31,20 @@ class GResult : @export var exit_anim : Animation = null @export var is_anim = true @export var on_click_anim : Animation = null +@export var _pivot_offset = "CENTER" +@export var is_Scale = false +@export var is_Rotation = false +@export var OnClickScaleArrNode : Array[Node] = [] +var is_OnClickScale = false +@export var size_max : float = 1; +@export var is_OnClickScaleAwt = false +@export var StatusTime = 0.2 +@export var scaleMax : Vector2 = Vector2(1,1); +@export var scaleMin : Vector2 = Vector2(0,0); var baseAnimationPlayer : AnimationPlayer = null func _ready(): await get_tree().process_frame + OnClickScale() if is_anim: init_anim() playEnter() @@ -184,6 +66,7 @@ func init_anim(): animationLibrary.add_animation("on_click_anim",on_click_anim) baseAnimationPlayer.add_animation_library("",animationLibrary) add_child(baseAnimationPlayer) + # func playEnter(): @@ -225,17 +108,68 @@ func _gui_input(event): if on_click_anim != null and baseAnimationPlayer != null : baseAnimationPlayer.play("on_click_anim") click() + if is_Scale: + onScale() + if is_Rotation: + onRotation() + is_OnClickScale = !is_OnClickScale + OnClickScale() + else : emit_signal("on_long_click",self) long_click() pressed_false() +func OnClickScale(): + for node : Node in OnClickScaleArrNode: + if is_OnClickScale: + node.onStart() + else: + node.onEnd() + await get_tree().create_timer(StatusTime).timeout +func onScale(): + var tween = create_tween() + tween.tween_property(self, "scale", Vector2(1 + (0.2*size_max),1 + (0.2*size_max)), 0.1) + tween.tween_property(self, "scale", Vector2(1 - (0.05*size_max),1 - (0.05*size_max)), 0.15) + tween.tween_property(self, "scale", Vector2(1,1), 0.1) + +func onRotation(): + var tween = create_tween() + tween.tween_property(self, "rotation_degrees", 50*size_max, 0.1) + tween.tween_property(self, "rotation_degrees", -60*size_max, 0.15) + tween.tween_property(self, "rotation_degrees", 0, 0.1) +func onStart(): + #visible = true + #_pivot_offset = "CENTER_Left" + scale = scaleMin + var tween = create_tween() + tween.tween_property(self, "scale", scaleMin - (scaleMin*0.05), 0.1) + tween.tween_property(self, "scale", scaleMax , StatusTime) +func onEnd(): + #_pivot_offset = "CENTER_RIGHT" + scale = scaleMax + var tween = create_tween() + tween.tween_property(self, "scale", scaleMin, StatusTime) + func pressed_true(): pass func pressed_false(): pass +func _physics_process(delta: float) -> void: + if _pivot_offset == "CENTER": + pivot_offset = size/2 + if _pivot_offset == "CENTER_RIGHT": + pivot_offset.x = size.x + pivot_offset.y = size.y/2 + if _pivot_offset == "CENTER_Left": + pivot_offset.x = 0 + pivot_offset.y = size.y/2 func _process(delta): + + if not Rect2(global_position, global_position+size).has_point(get_global_mouse_position()): pressed_false() + + func click(): pass func long_click(): diff --git a/Robo-Bus-A31-HMI/control.tscn b/Robo-Bus-A31-HMI/control.tscn index 22c4253..a054cb9 100644 --- a/Robo-Bus-A31-HMI/control.tscn +++ b/Robo-Bus-A31-HMI/control.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=122 format=4 uid="uid://cxqxr0p1wkkdy"] +[gd_scene load_steps=141 format=4 uid="uid://cxqxr0p1wkkdy"] [ext_resource type="Texture2D" uid="uid://vc7lcwu566lf" path="res://1.png" id="1_21tqn"] [ext_resource type="Texture2D" uid="uid://blakv4vhyfyro" path="res://pad_hmi_ui/home/home page_bg.png" id="1_brgxr"] @@ -55,19 +55,21 @@ [ext_resource type="Texture2D" uid="uid://b8b4jbjgf0goa" path="res://pad_hmi_ui/information/radar_dis.png" id="45_5qbh2"] [ext_resource type="Texture2D" uid="uid://difsro6hup8vk" path="res://pad_hmi_ui/information/camera_dis.png" id="46_bmfue"] [ext_resource type="Texture2D" uid="uid://sf78o0seq2jh" path="res://pad_hmi_ui/information/category_bg.png" id="47_5cepa"] +[ext_resource type="Script" path="res://code/main.gd" id="48_l81l5"] [ext_resource type="Texture2D" uid="uid://dnqvtj33ialxi" path="res://pad_hmi_ui/information/can_dis.png" id="48_tlc84"] [ext_resource type="Texture2D" uid="uid://dpdjnd1u6xr2n" path="res://pad_hmi_ui/setting/setting_bg.png" id="48_vfrk1"] -[ext_resource type="Texture2D" uid="uid://dgcc42dwfk7gh" path="res://pad_hmi_ui/home/l1.png" id="49_7uju0"] [ext_resource type="Texture2D" uid="uid://dsl2hpmaayodk" path="res://pad_hmi_ui/taskbar/PIX_logo.png" id="50_86b81"] [ext_resource type="Texture2D" uid="uid://bhsjkyho6jr42" path="res://pad_hmi_ui/home/l2_1.png" id="50_n7p7b"] [ext_resource type="Shader" path="res://common/shader/round.gdshader" id="51_7lfx8"] [ext_resource type="Texture2D" uid="uid://bigplutpkgp7o" path="res://pad_hmi_ui/home/Preview.png" id="51_55c5i"] [ext_resource type="Texture2D" uid="uid://ku2yccf0rbwk" path="res://pad_hmi_ui/home/l2_2.png" id="51_i0v1y"] [ext_resource type="Texture2D" uid="uid://ruvsjrmynxch" path="res://pad_hmi_ui/taskbar/title.png" id="51_ptwd7"] +[ext_resource type="Texture2D" uid="uid://dgwf4d5wkwqgb" path="res://pad_hmi_ui/home/signal_icon_green.png" id="53_clnie"] [ext_resource type="Texture2D" uid="uid://culw8htusm3uk" path="res://pad_hmi_ui/home/online_icon.png" id="53_qvrsu"] [ext_resource type="Texture2D" uid="uid://83ghm43vg1e5" path="res://pad_hmi_ui/setting/fileformat_btn_high.png" id="53_t2ril"] [ext_resource type="Texture2D" uid="uid://c50227e2eywuh" path="res://pad_hmi_ui/home/NDK_icon_green.png" id="54_gtehh"] [ext_resource type="Texture2D" uid="uid://dbhtybumdqiml" path="res://pad_hmi_ui/home/auto_icon.png" id="55_pcj0v"] +[ext_resource type="Texture2D" uid="uid://c1ncf47u6ssrd" path="res://pad_hmi_ui/home/arrow_icon_right.png" id="55_yrjxu"] [ext_resource type="Texture2D" uid="uid://b80xeeqwjs1er" path="res://pad_hmi_ui/home/l3_3.png" id="56_ixhis"] [ext_resource type="Texture2D" uid="uid://eevtiqj5g6a8" path="res://3.png" id="57_v7hfe"] [ext_resource type="Texture2D" uid="uid://dncdx223e1re4" path="res://pad_hmi_ui/setting/function_bg.png" id="58_7tose"] @@ -77,8 +79,10 @@ [ext_resource type="Texture2D" uid="uid://eu54w8n46m0c" path="res://pad_hmi_ui/home/start_btn_high.png" id="60_yvm0s"] [ext_resource type="Texture2D" uid="uid://eai2a6227py1" path="res://pad_hmi_ui/setting/connect_icon.png" id="61_l5w4b"] [ext_resource type="Texture2D" uid="uid://5mgvnmdhw8k4" path="res://pad_hmi_ui/setting/download_icon.png" id="62_dtdoa"] +[ext_resource type="Texture2D" uid="uid://bm1s8eqmgruvf" path="res://pad_hmi_ui/home/battery_icon_green2.png" id="63_2rxp1"] [ext_resource type="Texture2D" uid="uid://b2o8feu8wjnw" path="res://pad_hmi_ui/setting/export_icon.png" id="63_7l4ky"] [ext_resource type="Texture2D" uid="uid://ddc0v6muv1x37" path="res://pad_hmi_ui/setting/language_btn.png" id="64_1orbu"] +[ext_resource type="Texture2D" uid="uid://2fhipj2re8cm" path="res://pad_hmi_ui/home/l3_4.png" id="64_cw7si"] [ext_resource type="Texture2D" uid="uid://c5yeqb150553k" path="res://pad_hmi_ui/setting/log_bg.png" id="65_6ujfn"] [ext_resource type="Texture2D" uid="uid://byhwmdjx3var2" path="res://pad_hmi_ui/setting/view_dis.png" id="65_ljbtv"] [ext_resource type="FontFile" uid="uid://b3k16i0c55ou6" path="res://Kufam_Noto_Sans_SC/Noto_Sans_SC/static/NotoSansSC-Medium.ttf" id="66_5sywp"] @@ -86,11 +90,19 @@ [ext_resource type="Texture2D" uid="uid://c6v1wowbk102d" path="res://pad_hmi_ui/setting/mode_dis.png" id="66_i0htr"] [ext_resource type="Texture2D" uid="uid://yspjrkbkr0re" path="res://pad_hmi_ui/setting/update_btn.png" id="67_6xjbf"] [ext_resource type="Texture2D" uid="uid://dn28hdbut8alu" path="res://pad_hmi_ui/setting/progress_bg.png" id="67_nkq62"] +[ext_resource type="Texture2D" uid="uid://s1lbea1dle4g" path="res://pad_hmi_ui/home/highbeam_icon.png" id="68_ryhsw"] [ext_resource type="Texture2D" uid="uid://c0i40n0t78y8l" path="res://pad_hmi_ui/setting/progress_bar_high.png" id="68_wqbbc"] +[ext_resource type="Texture2D" uid="uid://b2dketby5loag" path="res://pad_hmi_ui/home/map.png" id="69_m7bgy"] [ext_resource type="Texture2D" uid="uid://ds080xlssyk4a" path="res://pad_hmi_ui/setting/record_icon.png" id="69_otn0x"] +[ext_resource type="Texture2D" uid="uid://chdu0kfu6c7o4" path="res://pad_hmi_ui/home/l3_6.png" id="70_q4778"] [ext_resource type="Texture2D" uid="uid://b45cdi4mrcfpk" path="res://pad_hmi_ui/setting/server_bg.png" id="70_xatqx"] [ext_resource type="Texture2D" uid="uid://0756pmg7xmpi" path="res://pad_hmi_ui/setting/upload_icon.png" id="71_63eaf"] +[ext_resource type="Texture2D" uid="uid://qaq46brhnjbn" path="res://code/l3_7.png" id="72_iljbn"] +[ext_resource type="Texture2D" uid="uid://pomyaut6jtnm" path="res://未标题-1.png" id="75_wvjcq"] +[ext_resource type="Script" path="res://code/speedometer.gd" id="76_xwtvv"] [ext_resource type="Script" path="res://common/base/base_control.gd" id="79_i36i4"] +[ext_resource type="Script" path="res://code/path_follow_2d_por.gd" id="79_y43dn"] +[ext_resource type="Script" path="res://pad_hmi_ui/Main3DVehicle.gd" id="89_r17wy"] [sub_resource type="Image" id="Image_kgu7v"] data = { @@ -920,8 +932,8 @@ cache/0/48/0/glyphs/1582/size = Vector2(27, 38) cache/0/48/0/glyphs/1582/uv_rect = Rect2(42, 1, 27, 38) cache/0/48/0/glyphs/1582/texture_idx = 0 -[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_bnxes"] -texture = ExtResource("49_7uju0") +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_kh08u"] +bg_color = Color(0.0705882, 0.0431373, 0.164706, 1) [sub_resource type="StyleBoxTexture" id="StyleBoxTexture_mkgnk"] texture = ExtResource("51_ptwd7") @@ -966,6 +978,10 @@ 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 + [sub_resource type="StyleBoxTexture" id="StyleBoxTexture_a74mg"] texture = ExtResource("56_ixhis") texture_margin_left = 32.0 @@ -977,8 +993,20 @@ region_rect = Rect2(0, 0, 391, 150) [sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_bmudn"] content_margin_top = 29.0 -[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_gpj1l"] -bg_color = Color(1, 0.170082, 0.771359, 1) +[sub_resource type="ShaderMaterial" id="ShaderMaterial_7qxv8"] +shader = ExtResource("51_7lfx8") +shader_parameter/size = Vector2(9.31, 5.54) +shader_parameter/round_all = 0.395 +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 = false +shader_parameter/isBackground_color = false [sub_resource type="StyleBoxTexture" id="StyleBoxTexture_61ssv"] texture = ExtResource("51_i0v1y") @@ -989,7 +1017,8 @@ spacing_space = 4 [sub_resource type="CompressedTexture2D" id="CompressedTexture2D_o8w8u"] -[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_4c5rq"] +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_rir4m"] +texture = ExtResource("72_iljbn") [sub_resource type="StyleBoxTexture" id="StyleBoxTexture_h6qwb"] texture = ExtResource("23_rpeh3") @@ -998,6 +1027,112 @@ texture_margin_right = 42.0 expand_margin_top = 46.0 expand_margin_bottom = 52.0 +[sub_resource type="Shader" id="Shader_f57hx"] +code = "shader_type canvas_item; + +uniform float value : hint_range(0.0, 1.0) = 1.0; +uniform int segments = 1; +uniform float radius = 0.475; +uniform float hollow_radius = 0.0; +uniform float margin : hint_range(0.0, 1.0) = 0.0; +uniform float rotation : hint_range(-1.0, 1.0); +uniform float progress_rotation : hint_range(-1.0, 1.0); +uniform sampler2D gradient : source_color; +uniform bool use_value_gradient = false; +uniform sampler2D radius_curve; + + +vec4 get_gradient_color(sampler2D src, float position) { + position = clamp(position, 0.01, 0.99); // Color at 0.0 and 1.0 get interpolated by both end + return texture(src, vec2(position, 0.5)); +} + +float map_range(float min1, float max1, float min2, float max2, float v) { + float p = (v - min1) / (max1 - min1); + return p * (max2 - min2) + min2; +} + +vec2 rotate_uv(vec2 uv, float p_rotation){ + float mid = 0.5; + return vec2( + cos(p_rotation) * (uv.x - mid) + sin(p_rotation) * (uv.y - mid) + mid, + cos(p_rotation) * (uv.y - mid) - sin(p_rotation) * (uv.x - mid) + mid + ); +} + +float circle_shape(vec2 uv, float p_radius) { + vec2 center = vec2(0.5, 0.5); + return 1.0 - step(p_radius, distance(center, uv)); +} + +float radial_shape(vec2 uv, int p_segments) { + float radial = 0.0; + uv -= 0.5; + radial = atan(uv.y, uv.x); + radial = map_range(-PI, PI, 0.0, float(p_segments), radial); + radial = mod(radial, 1.0); + + return radial; +} + +void fragment() { + vec2 uv = UV; + uv = rotate_uv(uv, PI/2.0); // Rotate 90 degrees, so origin pointing at north be default + uv = rotate_uv(uv, rotation * PI); + + float t = radial_shape(uv, 1); + if (use_value_gradient) { + t = value; + } + float radius_t = get_gradient_color(radius_curve, radial_shape(uv, 1)).r; + + float shape = radial_shape(uv, segments); + float border_size = (1.0-margin)/2.0; + shape *= step(border_size, shape); + shape *= step(shape, 1.0 - border_size); + shape = step(shape, 0.0); + + uv = rotate_uv(uv, progress_rotation * PI); + float arc = radial_shape(uv, 1); + arc = step(arc, value/1.*0.82); + + float bounds = circle_shape(uv, radius * radius_t); + float hollow = 1.0-circle_shape(uv, hollow_radius * radius_t); + + shape = shape * arc * bounds * hollow; + + vec4 gradient_color = get_gradient_color(gradient, t); + vec4 color =texture(TEXTURE, UV) ; + //COLOR = vec4(color.r,color.g,color.b,shape); + COLOR = vec4(gradient_color.rgb, shape); +} +" + +[sub_resource type="Gradient" id="Gradient_b6vfa"] +offsets = PackedFloat32Array(0, 0.258706, 0.457711, 1) +colors = PackedColorArray(0.968627, 0.686275, 0.945098, 1, 0.498039, 0.314018, 0.990752, 1, 0.443137, 0.270588, 0.996078, 1, 0.968627, 0.686275, 0.945098, 1) + +[sub_resource type="GradientTexture1D" id="GradientTexture1D_ghtxh"] +gradient = SubResource("Gradient_b6vfa") + +[sub_resource type="ShaderMaterial" id="ShaderMaterial_8xunu"] +shader = SubResource("Shader_f57hx") +shader_parameter/value = 0.553667 +shader_parameter/segments = 1 +shader_parameter/radius = 0.5 +shader_parameter/hollow_radius = 0.46 +shader_parameter/margin = 0.0 +shader_parameter/rotation = 0.167 +shader_parameter/progress_rotation = -1.0 +shader_parameter/use_value_gradient = false +shader_parameter/gradient = SubResource("GradientTexture1D_ghtxh") + +[sub_resource type="Curve2D" id="Curve2D_8vhxy"] +_data = { +"points": PackedVector2Array(0, 0, 0, 0, 101, 370, 0, 0, 0, 0, 74, 352, 0, 0, 0, 0, 46, 323, 0, 0, 0, 0, 20, 279, 0, 0, 0, 0, 12, 260, 0, 0, 0, 0, 10, 249, 0, 0, 0, 0, 7, 229, 0, 0, 0, 0, 9, 179, 0, 0, 0, 0, 12, 156, 0, 0, 0, 0, 19, 132, 0, 0, 0, 0, 34, 102, 0, 0, 0, 0, 54, 75, 0, 0, 0, 0, 79, 52, 0, 0, 0, 0, 106, 33, 0, 0, 0, 0, 131, 22, 0, 0, 0, 0, 156, 12, 0, 0, 0, 0, 188, 6, 0, 0, 0, 0, 222, 5, 0, 0, 0, 0, 272, 18, 0, 0, 0, 0, 327, 48, 0, 0, 0, 0, 356, 79, 0, 0, 0, 0, 378, 114, 0, 0, 0, 0, 393, 154, 0, 0, 0, 0, 401, 192, 0, 0, 0, 0, 399, 223, 0, 0, 0, 0, 389, 266, 0, 0, 0, 0, 374, 298, 0, 0, 0, 0, 357, 325, 0, 0, 0, 0, 333, 353, 0, 0, 0, 0, 312, 369) +} +point_count = 30 + [sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_dyppf"] content_margin_left = 58.0 @@ -1013,6 +1148,21 @@ texture_margin_right = 6.0 expand_margin_top = 1.0 expand_margin_bottom = 1.0 +[sub_resource type="ShaderMaterial" id="ShaderMaterial_8c5rn"] +shader = ExtResource("51_7lfx8") +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 + [node name="Control" type="Control"] layout_mode = 3 anchors_preset = 15 @@ -1669,8 +1819,8 @@ theme_override_constants/margin_left = 30 theme_override_constants/margin_top = 40 theme_override_constants/margin_right = 30 theme_override_constants/margin_bottom = 40 -script = ExtResource("79_i36i4") -styleBox = SubResource("StyleBoxTexture_bnxes") +script = ExtResource("48_l81l5") +styleBox = SubResource("StyleBoxFlat_kh08u") [node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer"] layout_mode = 2 @@ -1684,6 +1834,11 @@ theme_override_constants/margin_top = 82 theme_override_constants/margin_bottom = 50 script = ExtResource("79_i36i4") styleBox = SubResource("StyleBoxTexture_mkgnk") +_pivot_offset = null +is_Scale = null +is_Rotation = null +is_OnClickScaleAwt = null +StatusTime = null [node name="PixLogo" type="TextureRect" parent="MarginContainer/HBoxContainer/Title"] layout_mode = 2 @@ -1709,6 +1864,9 @@ theme_override_styles/hover = SubResource("StyleBoxFlat_46du7") theme_override_styles/pressed = SubResource("StyleBoxFlat_46du7") theme_override_styles/normal = SubResource("StyleBoxFlat_46du7") text = "Autoware" +script = ExtResource("79_i36i4") +_pivot_offset = "CENTER_RIGHT" +is_OnClickScaleAwt = null [node name="Button2" type="Button" parent="MarginContainer/HBoxContainer/Title/VBoxContainer/VBoxContainer"] layout_mode = 2 @@ -1718,6 +1876,9 @@ theme_override_styles/hover = SubResource("StyleBoxFlat_78bhk") theme_override_styles/pressed = SubResource("StyleBoxFlat_78bhk") theme_override_styles/normal = SubResource("StyleBoxFlat_78bhk") text = "重启" +script = ExtResource("79_i36i4") +_pivot_offset = "CENTER_RIGHT" +is_OnClickScaleAwt = null [node name="Button3" type="Button" parent="MarginContainer/HBoxContainer/Title/VBoxContainer/VBoxContainer"] layout_mode = 2 @@ -1727,13 +1888,21 @@ theme_override_styles/hover = SubResource("StyleBoxFlat_78bhk") theme_override_styles/pressed = SubResource("StyleBoxFlat_78bhk") theme_override_styles/normal = SubResource("StyleBoxFlat_78bhk") text = "关机" +script = ExtResource("79_i36i4") +_pivot_offset = "CENTER_RIGHT" +is_OnClickScaleAwt = null -[node name="TextureRect2" type="TextureRect" parent="MarginContainer/HBoxContainer/Title/VBoxContainer"] +[node name="ShutdownIsScale" type="TextureRect" parent="MarginContainer/HBoxContainer/Title/VBoxContainer" node_paths=PackedStringArray("OnClickScaleArrNode")] custom_minimum_size = Vector2(50, 52) layout_mode = 2 size_flags_horizontal = 4 size_flags_vertical = 8 texture = ExtResource("13_yxy1g") +script = ExtResource("79_i36i4") +is_Scale = true +OnClickScaleArrNode = [NodePath("../VBoxContainer/Button"), NodePath("../VBoxContainer/Button2"), NodePath("../VBoxContainer/Button3")] +size_max = 2.0 +is_OnClickScaleAwt = true [node name="VBoxContainer2" type="VBoxContainer" parent="MarginContainer/HBoxContainer/Title"] layout_mode = 2 @@ -1745,6 +1914,11 @@ alignment = 1 [node name="MarginContainer" type="MarginContainer" parent="MarginContainer/HBoxContainer/Title/VBoxContainer2"] custom_minimum_size = Vector2(105, 105) layout_mode = 2 +script = ExtResource("79_i36i4") +is_Scale = true +is_Rotation = true +size_max = 2.0 +is_OnClickScaleAwt = null [node name="TextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer/Title/VBoxContainer2/MarginContainer"] layout_mode = 2 @@ -1759,6 +1933,11 @@ texture = ExtResource("10_yp8ne") [node name="MarginContainer2" type="MarginContainer" parent="MarginContainer/HBoxContainer/Title/VBoxContainer2"] custom_minimum_size = Vector2(105, 105) layout_mode = 2 +script = ExtResource("79_i36i4") +is_Scale = true +is_Rotation = true +size_max = 2.0 +is_OnClickScaleAwt = null [node name="TextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer/Title/VBoxContainer2/MarginContainer2"] visible = false @@ -1774,6 +1953,11 @@ texture = ExtResource("6_hw5g5") [node name="MarginContainer3" type="MarginContainer" parent="MarginContainer/HBoxContainer/Title/VBoxContainer2"] custom_minimum_size = Vector2(105, 105) layout_mode = 2 +script = ExtResource("79_i36i4") +is_Scale = true +is_Rotation = true +size_max = 2.0 +is_OnClickScaleAwt = null [node name="TextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer/Title/VBoxContainer2/MarginContainer3"] visible = false @@ -1786,7 +1970,17 @@ size_flags_horizontal = 4 size_flags_vertical = 4 texture = ExtResource("3_x0rpx") -[node name="MediumMenu" type="MarginContainer" parent="MarginContainer/HBoxContainer"] +[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/HBoxContainer"] +layout_mode = 2 +size_flags_horizontal = 3 +size_flags_stretch_ratio = 21.0 + +[node name="DataPanel" type="HBoxContainer" parent="MarginContainer/HBoxContainer/MarginContainer"] +unique_name_in_owner = true +layout_mode = 2 +theme_override_constants/separation = 30 + +[node name="MediumMenu" type="MarginContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel"] layout_mode = 2 size_flags_horizontal = 3 size_flags_stretch_ratio = 15.0 @@ -1796,125 +1990,225 @@ theme_override_constants/margin_right = 34 theme_override_constants/margin_bottom = 49 script = ExtResource("79_i36i4") styleBox = SubResource("StyleBoxTexture_ia2eh") +_pivot_offset = null +is_Scale = null +is_Rotation = null +is_OnClickScaleAwt = null +StatusTime = null -[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/HBoxContainer/MediumMenu"] +[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu"] layout_mode = 2 theme_override_constants/separation = 50 -[node name="CarInfoDisplay" type="HBoxContainer" parent="MarginContainer/HBoxContainer/MediumMenu/VBoxContainer"] +[node name="CarInfoDisplay" type="HBoxContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer"] layout_mode = 2 size_flags_vertical = 3 size_flags_stretch_ratio = 1.51 theme_override_constants/separation = 47 script = ExtResource("79_i36i4") +_pivot_offset = null +is_Scale = null +is_Rotation = null +is_OnClickScaleAwt = null +StatusTime = null -[node name="3DVehicle" type="MarginContainer" parent="MarginContainer/HBoxContainer/MediumMenu/VBoxContainer/CarInfoDisplay"] +[node name="3DVehicle" type="MarginContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay"] layout_mode = 2 size_flags_horizontal = 3 size_flags_stretch_ratio = 2.8 +mouse_filter = 0 theme_override_constants/margin_top = 25 +script = ExtResource("79_i36i4") +is_Rotation = null +size_max = 0.3 +is_OnClickScaleAwt = null -[node name="TextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer/MediumMenu/VBoxContainer/CarInfoDisplay/3DVehicle"] +[node name="TextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/3DVehicle"] material = SubResource("ShaderMaterial_yeotr") layout_mode = 2 texture = ExtResource("51_55c5i") stretch_mode = 6 -[node name="VehicleInformation" type="MarginContainer" parent="MarginContainer/HBoxContainer/MediumMenu/VBoxContainer/CarInfoDisplay"] +[node name="3DVehicleInformation" type="MarginContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/3DVehicle"] +unique_name_in_owner = true +layout_mode = 2 + +[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/3DVehicle/3DVehicleInformation"] +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/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/3DVehicle/3DVehicleInformation"] +layout_mode = 2 +size_flags_horizontal = 4 +size_flags_vertical = 0 +theme_override_constants/margin_top = 13 + +[node name="TextureRect2" type="TextureRect" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/3DVehicle/3DVehicleInformation/TrafficLight"] +layout_mode = 2 +size_flags_horizontal = 4 +size_flags_vertical = 0 +texture = ExtResource("53_clnie") + +[node name="DrivingInformation" type="MarginContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/3DVehicle/3DVehicleInformation"] +layout_mode = 2 +size_flags_horizontal = 4 +size_flags_vertical = 8 +theme_override_constants/margin_bottom = 53 +script = ExtResource("79_i36i4") +_pivot_offset = null +is_Scale = null +is_Rotation = null +is_OnClickScaleAwt = null +StatusTime = null + +[node name="TextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/3DVehicle/3DVehicleInformation/DrivingInformation"] +layout_mode = 2 +size_flags_vertical = 4 +texture = ExtResource("21_dlc8l") + +[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/3DVehicle/3DVehicleInformation/DrivingInformation"] +layout_mode = 2 +theme_override_constants/margin_left = 17 +theme_override_constants/margin_right = 27 + +[node name="Steering" type="TextureRect" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/3DVehicle/3DVehicleInformation/DrivingInformation/MarginContainer"] +layout_mode = 2 +size_flags_horizontal = 0 +texture = ExtResource("55_yrjxu") + +[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/3DVehicle/3DVehicleInformation/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/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/3DVehicle/3DVehicleInformation/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/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/3DVehicle/3DVehicleInformation/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/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/3DVehicle/3DVehicleInformation/DrivingInformation/MarginContainer"] +layout_mode = 2 +size_flags_horizontal = 8 +size_flags_vertical = 4 +texture = ExtResource("22_m2b4s") + +[node name="VehicleInformation" type="MarginContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay"] layout_mode = 2 size_flags_horizontal = 3 script = ExtResource("79_i36i4") +_pivot_offset = null +is_Scale = null +is_Rotation = null +is_OnClickScaleAwt = null +StatusTime = null -[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/HBoxContainer/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation"] +[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation"] layout_mode = 2 theme_override_constants/separation = 32 -[node name="InformationDisplay1" type="MarginContainer" parent="MarginContainer/HBoxContainer/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer"] +[node name="InformationDisplay1" type="MarginContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer"] layout_mode = 2 -[node name="OnlineStatus" type="HBoxContainer" parent="MarginContainer/HBoxContainer/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay1"] +[node name="OnlineStatus" type="HBoxContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay1"] layout_mode = 2 theme_override_constants/separation = 10 -[node name="TextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay1/OnlineStatus"] +[node name="TextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay1/OnlineStatus"] layout_mode = 2 size_flags_horizontal = 4 size_flags_vertical = 4 texture = ExtResource("53_qvrsu") -[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay1/OnlineStatus"] +[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay1/OnlineStatus"] layout_mode = 2 theme_override_font_sizes/font_size = 25 text = "在线" -[node name="NDK" type="TextureRect" parent="MarginContainer/HBoxContainer/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay1"] +[node name="NDK" type="TextureRect" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay1"] layout_mode = 2 size_flags_horizontal = 4 size_flags_vertical = 4 texture = ExtResource("54_gtehh") -[node name="TextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay1"] +[node name="TextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay1"] layout_mode = 2 size_flags_horizontal = 8 size_flags_vertical = 4 texture = ExtResource("55_pcj0v") -[node name="InformationDisplay2" type="MarginContainer" parent="MarginContainer/HBoxContainer/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer"] +[node name="InformationDisplay2" type="MarginContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer"] layout_mode = 2 theme_override_constants/margin_top = 25 theme_override_constants/margin_bottom = 16 script = ExtResource("79_i36i4") styleBox = SubResource("StyleBoxTexture_a74mg") +_pivot_offset = null +is_Scale = null +is_Rotation = null +is_OnClickScaleAwt = null +StatusTime = null -[node name="MarginContainer" type="VBoxContainer" parent="MarginContainer/HBoxContainer/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay2"] +[node name="MarginContainer" type="VBoxContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay2"] layout_mode = 2 theme_override_constants/separation = 13 -[node name="GearAdjustment" type="HBoxContainer" parent="MarginContainer/HBoxContainer/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay2/MarginContainer"] +[node name="GearAdjustment" type="HBoxContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay2/MarginContainer"] layout_mode = 2 theme_override_constants/separation = 73 alignment = 1 -[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay2/MarginContainer/GearAdjustment"] +[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay2/MarginContainer/GearAdjustment"] layout_mode = 2 theme_override_font_sizes/font_size = 35 text = "P" -[node name="Label2" type="Label" parent="MarginContainer/HBoxContainer/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay2/MarginContainer/GearAdjustment"] +[node name="Label2" type="Label" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay2/MarginContainer/GearAdjustment"] layout_mode = 2 theme_override_font_sizes/font_size = 35 text = "R" -[node name="Label3" type="Label" parent="MarginContainer/HBoxContainer/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay2/MarginContainer/GearAdjustment"] +[node name="Label3" type="Label" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay2/MarginContainer/GearAdjustment"] layout_mode = 2 theme_override_font_sizes/font_size = 35 text = "N" -[node name="Label4" type="Label" parent="MarginContainer/HBoxContainer/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay2/MarginContainer/GearAdjustment"] +[node name="Label4" type="Label" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay2/MarginContainer/GearAdjustment"] layout_mode = 2 theme_override_font_sizes/font_size = 35 text = "D" -[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/HBoxContainer/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay2/MarginContainer"] +[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay2/MarginContainer"] layout_mode = 2 theme_override_constants/separation = -29 -[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/HBoxContainer/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay2/MarginContainer/VBoxContainer"] +[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay2/MarginContainer/VBoxContainer"] layout_mode = 2 theme_override_constants/margin_left = 38 theme_override_constants/margin_top = 13 theme_override_constants/margin_right = 40 -[node name="TextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay2/MarginContainer/VBoxContainer/MarginContainer"] +[node name="TextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay2/MarginContainer/VBoxContainer/MarginContainer"] layout_mode = 2 size_flags_vertical = 0 texture = ExtResource("3_q1hqd") -[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/HBoxContainer/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay2/MarginContainer/VBoxContainer/MarginContainer"] +[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay2/MarginContainer/VBoxContainer/MarginContainer"] layout_mode = 2 alignment = 1 -[node name="TextureProgressBar" type="TextureProgressBar" parent="MarginContainer/HBoxContainer/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay2/MarginContainer/VBoxContainer/MarginContainer/HBoxContainer"] +[node name="TextureProgressBar" type="TextureProgressBar" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay2/MarginContainer/VBoxContainer/MarginContainer/HBoxContainer"] layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 4 @@ -1922,27 +2216,189 @@ value = 50.0 fill_mode = 1 texture_progress = ExtResource("15_0cb32") -[node name="TextureProgressBar2" type="TextureProgressBar" parent="MarginContainer/HBoxContainer/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay2/MarginContainer/VBoxContainer/MarginContainer/HBoxContainer"] +[node name="TextureProgressBar2" type="TextureProgressBar" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay2/MarginContainer/VBoxContainer/MarginContainer/HBoxContainer"] layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 4 value = 50.0 texture_progress = ExtResource("15_0cb32") -[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay2/MarginContainer/VBoxContainer"] +[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay2/MarginContainer/VBoxContainer"] layout_mode = 2 theme_override_styles/normal = SubResource("StyleBoxEmpty_bmudn") text = "ACC" horizontal_alignment = 1 vertical_alignment = 1 -[node name="HBoxContainer2" type="HBoxContainer" parent="MarginContainer/HBoxContainer/MediumMenu/VBoxContainer"] +[node name="InformationDisplay3" type="MarginContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer"] +layout_mode = 2 +theme_override_constants/margin_top = 17 + +[node name="TextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay3"] +layout_mode = 2 +texture = ExtResource("56_ixhis") + +[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay3"] +layout_mode = 2 +theme_override_constants/margin_left = 39 +theme_override_constants/margin_top = 19 +theme_override_constants/margin_right = 40 + +[node name="BatteryLife" type="VBoxContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay3/MarginContainer"] +layout_mode = 2 +size_flags_horizontal = 0 + +[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay3/MarginContainer/BatteryLife"] +layout_mode = 2 +size_flags_horizontal = 4 +theme_override_font_sizes/font_size = 23 +text = "续航" + +[node name="BatteryLifeLabel" type="Label" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay3/MarginContainer/BatteryLife"] +layout_mode = 2 +size_flags_horizontal = 4 +theme_override_font_sizes/font_size = 34 +text = "60" + +[node name="Label3" type="Label" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay3/MarginContainer/BatteryLife"] +layout_mode = 2 +size_flags_horizontal = 4 +theme_override_font_sizes/font_size = 23 +text = "Km" + +[node name="SmallMileage" type="VBoxContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay3/MarginContainer"] +layout_mode = 2 +size_flags_horizontal = 4 + +[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay3/MarginContainer/SmallMileage"] +layout_mode = 2 +size_flags_horizontal = 4 +theme_override_font_sizes/font_size = 23 +text = "小里程" + +[node name="SmallMileageLabel" type="Label" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay3/MarginContainer/SmallMileage"] +layout_mode = 2 +size_flags_horizontal = 4 +theme_override_font_sizes/font_size = 34 +text = "20" + +[node name="Label3" type="Label" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay3/MarginContainer/SmallMileage"] +layout_mode = 2 +size_flags_horizontal = 4 +theme_override_font_sizes/font_size = 23 +text = "Km" + +[node name="Power" type="VBoxContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay3/MarginContainer"] +layout_mode = 2 +size_flags_horizontal = 8 +theme_override_constants/separation = 13 + +[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay3/MarginContainer/Power"] +layout_mode = 2 +size_flags_horizontal = 4 +theme_override_font_sizes/font_size = 23 +text = "电量" + +[node name="PowerTextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay3/MarginContainer/Power"] +layout_mode = 2 +texture = ExtResource("63_2rxp1") + +[node name="PowerLabel" type="Label" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay3/MarginContainer/Power"] +layout_mode = 2 +size_flags_horizontal = 4 +theme_override_font_sizes/font_size = 23 +text = "70%" + +[node name="InformationDisplay4" type="MarginContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer"] +layout_mode = 2 +theme_override_constants/margin_top = 17 + +[node name="TextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay4"] +layout_mode = 2 +texture = ExtResource("64_cw7si") + +[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay4"] +layout_mode = 2 +theme_override_constants/margin_left = 39 +theme_override_constants/margin_top = 29 +theme_override_constants/margin_right = 40 +theme_override_constants/margin_bottom = 27 + +[node name="TextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay4/MarginContainer"] +layout_mode = 2 +size_flags_horizontal = 0 +size_flags_vertical = 0 +mouse_filter = 0 +texture = ExtResource("5_npp0j") +script = ExtResource("79_i36i4") +is_Scale = true +is_Rotation = true +size_max = 2.0 +is_OnClickScaleAwt = null + +[node name="TextureRect2" type="TextureRect" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay4/MarginContainer"] +layout_mode = 2 +size_flags_horizontal = 8 +size_flags_vertical = 0 +mouse_filter = 0 +texture = ExtResource("15_0katk") +script = ExtResource("79_i36i4") +is_Scale = true +is_Rotation = true +size_max = 2.0 +is_OnClickScaleAwt = null + +[node name="TextureRect3" type="TextureRect" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay4/MarginContainer"] +layout_mode = 2 +size_flags_horizontal = 0 +size_flags_vertical = 8 +mouse_filter = 0 +texture = ExtResource("14_f3od3") +script = ExtResource("79_i36i4") +is_Scale = true +is_Rotation = true +size_max = 2.0 +is_OnClickScaleAwt = null + +[node name="TextureRect4" type="TextureRect" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/VehicleInformation/VBoxContainer/InformationDisplay4/MarginContainer"] +layout_mode = 2 +size_flags_horizontal = 8 +size_flags_vertical = 8 +mouse_filter = 0 +texture = ExtResource("68_ryhsw") +script = ExtResource("79_i36i4") +is_Scale = true +is_Rotation = true +size_max = 2.0 +is_OnClickScaleAwt = null + +[node name="HBoxContainer2" type="HBoxContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer"] layout_mode = 2 size_flags_vertical = 3 +theme_override_constants/separation = 50 script = ExtResource("79_i36i4") -styleBox = SubResource("StyleBoxFlat_gpj1l") +_pivot_offset = null +is_Scale = null +is_Rotation = null +is_OnClickScaleAwt = null +StatusTime = null -[node name="RightMenu" type="MarginContainer" parent="MarginContainer/HBoxContainer"] +[node name="TextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/HBoxContainer2"] +modulate = Color(1, 0, 0, 1) +material = SubResource("ShaderMaterial_7qxv8") +layout_mode = 2 +size_flags_horizontal = 3 +size_flags_stretch_ratio = 1.58 +texture = ExtResource("69_m7bgy") +expand_mode = 1 + +[node name="TextureRect2" type="TextureRect" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/HBoxContainer2"] +layout_mode = 2 +size_flags_horizontal = 3 +texture = ExtResource("70_q4778") +expand_mode = 1 + +[node name="RightMenu" type="MarginContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel"] layout_mode = 2 size_flags_horizontal = 3 size_flags_stretch_ratio = 6.0 @@ -1950,47 +2406,52 @@ theme_override_constants/margin_left = 39 theme_override_constants/margin_right = 39 script = ExtResource("79_i36i4") styleBox = SubResource("StyleBoxTexture_61ssv") +_pivot_offset = null +is_Scale = null +is_Rotation = null +is_OnClickScaleAwt = null +StatusTime = null -[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/HBoxContainer/RightMenu"] +[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu"] layout_mode = 2 theme_override_constants/separation = 26 -[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer"] +[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer"] layout_mode = 2 theme_override_constants/margin_left = 54 theme_override_constants/margin_top = 18 theme_override_constants/margin_right = 9 -[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer"] +[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer"] layout_mode = 2 theme_override_font_sizes/font_size = 30 text = "25°C" -[node name="Label2" type="Label" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer"] +[node name="Label2" type="Label" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer"] layout_mode = 2 size_flags_horizontal = 8 theme_override_fonts/font = SubResource("FontVariation_frbsn") theme_override_font_sizes/font_size = 31 text = "2024-04-27 00:35:24" -[node name="MarginContainer6" type="MarginContainer" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer"] +[node name="MarginContainer6" type="MarginContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer"] layout_mode = 2 theme_override_constants/margin_left = 14 -[node name="HSlider" type="HSlider" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer6"] +[node name="HSlider" type="HSlider" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer6"] custom_minimum_size = Vector2(0, 103) layout_mode = 2 theme_override_icons/grabber = SubResource("CompressedTexture2D_o8w8u") theme_override_icons/grabber_highlight = SubResource("CompressedTexture2D_o8w8u") theme_override_icons/grabber_disabled = SubResource("CompressedTexture2D_o8w8u") -theme_override_icons/tick = SubResource("CompressedTexture2D_o8w8u") -theme_override_styles/slider = SubResource("StyleBoxEmpty_4c5rq") +theme_override_icons/tick = ExtResource("72_iljbn") +theme_override_styles/slider = SubResource("StyleBoxTexture_rir4m") theme_override_styles/grabber_area = SubResource("StyleBoxTexture_h6qwb") theme_override_styles/grabber_area_highlight = SubResource("StyleBoxTexture_h6qwb") max_value = 140.0 -value = 40.0 +value = 100.0 -[node name="TextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer6/HSlider"] +[node name="TextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer6/HSlider"] layout_mode = 1 anchors_preset = 4 anchor_top = 0.5 @@ -2002,94 +2463,126 @@ offset_bottom = 23.5 grow_vertical = 2 texture = ExtResource("24_gp0eu") -[node name="MarginContainer2" type="MarginContainer" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer"] +[node name="TextureRect2" type="TextureRect" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer6/HSlider"] +show_behind_parent = true +layout_mode = 0 +offset_top = 4.0 +offset_right = 576.0 +offset_bottom = 104.0 +texture = ExtResource("72_iljbn") + +[node name="MarginContainer2" type="MarginContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer"] layout_mode = 2 theme_override_constants/margin_top = 59 -[node name="TextureProgressBar" type="TextureProgressBar" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer2"] +[node name="Speedometer" type="TextureProgressBar" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer2"] +material = SubResource("ShaderMaterial_8xunu") layout_mode = 2 size_flags_horizontal = 4 size_flags_vertical = 4 value = 100.0 fill_mode = 4 -radial_initial_angle = 200.0 -texture_progress = ExtResource("21_rfjxl") +radial_initial_angle = 180.0 +texture_progress = ExtResource("75_wvjcq") +script = ExtResource("76_xwtvv") +_max_value = 30.0 +_value = 16.61 -[node name="TextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer2/TextureProgressBar"] +[node name="TextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer2/Speedometer"] layout_mode = 0 -offset_left = 128.0 -offset_top = -7.0 -offset_right = 168.0 -offset_bottom = 33.0 +offset_left = 233.584 +offset_top = -6.78809 +offset_right = 273.584 +offset_bottom = 33.2119 texture = ExtResource("22_0yr2r") -[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer2/TextureProgressBar"] +[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer2/Speedometer"] layout_mode = 1 anchors_preset = 7 anchor_left = 0.5 anchor_top = 1.0 anchor_right = 0.5 anchor_bottom = 1.0 -offset_left = -93.5 -offset_top = -33.0 -offset_right = 93.5 -offset_bottom = 55.0 +offset_left = -83.0 +offset_top = -62.0 +offset_right = 104.0 +offset_bottom = 26.0 grow_horizontal = 2 grow_vertical = 0 -theme_override_constants/separation = 19 +theme_override_constants/separation = 24 -[node name="Button" type="Button" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer2/TextureProgressBar/HBoxContainer"] +[node name="Button" type="TextureRect" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer2/Speedometer/HBoxContainer"] layout_mode = 2 -icon = ExtResource("26_1pcmu") -flat = true +size_flags_vertical = 4 +texture = ExtResource("26_1pcmu") +script = ExtResource("79_i36i4") +is_Scale = true +size_max = 1.5 +is_OnClickScaleAwt = null -[node name="Button2" type="Button" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer2/TextureProgressBar/HBoxContainer"] +[node name="Button2" type="TextureRect" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer2/Speedometer/HBoxContainer"] layout_mode = 2 -icon = ExtResource("27_8e6he") -flat = true +size_flags_vertical = 4 +texture = ExtResource("27_8e6he") +script = ExtResource("79_i36i4") +is_Scale = true +size_max = 1.5 +is_OnClickScaleAwt = null -[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer2"] +[node name="Path2D" type="Path2D" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer2/Speedometer"] +curve = SubResource("Curve2D_8vhxy") + +[node name="PathFollow2D" type="PathFollow2D" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer2/Speedometer/Path2D" node_paths=PackedStringArray("textureProgressBar", "node")] +position = Vector2(253.584, 13.2119) +rotation = 0.254368 +progress = 561.67 +loop = false +script = ExtResource("79_y43dn") +textureProgressBar = NodePath("../..") +node = NodePath("../../TextureRect") + +[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer2"] layout_mode = 2 size_flags_horizontal = 4 size_flags_vertical = 4 theme_override_constants/separation = -17 -[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer2/VBoxContainer"] +[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer2/VBoxContainer"] layout_mode = 2 theme_override_constants/separation = 18 -[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer2/VBoxContainer/HBoxContainer"] +[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer2/VBoxContainer/HBoxContainer"] layout_mode = 2 theme_override_font_sizes/font_size = 65 text = "14" -[node name="Label2" type="Label" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer2/VBoxContainer/HBoxContainer"] +[node name="Label2" type="Label" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer2/VBoxContainer/HBoxContainer"] layout_mode = 2 theme_override_font_sizes/font_size = 34 text = "/" -[node name="Label3" type="Label" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer2/VBoxContainer/HBoxContainer"] +[node name="Label3" type="Label" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer2/VBoxContainer/HBoxContainer"] layout_mode = 2 theme_override_font_sizes/font_size = 34 text = "30" -[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer2/VBoxContainer"] +[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer2/VBoxContainer"] layout_mode = 2 size_flags_horizontal = 4 theme_override_font_sizes/font_size = 34 text = "speed" -[node name="MarginContainer3" type="MarginContainer" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer"] +[node name="MarginContainer3" type="MarginContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer"] layout_mode = 2 mouse_filter = 2 theme_override_constants/margin_left = 14 theme_override_constants/margin_top = 105 -[node name="TextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer3"] +[node name="TextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer3"] layout_mode = 2 texture = ExtResource("32_3i0hm") -[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer3/TextureRect"] +[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer3/TextureRect"] layout_mode = 1 anchors_preset = 4 anchor_top = 0.5 @@ -2102,27 +2595,27 @@ theme_override_font_sizes/font_size = 28 theme_override_styles/normal = SubResource("StyleBoxEmpty_dyppf") text = "站点选择" -[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer3"] +[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer3"] layout_mode = 2 size_flags_horizontal = 8 theme_override_constants/margin_left = 29 theme_override_constants/margin_right = 29 -[node name="TextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer3/MarginContainer"] +[node name="TextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer3/MarginContainer"] layout_mode = 2 size_flags_vertical = 4 texture = ExtResource("31_nlv7l") -[node name="MarginContainer4" type="MarginContainer" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer"] +[node name="MarginContainer4" type="MarginContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer"] layout_mode = 2 size_flags_horizontal = 4 theme_override_constants/margin_top = 51 -[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer4"] +[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer4"] layout_mode = 2 theme_override_constants/separation = 39 -[node name="Button" type="Button" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer4/HBoxContainer"] +[node name="Button" type="Button" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer4/HBoxContainer"] layout_mode = 2 theme_override_font_sizes/font_size = 32 text = "定位" @@ -2130,7 +2623,7 @@ icon = ExtResource("36_lcxa4") flat = true icon_alignment = 1 -[node name="Button2" type="Button" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer4/HBoxContainer"] +[node name="Button2" type="Button" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer4/HBoxContainer"] layout_mode = 2 theme_override_font_sizes/font_size = 32 text = "下发" @@ -2138,12 +2631,12 @@ icon = ExtResource("36_lcxa4") flat = true icon_alignment = 1 -[node name="MarginContainer5" type="MarginContainer" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer"] +[node name="MarginContainer5" type="MarginContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer"] layout_mode = 2 theme_override_constants/margin_left = 15 theme_override_constants/margin_top = 49 -[node name="HSlider" type="HSlider" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer5"] +[node name="HSlider" type="HSlider" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer5"] layout_mode = 2 theme_override_icons/grabber = ExtResource("33_51418") theme_override_icons/grabber_highlight = ExtResource("33_51418") @@ -2154,60 +2647,60 @@ script = ExtResource("59_e8lnv") texture1 = ExtResource("60_yvm0s") texture2 = ExtResource("33_51418") -[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer5"] +[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer5"] layout_mode = 2 size_flags_horizontal = 4 mouse_filter = 2 theme_override_constants/separation = 230 -[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer5/HBoxContainer"] +[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer5/HBoxContainer"] layout_mode = 2 theme_override_font_sizes/font_size = 29 text = "停止" -[node name="Label2" type="Label" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer5/HBoxContainer"] +[node name="Label2" type="Label" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer5/HBoxContainer"] layout_mode = 2 theme_override_font_sizes/font_size = 29 text = "启动" -[node name="MarginContainer7" type="MarginContainer" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer"] +[node name="MarginContainer7" type="MarginContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer"] layout_mode = 2 theme_override_constants/margin_left = 16 theme_override_constants/margin_top = 41 -[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer7"] +[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer7"] layout_mode = 2 theme_override_constants/separation = 21 -[node name="TextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer7/HBoxContainer"] +[node name="TextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer7/HBoxContainer"] layout_mode = 2 texture = ExtResource("8_7v5v2") -[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer7/HBoxContainer"] +[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer7/HBoxContainer"] layout_mode = 2 theme_override_font_sizes/font_size = 21 text = "500m" -[node name="HBoxContainer2" type="HBoxContainer" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer7"] +[node name="HBoxContainer2" type="HBoxContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer7"] layout_mode = 2 size_flags_horizontal = 8 theme_override_constants/separation = 21 -[node name="TextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer7/HBoxContainer2"] +[node name="TextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer7/HBoxContainer2"] layout_mode = 2 texture = ExtResource("38_w1fsm") -[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer7/HBoxContainer2"] +[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer7/HBoxContainer2"] layout_mode = 2 theme_override_font_sizes/font_size = 21 text = "10min" -[node name="MarginContainer8" type="MarginContainer" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer"] +[node name="MarginContainer8" type="MarginContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer"] layout_mode = 2 theme_override_constants/margin_left = 16 theme_override_constants/margin_top = 1 -[node name="HSlider" type="HSlider" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer8"] +[node name="HSlider" type="HSlider" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer8"] layout_mode = 2 theme_override_icons/grabber = ExtResource("35_3ue4s") theme_override_icons/grabber_highlight = ExtResource("35_3ue4s") @@ -2216,30 +2709,222 @@ theme_override_styles/grabber_area = SubResource("StyleBoxTexture_gpo2x") theme_override_styles/grabber_area_highlight = SubResource("StyleBoxTexture_gpo2x") value = 50.0 -[node name="MarginContainer9" type="MarginContainer" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer"] +[node name="MarginContainer9" type="MarginContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer"] layout_mode = 2 theme_override_constants/margin_left = 16 theme_override_constants/margin_top = -7 -[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer9"] +[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer9"] layout_mode = 2 theme_override_constants/separation = 21 -[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer9/HBoxContainer"] +[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer9/HBoxContainer"] layout_mode = 2 theme_override_font_sizes/font_size = 25 text = "长通集团北" -[node name="HBoxContainer2" type="HBoxContainer" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer9"] +[node name="HBoxContainer2" type="HBoxContainer" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer9"] layout_mode = 2 size_flags_horizontal = 8 theme_override_constants/separation = 21 -[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer9/HBoxContainer2"] +[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer9/HBoxContainer2"] layout_mode = 2 theme_override_font_sizes/font_size = 25 text = "长通集团南" +[node name="Main3DVehicle" type="MarginContainer" parent="MarginContainer/HBoxContainer/MarginContainer"] +unique_name_in_owner = true +visible = false +custom_minimum_size = Vector2(2320, 1520) +layout_mode = 2 +script = ExtResource("89_r17wy") + +[node name="Main3DVehicleBackground" type="NinePatchRect" parent="MarginContainer/HBoxContainer/MarginContainer/Main3DVehicle"] +unique_name_in_owner = true +layout_mode = 2 +texture = ExtResource("50_n7p7b") +patch_margin_left = 64 +patch_margin_top = 64 +patch_margin_right = 64 +patch_margin_bottom = 64 + +[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/HBoxContainer/MarginContainer/Main3DVehicle"] +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/HBoxContainer/MarginContainer/Main3DVehicle/MarginContainer"] +unique_name_in_owner = true +material = SubResource("ShaderMaterial_8c5rn") +layout_mode = 2 +texture = ExtResource("51_55c5i") +expand_mode = 1 +script = ExtResource("79_i36i4") +_pivot_offset = "Null" +StatusTime = 0.3 +scaleMin = Vector2(0.49, 0.57) + +[node name="PretendMain3DVehicleInformation" type="MarginContainer" parent="MarginContainer/HBoxContainer/MarginContainer/Main3DVehicle/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/HBoxContainer/MarginContainer/Main3DVehicle/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/HBoxContainer/MarginContainer/Main3DVehicle/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/HBoxContainer/MarginContainer/Main3DVehicle/MarginContainer/Main3DVehicleTexture/PretendMain3DVehicleInformation/TrafficLight"] +layout_mode = 2 +size_flags_horizontal = 4 +size_flags_vertical = 0 +texture = ExtResource("53_clnie") + +[node name="DrivingInformation" type="MarginContainer" parent="MarginContainer/HBoxContainer/MarginContainer/Main3DVehicle/MarginContainer/Main3DVehicleTexture/PretendMain3DVehicleInformation"] +layout_mode = 2 +size_flags_horizontal = 4 +size_flags_vertical = 8 +theme_override_constants/margin_bottom = 53 +script = ExtResource("79_i36i4") +_pivot_offset = null +is_Scale = null +is_Rotation = null +is_OnClickScaleAwt = null +StatusTime = null + +[node name="TextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer/MarginContainer/Main3DVehicle/MarginContainer/Main3DVehicleTexture/PretendMain3DVehicleInformation/DrivingInformation"] +layout_mode = 2 +size_flags_vertical = 4 +texture = ExtResource("21_dlc8l") + +[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/HBoxContainer/MarginContainer/Main3DVehicle/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/HBoxContainer/MarginContainer/Main3DVehicle/MarginContainer/Main3DVehicleTexture/PretendMain3DVehicleInformation/DrivingInformation/MarginContainer"] +layout_mode = 2 +size_flags_horizontal = 0 +texture = ExtResource("55_yrjxu") + +[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/HBoxContainer/MarginContainer/Main3DVehicle/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/HBoxContainer/MarginContainer/Main3DVehicle/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/HBoxContainer/MarginContainer/Main3DVehicle/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/HBoxContainer/MarginContainer/Main3DVehicle/MarginContainer/Main3DVehicleTexture/PretendMain3DVehicleInformation/DrivingInformation/MarginContainer"] +layout_mode = 2 +size_flags_horizontal = 8 +size_flags_vertical = 4 +texture = ExtResource("22_m2b4s") + +[node name="Main3DVehicleInformation" type="MarginContainer" parent="MarginContainer/HBoxContainer/MarginContainer/Main3DVehicle/MarginContainer"] +unique_name_in_owner = true +layout_mode = 2 +mouse_filter = 2 + +[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/MarginContainer/Main3DVehicle/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/HBoxContainer/MarginContainer/Main3DVehicle/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/HBoxContainer/MarginContainer/Main3DVehicle/MarginContainer/Main3DVehicleInformation/TrafficLight"] +layout_mode = 2 +size_flags_horizontal = 4 +size_flags_vertical = 0 +texture = ExtResource("53_clnie") + +[node name="DrivingInformation" type="MarginContainer" parent="MarginContainer/HBoxContainer/MarginContainer/Main3DVehicle/MarginContainer/Main3DVehicleInformation"] +layout_mode = 2 +size_flags_horizontal = 4 +size_flags_vertical = 8 +theme_override_constants/margin_bottom = 53 +script = ExtResource("79_i36i4") +_pivot_offset = null +is_Scale = null +is_Rotation = null +is_OnClickScaleAwt = null +StatusTime = null + +[node name="TextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer/MarginContainer/Main3DVehicle/MarginContainer/Main3DVehicleInformation/DrivingInformation"] +layout_mode = 2 +size_flags_vertical = 4 +texture = ExtResource("21_dlc8l") + +[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/HBoxContainer/MarginContainer/Main3DVehicle/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/HBoxContainer/MarginContainer/Main3DVehicle/MarginContainer/Main3DVehicleInformation/DrivingInformation/MarginContainer"] +layout_mode = 2 +size_flags_horizontal = 0 +texture = ExtResource("55_yrjxu") + +[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/HBoxContainer/MarginContainer/Main3DVehicle/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/HBoxContainer/MarginContainer/Main3DVehicle/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/HBoxContainer/MarginContainer/Main3DVehicle/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/HBoxContainer/MarginContainer/Main3DVehicle/MarginContainer/Main3DVehicleInformation/DrivingInformation/MarginContainer"] +layout_mode = 2 +size_flags_horizontal = 8 +size_flags_vertical = 4 +texture = ExtResource("22_m2b4s") + [node name="title2" type="Control" parent="."] visible = false anchors_preset = 0 @@ -2751,6 +3436,7 @@ position = Vector2(2396, 1366) texture = ExtResource("38_w1fsm") [node name="TextureRect" type="TextureRect" parent="."] +visible = false modulate = Color(1, 1, 1, 0.309804) layout_mode = 1 anchors_preset = 15 @@ -2762,4 +3448,16 @@ mouse_filter = 2 texture = ExtResource("1_21tqn") expand_mode = 1 -[connection signal="drag_ended" from="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer5/HSlider" to="MarginContainer/HBoxContainer/RightMenu/VBoxContainer/MarginContainer5/HSlider" method="_on_drag_ended"] +[node name="Control" type="Control" parent="."] +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 + +[connection signal="on_click" from="MarginContainer/HBoxContainer/MarginContainer/DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/3DVehicle" to="MarginContainer" method="OnClick3DVehicle"] +[connection signal="drag_ended" from="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer5/HSlider" to="MarginContainer/HBoxContainer/MarginContainer/DataPanel/RightMenu/VBoxContainer/MarginContainer5/HSlider" method="_on_drag_ended"] +[connection signal="on_click" from="MarginContainer/HBoxContainer/MarginContainer/Main3DVehicle/MarginContainer/Main3DVehicleTexture" to="MarginContainer/HBoxContainer/MarginContainer/Main3DVehicle" method="_on_main_3d_vehicle_texture_on_click"] diff --git a/Robo-Bus-A31-HMI/pad_hmi_ui/Main3DVehicle.gd b/Robo-Bus-A31-HMI/pad_hmi_ui/Main3DVehicle.gd new file mode 100644 index 0000000..c05f7a2 --- /dev/null +++ b/Robo-Bus-A31-HMI/pad_hmi_ui/Main3DVehicle.gd @@ -0,0 +1,24 @@ +extends BaseControl + +@onready var main_3d_vehicle_texture: BaseControl = %Main3DVehicleTexture +@onready var data_panel: HBoxContainer = %DataPanel +@onready var main_3d_vehicle_information: MarginContainer = %Main3DVehicleInformation +@onready var main_3d_vehicle_background: NinePatchRect = %Main3DVehicleBackground + + +func _on_main_3d_vehicle_texture_on_click(_node: Variant) -> void: + main_3d_vehicle_texture.onEnd() + #data_panel.modulate.a = 0 + data_panel.visible = true + data_panel.modulate.a = 1 + main_3d_vehicle_background.modulate.a = 0 + var tween = create_tween() + tween.tween_property(main_3d_vehicle_information, "modulate", Color(1,1,1,0), 0.05) + #tween.tween_property(data_panel, "modulate", Color(1,1,1,1), 0.1) + await get_tree().create_timer(0.3).timeout + visible = false + #tween.set_parallel() + #tween.tween_property(main_3d_vehicle_information, "modulate", Color(1,1,1,1), 0.1) + var tween1 = create_tween() + tween1.tween_property(data_panel, "modulate", Color(1,1,1,1), 0.1) + pass # Replace with function body. diff --git a/Robo-Bus-A31-HMI/pad_hmi_ui/home/map.png b/Robo-Bus-A31-HMI/pad_hmi_ui/home/map.png new file mode 100644 index 0000000..b40efd9 Binary files /dev/null and b/Robo-Bus-A31-HMI/pad_hmi_ui/home/map.png differ diff --git a/Robo-Bus-A31-HMI/pad_hmi_ui/home/map.png.import b/Robo-Bus-A31-HMI/pad_hmi_ui/home/map.png.import new file mode 100644 index 0000000..716cab6 --- /dev/null +++ b/Robo-Bus-A31-HMI/pad_hmi_ui/home/map.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://b2dketby5loag" +path="res://.godot/imported/map.png-25f8d2b28b79266c7cc937e1cc88a043.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://pad_hmi_ui/home/map.png" +dest_files=["res://.godot/imported/map.png-25f8d2b28b79266c7cc937e1cc88a043.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/Robo-Bus-A31-HMI/project.godot b/Robo-Bus-A31-HMI/project.godot index 921c6c5..9b2442b 100644 --- a/Robo-Bus-A31-HMI/project.godot +++ b/Robo-Bus-A31-HMI/project.godot @@ -22,6 +22,10 @@ window/size/viewport_height=1600 window/size/mode=2 window/stretch/mode="canvas_items" +[input_devices] + +pointing/emulate_touch_from_mouse=true + [rendering] renderer/rendering_method="mobile" diff --git a/Robo-Bus-A31-HMI/未标题-1.png b/Robo-Bus-A31-HMI/未标题-1.png new file mode 100644 index 0000000..ef09e39 Binary files /dev/null and b/Robo-Bus-A31-HMI/未标题-1.png differ diff --git a/Robo-Bus-A31-HMI/未标题-1.png.import b/Robo-Bus-A31-HMI/未标题-1.png.import new file mode 100644 index 0000000..3d952da --- /dev/null +++ b/Robo-Bus-A31-HMI/未标题-1.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://pomyaut6jtnm" +path="res://.godot/imported/未标题-1.png-e89f7c987f26cfa35ba9cd9670c598b4.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://未标题-1.png" +dest_files=["res://.godot/imported/未标题-1.png-e89f7c987f26cfa35ba9cd9670c598b4.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1