This commit is contained in:
shurongsen 2024-12-29 14:11:34 +08:00
parent 2c8a25e61d
commit f27abbd0db
49 changed files with 1108 additions and 184 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -7,11 +7,16 @@ extends MarginContainer
func _ready() -> void:
ReviseThrottle(0)
var appPlugin = Engine.get_singleton("AppPlugin")
reduce.on_click.connect(func(node):
ReviseThrottle(-1)
if appPlugin:
appPlugin.ReducePrecision()
)
increase.on_click.connect(func(node):
ReviseThrottle(1)
if appPlugin:
appPlugin.AddingPrecision()
)
pass # Replace with function body.
@ -21,3 +26,36 @@ func ReviseThrottle(value):
throttle_position_label.onScale()
gear_texture_rect.onScale()
throttle_position_label.text = str(speedometer._value)
set_send_VelocityLimit(speedometer._value)
func set_send_VelocityLimit(value):
#var is_engage = bool(int(%engage_HSlider.value + 0.5))
var send_data ={
"op": "advertise",
"type": "tier4_planning_msgs/msg/VelocityLimit",
"topic": "/planning/scenario_planning/max_velocity_default",
}
var send_data_1 = {
"op": "publish",
"topic": "/planning/scenario_planning/max_velocity_default",
"msg": {
"stamp": {
"sec": 0,
"nanosec": 0
},
"max_velocity": value/ 3.6,
"use_constraints": false,
"constraints": {
"min_acceleration": 0.0,
"max_jerk": 0.0,
"min_jerk": 0.0
},
"sender": "test_sender"
}
}
Websocket.send_msg(str(send_data))
await get_tree().create_timer(0.1).timeout
Websocket.send_msg(str(send_data_1))

View File

@ -30,10 +30,29 @@ func connected_to_server():
Steering_Report()
VehicleDoor_Report()
pass
var stations
var zd_data
var zd_index = 0
func message_received(data:Dictionary):
if data.is_empty():return
if !data.has("topic"):return
match data.topic:
"/hmi_input/app/display/all_station_info":#获取所有站点信息
stations = data.msg.stations
zd_data = data.msg.header
for node in %SiteSelectionDetailsList.get_children():#清除数据
node.queue_free()
var index = 0
for item in stations:
var itemLabel = preload("res://Modules/item_label.tscn").instantiate()
itemLabel.text = item.name
itemLabel.index = index
itemLabel.on_click.connect(func(node):
zd_index = node.index
%SiteSelectionTextureRectLabel.text = node.text
)
index += 1
"/hmi_input/pix_robobus/vcu_report1":#大灯信息
if data.msg.headlight_actual:
%Vcu_Report1TextureRect4.texture = preload("res://pad_hmi_ui/home/highbeam_icon.png")
@ -208,7 +227,103 @@ func Vcu_Report1():#车辆大灯
"type": "pix_robobus_driver_msgs/msg/VcuReport1"
}
Websocket.send_msg(str(send_data))
func all_station_info():#所有站点反馈
var send_data = {
"op": "subscribe",
"topic": "/hmi_input/app/display/all_station_info",
"type": "pixmoving_hmi_msgs/msg/V2dAllStationInfo"
}
Websocket.send_msg(str(send_data))
signal OnClick3DVehicle
func _on_d_vehicle_on_click(_node: Variant) -> void:
OnClick3DVehicle.emit()
pass # Replace with function body.
func _on_positioning_on_long_click(_node: Variant) -> void:
if zd_data.is_empty():return
zd_data.stamp.sec = (Time.get_ticks_msec()/1000)
zd_data.stamp.nanosec = Time.get_ticks_msec()
var send_data ={
"op": "advertise",
"type": "geometry_msgs/msg/PoseWithCovarianceStamped",
"topic": "/initialpose",
}
var send_data_1 = {
"op": "publish",
"topic": "/initialpose",
"msg": {
"header": zd_data,
"pose":{
"pose": stations[zd_index].staion_pose,
"covariance": [
0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0
]
}
},
}
#match Global.language_mode:
#"zh":
#%prompt_label.set_value("定位成功!")
#"en":
#%prompt_label.set_value("Successful station location!")
#"ja":
#%prompt_label.set_value("ステーション位置決め成功!")
#_:
#%prompt_label.set_value("定位成功!")
Websocket.send_msg(str(send_data))
await get_tree().create_timer(0.1).timeout
Websocket.send_msg(str(send_data_1))
pass # Replace with function body.
func _on_distribute_on_long_click(_node: Variant) -> void:
if zd_data.is_empty():return
zd_data.stamp.sec = (Time.get_ticks_msec()/1000)
zd_data.stamp.nanosec = Time.get_ticks_msec()
var send_data ={
"op": "advertise",
"type": "geometry_msgs/msg/PoseStamped",
"topic": "/planning/mission_planning/goal",
}
var send_data_1 = {
"op": "publish",
"topic": "/planning/mission_planning/goal",
"msg": {
"header": zd_data,
"pose": stations[zd_index].staion_pose
}
}
print(stations[zd_index].staion_pose)
#match Global.language_mode:
#"zh":
#%prompt_label.set_value("下发成功!")
#"en":
#%prompt_label.set_value("Successful launch of target station!")
#"ja":
#%prompt_label.set_value("駅立ち上げの成功!")
#_:
#%prompt_label.set_value("下发成功!")
#
Websocket.send_msg(str(send_data))
await get_tree().create_timer(0.1).timeout
Websocket.send_msg(str(send_data_1))
pass # Replace with function body.

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=56 format=3 uid="uid://dx5owafvbqdec"]
[gd_scene load_steps=57 format=3 uid="uid://dx5owafvbqdec"]
[ext_resource type="Script" path="res://common/base/base_control.gd" id="1_gebae"]
[ext_resource type="Script" path="res://Modules/data_panel.gd" id="1_h1ywm"]
@ -10,6 +10,7 @@
[ext_resource type="Texture2D" uid="uid://c1ncf47u6ssrd" path="res://pad_hmi_ui/home/arrow_icon_right.png" id="7_tcrvr"]
[ext_resource type="Texture2D" uid="uid://dsoc1dfktnbff" path="res://pad_hmi_ui/home/wheel_icon.png" id="8_1mxjd"]
[ext_resource type="Texture2D" uid="uid://culw8htusm3uk" path="res://pad_hmi_ui/home/online_icon.png" id="9_682iw"]
[ext_resource type="PackedScene" uid="uid://dqimm3efgdqh6" path="res://Modules/prompt_text.tscn" id="10_6oihu"]
[ext_resource type="Texture2D" uid="uid://c50227e2eywuh" path="res://pad_hmi_ui/home/NDK_icon_green.png" id="10_kebty"]
[ext_resource type="Texture2D" uid="uid://dbhtybumdqiml" path="res://pad_hmi_ui/home/auto_icon.png" id="11_7pajr"]
[ext_resource type="Texture2D" uid="uid://b80xeeqwjs1er" path="res://pad_hmi_ui/home/l3_3.png" id="12_5pyxi"]
@ -325,6 +326,9 @@ size_flags_vertical = 4
texture = ExtResource("8_1mxjd")
script = ExtResource("1_gebae")
[node name="PromptText" parent="DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/3DVehicle/3DVehicleInformation" instance=ExtResource("10_6oihu")]
layout_mode = 2
[node name="VehicleInformation" type="MarginContainer" parent="DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay"]
layout_mode = 2
size_flags_horizontal = 3
@ -693,7 +697,8 @@ mouse_filter = 0
texture = ExtResource("26_h2ca6")
script = ExtResource("28_4wyck")
[node name="Label" type="Label" parent="DataPanel/RightMenu/VBoxContainer/MarginContainer3/SiteSelectionTextureRect"]
[node name="SiteSelectionTextureRectLabel" type="Label" parent="DataPanel/RightMenu/VBoxContainer/MarginContainer3/SiteSelectionTextureRect"]
unique_name_in_owner = true
modulate = Color(0.690196, 0.760784, 0.752941, 1)
layout_mode = 1
anchors_preset = 4
@ -729,7 +734,7 @@ layout_mode = 2
theme_override_constants/separation = 33
alignment = 1
[node name="Button" type="Button" parent="DataPanel/RightMenu/VBoxContainer/MarginContainer4/HBoxContainer"]
[node name="positioning" type="Button" parent="DataPanel/RightMenu/VBoxContainer/MarginContainer4/HBoxContainer"]
layout_mode = 2
focus_mode = 0
theme_override_font_sizes/font_size = 32
@ -740,7 +745,7 @@ icon_alignment = 1
script = ExtResource("1_gebae")
is_Scale = true
[node name="Button2" type="Button" parent="DataPanel/RightMenu/VBoxContainer/MarginContainer4/HBoxContainer"]
[node name="Distribute" type="Button" parent="DataPanel/RightMenu/VBoxContainer/MarginContainer4/HBoxContainer"]
layout_mode = 2
focus_mode = 0
theme_override_font_sizes/font_size = 32
@ -867,6 +872,7 @@ follow_viewport_enabled = true
[node name="SiteSelectionDetails" type="Control" parent="."]
unique_name_in_owner = true
visible = false
layout_mode = 2
mouse_filter = 2
@ -892,7 +898,8 @@ theme_override_constants/margin_bottom = 28
script = ExtResource("1_gebae")
styleBox = SubResource("StyleBoxTexture_p77x8")
[node name="VBoxContainer" type="VBoxContainer" parent="SiteSelectionDetails/SiteSelectionScrollContainer/MarginContainer"]
[node name="SiteSelectionDetailsList" type="VBoxContainer" parent="SiteSelectionDetails/SiteSelectionScrollContainer/MarginContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
@ -900,107 +907,10 @@ mouse_filter = 2
theme = SubResource("Theme_f5wb5")
theme_override_constants/separation = 0
[node name="Label" type="Label" parent="SiteSelectionDetails/SiteSelectionScrollContainer/MarginContainer/VBoxContainer"]
modulate = Color(0.690196, 0.760784, 0.752941, 1)
layout_mode = 2
mouse_filter = 1
theme_override_font_sizes/font_size = 28
theme_override_styles/normal = SubResource("StyleBoxEmpty_dyppf")
text = "站点选择"
script = ExtResource("1_gebae")
_pivot_offset = "CENTER_Left"
is_Scale = true
[node name="Label2" type="Label" parent="SiteSelectionDetails/SiteSelectionScrollContainer/MarginContainer/VBoxContainer"]
modulate = Color(0.690196, 0.760784, 0.752941, 1)
layout_mode = 2
mouse_filter = 1
theme_override_font_sizes/font_size = 28
theme_override_styles/normal = SubResource("StyleBoxEmpty_dyppf")
text = "站点选择"
script = ExtResource("1_gebae")
_pivot_offset = "CENTER_Left"
is_Scale = true
[node name="Label3" type="Label" parent="SiteSelectionDetails/SiteSelectionScrollContainer/MarginContainer/VBoxContainer"]
modulate = Color(0.690196, 0.760784, 0.752941, 1)
layout_mode = 2
mouse_filter = 1
theme_override_font_sizes/font_size = 28
theme_override_styles/normal = SubResource("StyleBoxEmpty_dyppf")
text = "站点选择"
script = ExtResource("1_gebae")
_pivot_offset = "CENTER_Left"
is_Scale = true
[node name="Label4" type="Label" parent="SiteSelectionDetails/SiteSelectionScrollContainer/MarginContainer/VBoxContainer"]
modulate = Color(0.690196, 0.760784, 0.752941, 1)
layout_mode = 2
mouse_filter = 1
theme_override_font_sizes/font_size = 28
theme_override_styles/normal = SubResource("StyleBoxEmpty_dyppf")
text = "站点选择"
script = ExtResource("1_gebae")
_pivot_offset = "CENTER_Left"
is_Scale = true
[node name="Label5" type="Label" parent="SiteSelectionDetails/SiteSelectionScrollContainer/MarginContainer/VBoxContainer"]
modulate = Color(0.690196, 0.760784, 0.752941, 1)
layout_mode = 2
mouse_filter = 1
theme_override_font_sizes/font_size = 28
theme_override_styles/normal = SubResource("StyleBoxEmpty_dyppf")
text = "站点选择"
script = ExtResource("1_gebae")
_pivot_offset = "CENTER_Left"
is_Scale = true
[node name="Label6" type="Label" parent="SiteSelectionDetails/SiteSelectionScrollContainer/MarginContainer/VBoxContainer"]
modulate = Color(0.690196, 0.760784, 0.752941, 1)
layout_mode = 2
mouse_filter = 1
theme_override_font_sizes/font_size = 28
theme_override_styles/normal = SubResource("StyleBoxEmpty_dyppf")
text = "站点选择"
script = ExtResource("1_gebae")
_pivot_offset = "CENTER_Left"
is_Scale = true
[node name="Label7" type="Label" parent="SiteSelectionDetails/SiteSelectionScrollContainer/MarginContainer/VBoxContainer"]
modulate = Color(0.690196, 0.760784, 0.752941, 1)
layout_mode = 2
mouse_filter = 1
theme_override_font_sizes/font_size = 28
theme_override_styles/normal = SubResource("StyleBoxEmpty_dyppf")
text = "站点选择"
script = ExtResource("1_gebae")
_pivot_offset = "CENTER_Left"
is_Scale = true
[node name="Label8" type="Label" parent="SiteSelectionDetails/SiteSelectionScrollContainer/MarginContainer/VBoxContainer"]
modulate = Color(0.690196, 0.760784, 0.752941, 1)
layout_mode = 2
mouse_filter = 1
theme_override_font_sizes/font_size = 28
theme_override_styles/normal = SubResource("StyleBoxEmpty_dyppf")
text = "站点选择"
script = ExtResource("1_gebae")
_pivot_offset = "CENTER_Left"
is_Scale = true
[node name="Label9" type="Label" parent="SiteSelectionDetails/SiteSelectionScrollContainer/MarginContainer/VBoxContainer"]
modulate = Color(0.690196, 0.760784, 0.752941, 1)
layout_mode = 2
mouse_filter = 1
theme_override_font_sizes/font_size = 28
theme_override_styles/normal = SubResource("StyleBoxEmpty_dyppf")
text = "站点选择"
script = ExtResource("1_gebae")
_pivot_offset = "CENTER_Left"
is_Scale = true
[connection signal="on_click" from="DataPanel/MediumMenu/VBoxContainer/CarInfoDisplay/3DVehicle" to="." method="_on_d_vehicle_on_click"]
[connection signal="on_click" from="DataPanel/RightMenu/VBoxContainer/MarginContainer3/SiteSelectionTextureRect" to="DataPanel/RightMenu/VBoxContainer/MarginContainer3/SiteSelectionTextureRect" method="_on_on_click"]
[connection signal="on_long_click" from="DataPanel/RightMenu/VBoxContainer/MarginContainer4/HBoxContainer/positioning" to="." method="_on_positioning_on_long_click"]
[connection signal="on_long_click" from="DataPanel/RightMenu/VBoxContainer/MarginContainer4/HBoxContainer/Distribute" to="." method="_on_distribute_on_long_click"]
[connection signal="drag_ended" from="DataPanel/RightMenu/VBoxContainer/MarginContainer5/HSlider" to="DataPanel/RightMenu/VBoxContainer/MarginContainer5/HSlider" method="_on_drag_ended"]
[editable path="DataPanel/RightMenu/VBoxContainer/VolumeSettings"]

View File

@ -0,0 +1,12 @@
extends BaseControl
var index = 0
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass

View File

@ -0,0 +1,18 @@
[gd_scene load_steps=3 format=3 uid="uid://cfj881wj48obt"]
[ext_resource type="Script" path="res://Modules/item_label.gd" id="1_4rfwb"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_dyppf"]
content_margin_left = 58.0
content_margin_top = 20.0
content_margin_right = 58.0
content_margin_bottom = 20.0
[node name="ItemLabel" type="Label"]
modulate = Color(0.690196, 0.760784, 0.752941, 1)
pivot_offset = Vector2(0, 40)
mouse_filter = 1
theme_override_font_sizes/font_size = 28
theme_override_styles/normal = SubResource("StyleBoxEmpty_dyppf")
text = "站点选择"
script = ExtResource("1_4rfwb")

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=12 format=3 uid="uid://tqrf0pcv1bay"]
[gd_scene load_steps=13 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"]
@ -9,6 +9,7 @@
[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"]
[ext_resource type="PackedScene" uid="uid://dqimm3efgdqh6" path="res://Modules/prompt_text.tscn" id="10_i38sf"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_8c5rn"]
shader = ExtResource("3_pmm6i")
@ -223,4 +224,7 @@ size_flags_vertical = 4
texture = ExtResource("9_m3c80")
script = ExtResource("5_wa5ip")
[node name="PromptText" parent="MarginContainer/Main3DVehicleInformation" instance=ExtResource("10_i38sf")]
layout_mode = 2
[connection signal="on_click" from="MarginContainer/Main3DVehicleTexture" to="." method="_on_main_3d_vehicle_texture_on_click"]

View File

@ -157,10 +157,10 @@ texture = ExtResource("4_d48gs")
[node name="GearTextureRect" type="TextureRect" parent="Speedometer"]
layout_mode = 0
offset_left = 84.0023
offset_top = 352.991
offset_right = 118.002
offset_bottom = 386.991
offset_left = 84.0014
offset_top = 352.995
offset_right = 118.001
offset_bottom = 386.995
pivot_offset = Vector2(17, 17)
texture = ExtResource("5_qnams")
script = ExtResource("7_smylr")

View File

@ -0,0 +1,11 @@
extends MarginContainer
@onready var label: Label = %Label
@onready var texture_rect: TextureRect = %TextureRect
var text = ""
var texture = null
func _physics_process(delta: float) -> void:
label.text = text
texture_rect.visible = texture_rect.texture != null
texture_rect.texture = texture
pass

View File

@ -0,0 +1,42 @@
[gd_scene load_steps=4 format=3 uid="uid://dqimm3efgdqh6"]
[ext_resource type="Script" path="res://Modules/prompt_text.gd" id="1_ilh1x"]
[ext_resource type="Script" path="res://common/base/base_control.gd" id="2_ceptd"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_g2fst"]
bg_color = Color(0.164706, 0.137255, 0.247059, 1)
corner_radius_top_left = 80
corner_radius_top_right = 80
corner_radius_bottom_right = 80
corner_radius_bottom_left = 80
[node name="PromptText" type="MarginContainer"]
size_flags_horizontal = 4
size_flags_vertical = 0
theme_override_constants/margin_top = 100
script = ExtResource("1_ilh1x")
[node name="MarginContainer" type="MarginContainer" parent="."]
layout_mode = 2
theme_override_constants/margin_left = 20
theme_override_constants/margin_top = 10
theme_override_constants/margin_right = 20
theme_override_constants/margin_bottom = 10
script = ExtResource("2_ceptd")
styleBox = SubResource("StyleBoxFlat_g2fst")
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer"]
layout_mode = 2
theme_override_constants/separation = 20
[node name="TextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
[node name="Label" type="Label" parent="MarginContainer/HBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
theme_override_font_sizes/font_size = 30
text = "提示文本"

View File

@ -6,7 +6,6 @@ var is_visible = true:
await get_tree().create_timer(0.5).timeout
is_visible = true
func _on_on_click(_node: Variant) -> void:
print(is_visible)
if is_visible:
%SiteSelectionDetails.visible = true
is_visible = false

View File

@ -19,4 +19,31 @@ func _on_drag_ended(value_changed: bool) -> void:
else:
var tween = get_tree().create_tween()
tween.tween_property(self, "value", 0, 0.1)
var is_engage = bool(int((value*0.01) + 0.5))
send_ended(is_engage)
pass # Replace with function body.
func send_ended(is_engage):
%engage_HSlider.value = int(is_engage)
var send_data ={
"op": "advertise",
"type": "geometry_msgs/msg/PoseStamped",
"topic": "/planning/mission_planning/goal",
}
var send_data_1 = {
"op": "publish",
"topic": "/autoware/engage",
"msg": {
"stamp": {
"sec": int(Time.get_ticks_msec()/1000), # 系统时间 秒
"nanosec": int(Time.get_ticks_msec()) # 系统时间 纳秒
},
"engage": is_engage # True or False, depending on your test case
}
}
Websocket.send_msg(str(send_data))
await get_tree().create_timer(0.1).timeout
Websocket.send_msg(str(send_data_1))
pass # Replace with function body.

View File

@ -52,7 +52,6 @@ grow_horizontal = 2
grow_vertical = 2
metadata/_edit_horizontal_guides_ = [1600.0, 42.0, 1561.0]
metadata/_edit_vertical_guides_ = [2560.0, 30.0, 2491.0, 1443.0, 1758.0, 270.0]
metadata/_edit_use_anchors_ = true
[node name="EgoVehicle" parent="." instance=ExtResource("13_tjeco")]

View File

@ -0,0 +1,3 @@
[folding]
sections_unfolded=PackedStringArray()

View File

@ -8,7 +8,7 @@ Anim={
"grid_snap_active": false,
"grid_step": Vector2(8, 8),
"grid_visibility": 1,
"ofs": Vector2(-98.9725, -27.3074),
"ofs": Vector2(196.355, -88.5674),
"primary_grid_step": Vector2i(8, 8),
"show_group_gizmos": true,
"show_guides": true,
@ -34,7 +34,7 @@ Anim={
"snap_rotation_step": 0.261799,
"snap_scale": false,
"snap_scale_step": 0.1,
"zoom": 0.297302
"zoom": 0.749154
}
3D={
"fov": 70.01,
@ -175,4 +175,4 @@ Anim={
"zfar": 4000.01,
"znear": 0.05
}
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@16894/@Panel@13/@VBoxContainer@14/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@25/DockVSplitCenter/@VSplitContainer@52/@VBoxContainer@53/@PanelContainer@98/MainScreen/@CanvasItemEditor@9280/@VSplitContainer@9102/@HSplitContainer@9104/@HSplitContainer@9106/@Control@9107/@SubViewportContainer@9108/@SubViewport@9109/Control/MarginContainer/HBoxContainer/MarginContainer/DataPanel")])
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@16894/@Panel@13/@VBoxContainer@14/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@25/DockVSplitCenter/@VSplitContainer@52/@VBoxContainer@53/@PanelContainer@98/MainScreen/@CanvasItemEditor@9280/@VSplitContainer@9102/@HSplitContainer@9104/@HSplitContainer@9106/@Control@9107/@SubViewportContainer@9108/@SubViewport@9109/ItemLabel")])

View File

@ -1,5 +1,5 @@
[folding]
node_unfolds=[NodePath("."), PackedStringArray("Layout"), NodePath("TextureRect2"), PackedStringArray("Visibility", "Layout"), NodePath("MarginContainer"), PackedStringArray("Layout", "Theme Overrides"), NodePath("MarginContainer/HBoxContainer"), PackedStringArray("Layout", "Theme Overrides"), NodePath("MarginContainer/HBoxContainer/Title"), PackedStringArray("Layout", "Theme Overrides"), NodePath("MarginContainer/HBoxContainer/Title/PixLogo"), PackedStringArray("Layout"), NodePath("MarginContainer/HBoxContainer/Title/VBoxContainer"), PackedStringArray("Layout", "Theme Overrides"), NodePath("MarginContainer/HBoxContainer/Title/VBoxContainer/VBoxContainer"), PackedStringArray("Layout", "Theme Overrides"), NodePath("MarginContainer/HBoxContainer/Title/VBoxContainer/VBoxContainer/Button"), PackedStringArray("Layout", "Theme Overrides", "BiDi"), NodePath("MarginContainer/HBoxContainer/Title/VBoxContainer/VBoxContainer/Button2"), PackedStringArray("Layout", "Theme Overrides", "BiDi"), NodePath("MarginContainer/HBoxContainer/Title/VBoxContainer/VBoxContainer/Button3"), PackedStringArray("Layout", "Theme Overrides", "BiDi"), NodePath("MarginContainer/HBoxContainer/Title/VBoxContainer/ShutdownIsScale"), PackedStringArray("Layout"), NodePath("MarginContainer/HBoxContainer/Title/Tabs"), PackedStringArray("Layout"), NodePath("MarginContainer/HBoxContainer/MarginContainer"), PackedStringArray("Layout"), NodePath("MarginContainer/HBoxContainer/MarginContainer/DataPanel"), PackedStringArray("Layout"), NodePath("MarginContainer/HBoxContainer/MarginContainer/Main3DVehicle"), PackedStringArray("Visibility", "Layout"), NodePath("MarginContainer/HBoxContainer/MarginContainer/Information"), PackedStringArray("Visibility", "Layout"), NodePath("MarginContainer/HBoxContainer/MarginContainer/Setting"), PackedStringArray("Visibility", "Layout", "Layout/Transform", "Theme Overrides", "Theme Overrides/constants"), NodePath("TextureRect"), PackedStringArray("Visibility", "Layout", "Mouse"), NodePath("Control"), PackedStringArray("Visibility", "Layout", "Mouse")]
node_unfolds=[NodePath("."), PackedStringArray("Layout", "Localization", "Tooltip", "Layout/Transform"), NodePath("TextureRect2"), PackedStringArray("Visibility", "Layout"), NodePath("MarginContainer"), PackedStringArray("Layout", "Theme Overrides"), NodePath("MarginContainer/HBoxContainer"), PackedStringArray("Layout", "Theme Overrides"), NodePath("MarginContainer/HBoxContainer/Title"), PackedStringArray("Layout", "Theme Overrides"), NodePath("MarginContainer/HBoxContainer/Title/PixLogo"), PackedStringArray("Layout"), NodePath("MarginContainer/HBoxContainer/Title/VBoxContainer"), PackedStringArray("Layout", "Theme Overrides"), NodePath("MarginContainer/HBoxContainer/Title/VBoxContainer/VBoxContainer"), PackedStringArray("Layout", "Theme Overrides"), NodePath("MarginContainer/HBoxContainer/Title/VBoxContainer/VBoxContainer/Button"), PackedStringArray("Layout", "Theme Overrides", "BiDi"), NodePath("MarginContainer/HBoxContainer/Title/VBoxContainer/VBoxContainer/Button2"), PackedStringArray("Layout", "Theme Overrides", "BiDi"), NodePath("MarginContainer/HBoxContainer/Title/VBoxContainer/VBoxContainer/Button3"), PackedStringArray("Layout", "Theme Overrides", "BiDi"), NodePath("MarginContainer/HBoxContainer/Title/VBoxContainer/ShutdownIsScale"), PackedStringArray("Layout"), NodePath("MarginContainer/HBoxContainer/Title/Tabs"), PackedStringArray("Layout"), NodePath("MarginContainer/HBoxContainer/MarginContainer"), PackedStringArray("Layout"), NodePath("MarginContainer/HBoxContainer/MarginContainer/DataPanel"), PackedStringArray("Layout"), NodePath("MarginContainer/HBoxContainer/MarginContainer/Main3DVehicle"), PackedStringArray("Visibility", "Layout"), NodePath("MarginContainer/HBoxContainer/MarginContainer/Information"), PackedStringArray("Visibility", "Layout"), NodePath("MarginContainer/HBoxContainer/MarginContainer/Setting"), PackedStringArray("Visibility", "Layout", "Layout/Transform", "Theme Overrides", "Theme Overrides/constants"), NodePath("TextureRect"), PackedStringArray("Visibility", "Layout", "Mouse"), NodePath("Control"), PackedStringArray("Visibility", "Layout", "Mouse")]
resource_unfolds=["res://control.tscn::StyleBoxFlat_kh08u", PackedStringArray("Resource"), "res://control.tscn::StyleBoxTexture_mkgnk", PackedStringArray("Resource"), "res://control.tscn::StyleBoxFlat_46du7", PackedStringArray("Resource", "Content Margins", "Corner Radius"), "res://control.tscn::StyleBoxFlat_78bhk", PackedStringArray("Resource", "Content Margins", "Corner Radius")]
nodes_folded=[]

View File

@ -1,2 +1,7 @@
TextureRect
MarginContainer
Label
HBoxContainer
BaseControl
CanvasLayer
Control

View File

@ -8,7 +8,7 @@ Anim={
"grid_snap_active": false,
"grid_step": Vector2(8, 8),
"grid_visibility": 1,
"ofs": Vector2(-359.67, 100.211),
"ofs": Vector2(-213.361, -22.2995),
"primary_grid_step": Vector2i(8, 8),
"show_group_gizmos": true,
"show_guides": true,
@ -34,7 +34,7 @@ Anim={
"snap_rotation_step": 0.261799,
"snap_scale": false,
"snap_scale_step": 0.1,
"zoom": 0.420448
"zoom": 0.353553
}
3D={
"fov": 70.01,
@ -175,4 +175,4 @@ Anim={
"zfar": 4000.01,
"znear": 0.05
}
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@16894/@Panel@13/@VBoxContainer@14/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@25/DockVSplitCenter/@VSplitContainer@52/@VBoxContainer@53/@PanelContainer@98/MainScreen/@CanvasItemEditor@9280/@VSplitContainer@9102/@HSplitContainer@9104/@HSplitContainer@9106/@Control@9107/@SubViewportContainer@9108/@SubViewport@9109/DataPanel/DataPanel/MediumMenu/VBoxContainer/HBoxContainer2/mapTextureRect")])
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@16894/@Panel@13/@VBoxContainer@14/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@25/DockVSplitCenter/@VSplitContainer@52/@VBoxContainer@53/@PanelContainer@98/MainScreen/@CanvasItemEditor@9280/@VSplitContainer@9102/@HSplitContainer@9104/@HSplitContainer@9106/@Control@9107/@SubViewportContainer@9108/@SubViewport@9109/ItemLabel")])

View File

@ -6,10 +6,10 @@ dock_5_selected_tab_idx=0
dock_floating={}
dock_bottom=[]
dock_closed=[]
dock_split_2=0
dock_split_2=-76
dock_split_3=0
dock_hsplit_1=0
dock_hsplit_2=540
dock_hsplit_2=639
dock_hsplit_3=-540
dock_hsplit_4=0
dock_filesystem_h_split_offset=480
@ -17,26 +17,26 @@ dock_filesystem_v_split_offset=0
dock_filesystem_display_mode=0
dock_filesystem_file_sort=0
dock_filesystem_file_list_display_mode=1
dock_filesystem_selected_paths=PackedStringArray("res://control.tscn")
dock_filesystem_uncollapsed_paths=PackedStringArray("Favorites", "res://")
dock_filesystem_selected_paths=PackedStringArray("res://")
dock_filesystem_uncollapsed_paths=PackedStringArray("Favorites", "res://", "res://Vehicle/", "res://pad_hmi_ui/taskbar/", "res://pad_hmi_ui/setting/", "res://pad_hmi_ui/information/", "res://pad_hmi_ui/home/", "res://Modules/")
dock_3="Scene,Import"
dock_4="FileSystem"
dock_5="Inspector,Node,History"
[EditorNode]
open_scenes=PackedStringArray("res://Modules/data_panel.tscn", "res://control.tscn", "res://Modules/main_3d_vehicle.tscn", "res://Modules/setting.tscn")
open_scenes=PackedStringArray("res://control.tscn", "res://Modules/main_3d_vehicle.tscn", "res://Modules/setting.tscn", "res://Modules/margin_container_2.tscn", "res://Modules/data_panel.tscn", "res://Modules/item_label.tscn", "res://Modules/prompt_text.tscn")
current_scene="res://Modules/data_panel.tscn"
center_split_offset=0
center_split_offset=-491
selected_default_debugger_tab_idx=0
selected_main_editor_idx=0
selected_bottom_panel_item=0
[ScriptEditor]
open_scripts=["res://common/base/base_control.gd", "res://Modules/data_panel.gd", "res://res3D/ego_vehicle.gd", "res://pad_hmi_ui/Main3DVehicle.gd", "res://code/main.gd", "res://Modules/site_selection_texture_rect.gd"]
selected_script="res://code/main.gd"
open_help=["@GlobalScope", "CanvasItem", "InputEventMouseButton"]
open_scripts=["res://common/base/base_control.gd", "res://Modules/data_panel.gd", "res://res3D/ego_vehicle.gd", "res://code/hsliderPor.gd", "res://Modules/item_label.gd", "res://pad_hmi_ui/Main3DVehicle.gd", "res://code/main.gd", "res://Modules/prompt_text.gd", "res://Modules/site_selection_texture_rect.gd", "res://Modules/SpeedGearAdjustment.gd", "res://code/speedometer.gd"]
selected_script="res://code/hsliderPor.gd"
open_help=["@GlobalScope", "CanvasItem", "InputEventMouseButton", "Label"]
script_split_offset=140
list_split_offset=0
zoom_factor=1.0

File diff suppressed because one or more lines are too long

View File

@ -1,9 +1,8 @@
res://Modules/data_panel.tscn
res://Modules/data_panel.gd
res://res3D/mainEnvironment.tres
res://code/main.gd
res://control.tscn
res://pad_hmi_ui/Main3DVehicle.gd
res://res3D/mainEnvironment.tres
res://Modules/main_3d_vehicle.tscn
res://Modules/setting.tscn
res://Modules/site_selection_texture_rect.gd
res://Modules/margin_container_2.tscn
res://Modules/data_panel.tscn
res://Modules/item_label.tscn
res://Modules/prompt_text.tscn

View File

@ -0,0 +1,3 @@
[folding]
sections_unfolded=PackedStringArray()

View File

@ -0,0 +1,3 @@
[folding]
sections_unfolded=PackedStringArray()

View File

@ -0,0 +1,178 @@
[editor_states]
Anim={
"visible": false
}
2D={
"grid_offset": Vector2(0, 0),
"grid_snap_active": false,
"grid_step": Vector2(8, 8),
"grid_visibility": 1,
"ofs": Vector2(-370.527, -274.1),
"primary_grid_step": Vector2i(8, 8),
"show_group_gizmos": true,
"show_guides": true,
"show_helpers": false,
"show_lock_gizmos": true,
"show_origin": true,
"show_position_gizmos": true,
"show_rulers": true,
"show_transformation_gizmos": true,
"show_viewport": true,
"show_zoom_control": true,
"smart_snap_active": false,
"snap_guides": true,
"snap_node_anchors": true,
"snap_node_center": true,
"snap_node_parent": true,
"snap_node_sides": true,
"snap_other_nodes": true,
"snap_pixel": true,
"snap_relative": false,
"snap_rotation": false,
"snap_rotation_offset": 0.0,
"snap_rotation_step": 0.261799,
"snap_scale": false,
"snap_scale_step": 0.1,
"zoom": 0.707107
}
3D={
"fov": 70.01,
"gizmos_status": {
"AudioListener3D": 0,
"AudioStreamPlayer3D": 0,
"CPUParticles3D": 0,
"CSGShape3D": 0,
"Camera3D": 0,
"CollisionObject3D": 0,
"CollisionPolygon3D": 0,
"CollisionShape3D": 0,
"Decal": 0,
"FogVolume": 0,
"GPUParticles3D": 0,
"GPUParticlesCollision3D": 0,
"Joint3D": 0,
"Light3D": 0,
"LightmapGI": 0,
"LightmapProbe": 0,
"Marker3D": 0,
"MeshInstance3DCustomAABB": 0,
"NavigationLink3D": 0,
"NavigationRegion3D": 0,
"OccluderInstance3D": 0,
"Path3D": 0,
"PhysicalBone3D": 0,
"RayCast3D": 0,
"ReflectionProbe": 0,
"ShapeCast3D": 0,
"Skeleton3D": 0,
"SoftBody3D": 0,
"SpringArm3D": 0,
"VehicleWheel3D": 0,
"VisibleOnScreenNotifier3D": 0,
"VoxelGI": 0
},
"local_coords": false,
"preview_sun_env": {
"environ_ao_enabled": false,
"environ_enabled": true,
"environ_energy": 1.0,
"environ_gi_enabled": false,
"environ_glow_enabled": true,
"environ_ground_color": Color(0.2, 0.169, 0.133, 1),
"environ_sky_color": Color(0.385, 0.454, 0.55, 1),
"environ_tonemap_enabled": true,
"sun_color": Color(1, 1, 1, 1),
"sun_enabled": true,
"sun_energy": 1.0,
"sun_max_distance": 100.0,
"sun_rotation": Vector2(-1.0472, 2.61799)
},
"rotate_snap": 15.0,
"scale_snap": 10.0,
"show_grid": true,
"show_origin": true,
"snap_enabled": false,
"translate_snap": 1.0,
"viewport_mode": 1,
"viewports": [{
"auto_orthogonal": false,
"auto_orthogonal_enabled": true,
"cinematic_preview": false,
"display_mode": 21,
"distance": 4.0,
"doppler": false,
"frame_time": false,
"gizmos": true,
"half_res": false,
"information": false,
"listener": true,
"lock_rotation": false,
"orthogonal": false,
"position": Vector3(0, 0, 0),
"use_environment": false,
"view_type": 0,
"x_rotation": 0.5,
"y_rotation": -0.5
}, {
"auto_orthogonal": false,
"auto_orthogonal_enabled": true,
"cinematic_preview": false,
"display_mode": 21,
"distance": 4.0,
"doppler": false,
"frame_time": false,
"gizmos": true,
"half_res": false,
"information": false,
"listener": false,
"lock_rotation": false,
"orthogonal": false,
"position": Vector3(0, 0, 0),
"use_environment": false,
"view_type": 0,
"x_rotation": 0.5,
"y_rotation": -0.5
}, {
"auto_orthogonal": false,
"auto_orthogonal_enabled": true,
"cinematic_preview": false,
"display_mode": 21,
"distance": 4.0,
"doppler": false,
"frame_time": false,
"gizmos": true,
"half_res": false,
"information": false,
"listener": false,
"lock_rotation": false,
"orthogonal": false,
"position": Vector3(0, 0, 0),
"use_environment": false,
"view_type": 0,
"x_rotation": 0.5,
"y_rotation": -0.5
}, {
"auto_orthogonal": false,
"auto_orthogonal_enabled": true,
"cinematic_preview": false,
"display_mode": 21,
"distance": 4.0,
"doppler": false,
"frame_time": false,
"gizmos": true,
"half_res": false,
"information": false,
"listener": false,
"lock_rotation": false,
"orthogonal": false,
"position": Vector3(0, 0, 0),
"use_environment": false,
"view_type": 0,
"x_rotation": 0.5,
"y_rotation": -0.5
}],
"zfar": 4000.01,
"znear": 0.05
}
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@16894/@Panel@13/@VBoxContainer@14/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@25/DockVSplitCenter/@VSplitContainer@52/@VBoxContainer@53/@PanelContainer@98/MainScreen/@CanvasItemEditor@9280/@VSplitContainer@9102/@HSplitContainer@9104/@HSplitContainer@9106/@Control@9107/@SubViewportContainer@9108/@SubViewport@9109/ItemLabel")])

View File

@ -0,0 +1,5 @@
[folding]
node_unfolds=[]
resource_unfolds=["res://Modules/item_label.tscn::StyleBoxEmpty_dyppf", PackedStringArray()]
nodes_folded=[]

View File

@ -8,7 +8,7 @@ Anim={
"grid_snap_active": false,
"grid_step": Vector2(8, 8),
"grid_visibility": 1,
"ofs": Vector2(-180, -125),
"ofs": Vector2(-41.3935, -268.964),
"primary_grid_step": Vector2i(8, 8),
"show_group_gizmos": true,
"show_guides": true,
@ -34,7 +34,7 @@ Anim={
"snap_rotation_step": 0.261799,
"snap_scale": false,
"snap_scale_step": 0.1,
"zoom": 0.25
"zoom": 0.471937
}
3D={
"fov": 70.01,
@ -175,4 +175,4 @@ Anim={
"zfar": 4000.01,
"znear": 0.05
}
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@16894/@Panel@13/@VBoxContainer@14/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@25/DockVSplitCenter/@VSplitContainer@52/@VBoxContainer@53/@PanelContainer@98/MainScreen/@CanvasItemEditor@9280/@VSplitContainer@9102/@HSplitContainer@9104/@HSplitContainer@9106/@Control@9107/@SubViewportContainer@9108/@SubViewport@9109/Control/MarginContainer/HBoxContainer/MarginContainer/DataPanel")])
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@16894/@Panel@13/@VBoxContainer@14/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@25/DockVSplitCenter/@VSplitContainer@52/@VBoxContainer@53/@PanelContainer@98/MainScreen/@CanvasItemEditor@9280/@VSplitContainer@9102/@HSplitContainer@9104/@HSplitContainer@9106/@Control@9107/@SubViewportContainer@9108/@SubViewport@9109/ItemLabel")])

View File

@ -2,4 +2,4 @@
node_unfolds=[NodePath("."), PackedStringArray("Layout"), NodePath("Main3DVehicleBackground"), PackedStringArray("Layout", "Patch Margin"), NodePath("MarginContainer"), PackedStringArray("Layout", "Theme Overrides"), NodePath("MarginContainer/Main3DVehicleTexture"), PackedStringArray("Material"), NodePath("MarginContainer/Main3DVehicleTexture/PretendMain3DVehicleInformation"), PackedStringArray("Visibility", "Layout", "Mouse"), NodePath("MarginContainer/Main3DVehicleTexture/PretendMain3DVehicleInformation/Label"), PackedStringArray("Layout", "Theme Overrides"), NodePath("MarginContainer/Main3DVehicleTexture/PretendMain3DVehicleInformation/TrafficLight"), PackedStringArray("Layout", "Theme Overrides"), NodePath("MarginContainer/Main3DVehicleTexture/PretendMain3DVehicleInformation/TrafficLight/TextureRect2"), PackedStringArray("Layout"), NodePath("MarginContainer/Main3DVehicleTexture/PretendMain3DVehicleInformation/DrivingInformation"), PackedStringArray("Layout", "Theme Overrides"), NodePath("MarginContainer/Main3DVehicleTexture/PretendMain3DVehicleInformation/DrivingInformation/TextureRect"), PackedStringArray("Layout"), NodePath("MarginContainer/Main3DVehicleTexture/PretendMain3DVehicleInformation/DrivingInformation/MarginContainer"), PackedStringArray("Layout", "Theme Overrides"), NodePath("MarginContainer/Main3DVehicleTexture/PretendMain3DVehicleInformation/DrivingInformation/MarginContainer/Steering"), PackedStringArray("Layout"), NodePath("MarginContainer/Main3DVehicleTexture/PretendMain3DVehicleInformation/DrivingInformation/MarginContainer/VBoxContainer"), PackedStringArray("Layout", "Theme Overrides"), NodePath("MarginContainer/Main3DVehicleTexture/PretendMain3DVehicleInformation/DrivingInformation/MarginContainer/VBoxContainer/Speed"), PackedStringArray("Layout", "Theme Overrides"), NodePath("MarginContainer/Main3DVehicleTexture/PretendMain3DVehicleInformation/DrivingInformation/MarginContainer/VBoxContainer/SpeedUnit"), PackedStringArray("Layout", "Theme Overrides"), NodePath("MarginContainer/Main3DVehicleTexture/PretendMain3DVehicleInformation/DrivingInformation/MarginContainer/SteeringWheel"), PackedStringArray("Layout"), NodePath("MarginContainer/Main3DVehicleInformation"), PackedStringArray("Layout", "Mouse"), NodePath("MarginContainer/Main3DVehicleInformation/Label"), PackedStringArray("Layout", "Theme Overrides"), NodePath("MarginContainer/Main3DVehicleInformation/TrafficLight"), PackedStringArray("Layout", "Theme Overrides"), NodePath("MarginContainer/Main3DVehicleInformation/TrafficLight/TrafficLight"), PackedStringArray("Layout"), NodePath("MarginContainer/Main3DVehicleInformation/DrivingInformation"), PackedStringArray("Layout", "Theme Overrides"), NodePath("MarginContainer/Main3DVehicleInformation/DrivingInformation/TextureRect"), PackedStringArray("Layout"), NodePath("MarginContainer/Main3DVehicleInformation/DrivingInformation/MarginContainer"), PackedStringArray("Layout", "Theme Overrides"), NodePath("MarginContainer/Main3DVehicleInformation/DrivingInformation/MarginContainer/Steering"), PackedStringArray("Layout"), NodePath("MarginContainer/Main3DVehicleInformation/DrivingInformation/MarginContainer/VBoxContainer"), PackedStringArray("Layout", "Theme Overrides"), NodePath("MarginContainer/Main3DVehicleInformation/DrivingInformation/MarginContainer/VBoxContainer/Speed"), PackedStringArray("Layout", "Theme Overrides"), NodePath("MarginContainer/Main3DVehicleInformation/DrivingInformation/MarginContainer/VBoxContainer/SpeedUnit"), PackedStringArray("Layout", "Theme Overrides"), NodePath("MarginContainer/Main3DVehicleInformation/DrivingInformation/MarginContainer/SteeringWheel"), PackedStringArray("Layout")]
resource_unfolds=["res://Modules/main_3d_vehicle.tscn::ShaderMaterial_8c5rn", PackedStringArray("Resource", "Shader Parameters"), "res://Modules/main_3d_vehicle.tscn::StyleBoxEmpty_j2i4v", PackedStringArray("Resource", "Content Margins")]
nodes_folded=[]
nodes_folded=[NodePath("MarginContainer/Main3DVehicleInformation/TrafficLight"), NodePath("MarginContainer/Main3DVehicleInformation/DrivingInformation")]

View File

@ -0,0 +1,178 @@
[editor_states]
Anim={
"visible": false
}
2D={
"grid_offset": Vector2(0, 0),
"grid_snap_active": false,
"grid_step": Vector2(8, 8),
"grid_visibility": 1,
"ofs": Vector2(-193, -169),
"primary_grid_step": Vector2i(8, 8),
"show_group_gizmos": true,
"show_guides": true,
"show_helpers": false,
"show_lock_gizmos": true,
"show_origin": true,
"show_position_gizmos": true,
"show_rulers": true,
"show_transformation_gizmos": true,
"show_viewport": true,
"show_zoom_control": true,
"smart_snap_active": false,
"snap_guides": true,
"snap_node_anchors": true,
"snap_node_center": true,
"snap_node_parent": true,
"snap_node_sides": true,
"snap_other_nodes": true,
"snap_pixel": true,
"snap_relative": false,
"snap_rotation": false,
"snap_rotation_offset": 0.0,
"snap_rotation_step": 0.261799,
"snap_scale": false,
"snap_scale_step": 0.1,
"zoom": 0.5
}
3D={
"fov": 70.01,
"gizmos_status": {
"AudioListener3D": 0,
"AudioStreamPlayer3D": 0,
"CPUParticles3D": 0,
"CSGShape3D": 0,
"Camera3D": 0,
"CollisionObject3D": 0,
"CollisionPolygon3D": 0,
"CollisionShape3D": 0,
"Decal": 0,
"FogVolume": 0,
"GPUParticles3D": 0,
"GPUParticlesCollision3D": 0,
"Joint3D": 0,
"Light3D": 0,
"LightmapGI": 0,
"LightmapProbe": 0,
"Marker3D": 0,
"MeshInstance3DCustomAABB": 0,
"NavigationLink3D": 0,
"NavigationRegion3D": 0,
"OccluderInstance3D": 0,
"Path3D": 0,
"PhysicalBone3D": 0,
"RayCast3D": 0,
"ReflectionProbe": 0,
"ShapeCast3D": 0,
"Skeleton3D": 0,
"SoftBody3D": 0,
"SpringArm3D": 0,
"VehicleWheel3D": 0,
"VisibleOnScreenNotifier3D": 0,
"VoxelGI": 0
},
"local_coords": false,
"preview_sun_env": {
"environ_ao_enabled": false,
"environ_enabled": true,
"environ_energy": 1.0,
"environ_gi_enabled": false,
"environ_glow_enabled": true,
"environ_ground_color": Color(0.2, 0.169, 0.133, 1),
"environ_sky_color": Color(0.385, 0.454, 0.55, 1),
"environ_tonemap_enabled": true,
"sun_color": Color(1, 1, 1, 1),
"sun_enabled": true,
"sun_energy": 1.0,
"sun_max_distance": 100.0,
"sun_rotation": Vector2(-1.0472, 2.61799)
},
"rotate_snap": 15.0,
"scale_snap": 10.0,
"show_grid": true,
"show_origin": true,
"snap_enabled": false,
"translate_snap": 1.0,
"viewport_mode": 1,
"viewports": [{
"auto_orthogonal": false,
"auto_orthogonal_enabled": true,
"cinematic_preview": false,
"display_mode": 21,
"distance": 4.0,
"doppler": false,
"frame_time": false,
"gizmos": true,
"half_res": false,
"information": false,
"listener": true,
"lock_rotation": false,
"orthogonal": false,
"position": Vector3(0, 0, 0),
"use_environment": false,
"view_type": 0,
"x_rotation": 0.5,
"y_rotation": -0.5
}, {
"auto_orthogonal": false,
"auto_orthogonal_enabled": true,
"cinematic_preview": false,
"display_mode": 21,
"distance": 4.0,
"doppler": false,
"frame_time": false,
"gizmos": true,
"half_res": false,
"information": false,
"listener": false,
"lock_rotation": false,
"orthogonal": false,
"position": Vector3(0, 0, 0),
"use_environment": false,
"view_type": 0,
"x_rotation": 0.5,
"y_rotation": -0.5
}, {
"auto_orthogonal": false,
"auto_orthogonal_enabled": true,
"cinematic_preview": false,
"display_mode": 21,
"distance": 4.0,
"doppler": false,
"frame_time": false,
"gizmos": true,
"half_res": false,
"information": false,
"listener": false,
"lock_rotation": false,
"orthogonal": false,
"position": Vector3(0, 0, 0),
"use_environment": false,
"view_type": 0,
"x_rotation": 0.5,
"y_rotation": -0.5
}, {
"auto_orthogonal": false,
"auto_orthogonal_enabled": true,
"cinematic_preview": false,
"display_mode": 21,
"distance": 4.0,
"doppler": false,
"frame_time": false,
"gizmos": true,
"half_res": false,
"information": false,
"listener": false,
"lock_rotation": false,
"orthogonal": false,
"position": Vector3(0, 0, 0),
"use_environment": false,
"view_type": 0,
"x_rotation": 0.5,
"y_rotation": -0.5
}],
"zfar": 4000.01,
"znear": 0.05
}
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@16894/@Panel@13/@VBoxContainer@14/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@25/DockVSplitCenter/@VSplitContainer@52/@VBoxContainer@53/@PanelContainer@98/MainScreen/@CanvasItemEditor@9280/@VSplitContainer@9102/@HSplitContainer@9104/@HSplitContainer@9106/@Control@9107/@SubViewportContainer@9108/@SubViewport@9109/ItemLabel")])

View File

@ -0,0 +1,5 @@
[folding]
node_unfolds=[NodePath("."), PackedStringArray("Layout", "Theme Overrides"), NodePath("Speedometer"), PackedStringArray("Material", "Layout", "Radial Fill", "Textures"), NodePath("Speedometer/TextureRect"), PackedStringArray("Layout"), NodePath("Speedometer/TextureRect2"), PackedStringArray("Visibility", "Layout"), NodePath("Speedometer/GearTextureRect"), PackedStringArray("Layout"), NodePath("Speedometer/HBoxContainer"), PackedStringArray("Layout", "Theme Overrides"), NodePath("Speedometer/HBoxContainer/Reduce"), PackedStringArray("Layout"), NodePath("Speedometer/HBoxContainer/Increase"), PackedStringArray("Layout"), NodePath("Speedometer/Path2D/PathFollow2D"), PackedStringArray("Transform"), NodePath("VBoxContainer2"), PackedStringArray("Layout", "Theme Overrides"), NodePath("VBoxContainer2/VBoxContainer"), PackedStringArray("Layout", "Theme Overrides"), NodePath("VBoxContainer2/VBoxContainer/HBoxContainer"), PackedStringArray("Layout", "Theme Overrides"), NodePath("VBoxContainer2/VBoxContainer/HBoxContainer/ThrottlePositionLabel"), PackedStringArray("Layout", "Theme Overrides", "BiDi"), NodePath("VBoxContainer2/VBoxContainer/HBoxContainer/Label2"), PackedStringArray("Visibility", "Layout", "Theme Overrides"), NodePath("VBoxContainer2/VBoxContainer/HBoxContainer/Label3"), PackedStringArray("Visibility", "Layout", "Theme Overrides"), NodePath("VBoxContainer2/VBoxContainer/Label"), PackedStringArray("Visibility", "Layout", "Theme Overrides"), NodePath("VBoxContainer2/MarginContainer"), PackedStringArray("Layout"), NodePath("VBoxContainer2/MarginContainer/TextureRect"), PackedStringArray("Layout"), NodePath("VBoxContainer2/MarginContainer/HBoxContainer"), PackedStringArray("Layout", "Theme Overrides"), NodePath("VBoxContainer2/MarginContainer/HBoxContainer/TextureRect"), PackedStringArray("Layout"), NodePath("VBoxContainer2/MarginContainer/HBoxContainer/Label"), PackedStringArray("Layout", "Theme Overrides")]
resource_unfolds=["res://Modules/margin_container_2.tscn::ShaderMaterial_8xunu", PackedStringArray("Resource", "Shader Parameters"), "res://Modules/margin_container_2.tscn::Curve2D_8vhxy", PackedStringArray("Resource")]
nodes_folded=[]

View File

@ -1,14 +1,23 @@
[editor_metadata]
executable_path="/Users/shurongsen/Library/Application Support/Steam/steamapps/common/Godot Engine/Godot.app/Contents/MacOS/Godot"
use_advanced_connections=false
[recent_files]
scenes=["res://Modules/setting.tscn", "res://Modules/main_3d_vehicle.tscn", "res://control.tscn", "res://Modules/data_panel.tscn"]
scripts=["CanvasItem", "@GlobalScope", "InputEventMouseButton", "res://Modules/site_selection_texture_rect.gd", "res://common/base/base_control.gd", "res://pad_hmi_ui/Main3DVehicle.gd", "res://code/main.gd", "res://res3D/ego_vehicle.gd", "res://Modules/data_panel.gd"]
scenes=["res://Modules/prompt_text.tscn", "res://Modules/item_label.tscn", "res://Modules/data_panel.tscn", "res://Modules/margin_container_2.tscn", "res://Modules/setting.tscn", "res://Modules/main_3d_vehicle.tscn", "res://control.tscn"]
scripts=["Label", "InputEventMouseButton", "CanvasItem", "@GlobalScope", "res://code/hsliderPor.gd", "res://Modules/prompt_text.gd", "res://Modules/item_label.gd", "res://code/speedometer.gd", "res://Modules/SpeedGearAdjustment.gd", "res://Modules/site_selection_texture_rect.gd"]
[dialog_bounds]
editor_settings=Rect2(900, 4790, 1800, 1400)
project_settings=Rect2(600, 4790, 2400, 1400)
create_new_node=Rect2(900, 4790, 1800, 1400)
project_settings=Rect2(492, 662, 2400, 1400)
create_new_node=Rect2(900, 938, 1800, 1400)
[script_setup]
last_selected_language="GDScript"
[color_picker]
picker_shape=3

View File

@ -0,0 +1,3 @@
[folding]
sections_unfolded=PackedStringArray()

View File

@ -0,0 +1,178 @@
[editor_states]
Anim={
"visible": false
}
2D={
"grid_offset": Vector2(0, 0),
"grid_snap_active": false,
"grid_step": Vector2(8, 8),
"grid_visibility": 1,
"ofs": Vector2(-757.074, -453.872),
"primary_grid_step": Vector2i(8, 8),
"show_group_gizmos": true,
"show_guides": true,
"show_helpers": false,
"show_lock_gizmos": true,
"show_origin": true,
"show_position_gizmos": true,
"show_rulers": true,
"show_transformation_gizmos": true,
"show_viewport": true,
"show_zoom_control": true,
"smart_snap_active": false,
"snap_guides": true,
"snap_node_anchors": true,
"snap_node_center": true,
"snap_node_parent": true,
"snap_node_sides": true,
"snap_other_nodes": true,
"snap_pixel": true,
"snap_relative": false,
"snap_rotation": false,
"snap_rotation_offset": 0.0,
"snap_rotation_step": 0.261799,
"snap_scale": false,
"snap_scale_step": 0.1,
"zoom": 0.471937
}
3D={
"fov": 70.01,
"gizmos_status": {
"AudioListener3D": 0,
"AudioStreamPlayer3D": 0,
"CPUParticles3D": 0,
"CSGShape3D": 0,
"Camera3D": 0,
"CollisionObject3D": 0,
"CollisionPolygon3D": 0,
"CollisionShape3D": 0,
"Decal": 0,
"FogVolume": 0,
"GPUParticles3D": 0,
"GPUParticlesCollision3D": 0,
"Joint3D": 0,
"Light3D": 0,
"LightmapGI": 0,
"LightmapProbe": 0,
"Marker3D": 0,
"MeshInstance3DCustomAABB": 0,
"NavigationLink3D": 0,
"NavigationRegion3D": 0,
"OccluderInstance3D": 0,
"Path3D": 0,
"PhysicalBone3D": 0,
"RayCast3D": 0,
"ReflectionProbe": 0,
"ShapeCast3D": 0,
"Skeleton3D": 0,
"SoftBody3D": 0,
"SpringArm3D": 0,
"VehicleWheel3D": 0,
"VisibleOnScreenNotifier3D": 0,
"VoxelGI": 0
},
"local_coords": false,
"preview_sun_env": {
"environ_ao_enabled": false,
"environ_enabled": true,
"environ_energy": 1.0,
"environ_gi_enabled": false,
"environ_glow_enabled": true,
"environ_ground_color": Color(0.2, 0.169, 0.133, 1),
"environ_sky_color": Color(0.385, 0.454, 0.55, 1),
"environ_tonemap_enabled": true,
"sun_color": Color(1, 1, 1, 1),
"sun_enabled": true,
"sun_energy": 1.0,
"sun_max_distance": 100.0,
"sun_rotation": Vector2(-1.0472, 2.61799)
},
"rotate_snap": 15.0,
"scale_snap": 10.0,
"show_grid": true,
"show_origin": true,
"snap_enabled": false,
"translate_snap": 1.0,
"viewport_mode": 1,
"viewports": [{
"auto_orthogonal": false,
"auto_orthogonal_enabled": true,
"cinematic_preview": false,
"display_mode": 21,
"distance": 4.0,
"doppler": false,
"frame_time": false,
"gizmos": true,
"half_res": false,
"information": false,
"listener": true,
"lock_rotation": false,
"orthogonal": false,
"position": Vector3(0, 0, 0),
"use_environment": false,
"view_type": 0,
"x_rotation": 0.5,
"y_rotation": -0.5
}, {
"auto_orthogonal": false,
"auto_orthogonal_enabled": true,
"cinematic_preview": false,
"display_mode": 21,
"distance": 4.0,
"doppler": false,
"frame_time": false,
"gizmos": true,
"half_res": false,
"information": false,
"listener": false,
"lock_rotation": false,
"orthogonal": false,
"position": Vector3(0, 0, 0),
"use_environment": false,
"view_type": 0,
"x_rotation": 0.5,
"y_rotation": -0.5
}, {
"auto_orthogonal": false,
"auto_orthogonal_enabled": true,
"cinematic_preview": false,
"display_mode": 21,
"distance": 4.0,
"doppler": false,
"frame_time": false,
"gizmos": true,
"half_res": false,
"information": false,
"listener": false,
"lock_rotation": false,
"orthogonal": false,
"position": Vector3(0, 0, 0),
"use_environment": false,
"view_type": 0,
"x_rotation": 0.5,
"y_rotation": -0.5
}, {
"auto_orthogonal": false,
"auto_orthogonal_enabled": true,
"cinematic_preview": false,
"display_mode": 21,
"distance": 4.0,
"doppler": false,
"frame_time": false,
"gizmos": true,
"half_res": false,
"information": false,
"listener": false,
"lock_rotation": false,
"orthogonal": false,
"position": Vector3(0, 0, 0),
"use_environment": false,
"view_type": 0,
"x_rotation": 0.5,
"y_rotation": -0.5
}],
"zfar": 4000.01,
"znear": 0.05
}
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@16894/@Panel@13/@VBoxContainer@14/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@25/DockVSplitCenter/@VSplitContainer@52/@VBoxContainer@53/@PanelContainer@98/MainScreen/@CanvasItemEditor@9280/@VSplitContainer@9102/@HSplitContainer@9104/@HSplitContainer@9106/@Control@9107/@SubViewportContainer@9108/@SubViewport@9109/ItemLabel")])

View File

@ -0,0 +1,5 @@
[folding]
node_unfolds=[]
resource_unfolds=["res://Modules/prompt_text.tscn::StyleBoxFlat_g2fst", PackedStringArray()]
nodes_folded=[]

View File

@ -0,0 +1 @@
res://Modules

View File

@ -3,12 +3,16 @@
state={
"bookmarks": PackedInt32Array(),
"breakpoints": PackedInt32Array(),
"column": 18,
"column": 1,
"folded_lines": Array[int]([]),
"h_scroll_position": 0,
"row": 188,
"scroll_position": 1.0,
"selection": false,
"row": 323,
"scroll_position": 181.0,
"selection": true,
"selection_from_column": 2,
"selection_from_line": 314,
"selection_to_column": 1,
"selection_to_line": 323,
"syntax_highlighter": "GDScript"
}
@ -49,7 +53,7 @@ state={
"folded_lines": Array[int]([]),
"h_scroll_position": 0,
"row": 60,
"scroll_position": 41.0,
"scroll_position": 10.0,
"selection": true,
"selection_from_column": 2,
"selection_from_line": 59,
@ -63,16 +67,16 @@ state={
state={
"bookmarks": PackedInt32Array(),
"breakpoints": PackedInt32Array(),
"column": 33,
"column": 22,
"folded_lines": Array[int]([]),
"h_scroll_position": 0,
"row": 160,
"scroll_position": 139.0,
"row": 105,
"scroll_position": 0.0,
"selection": true,
"selection_from_column": 22,
"selection_from_line": 160,
"selection_to_column": 33,
"selection_to_line": 160,
"selection_from_column": 17,
"selection_from_line": 104,
"selection_to_column": 22,
"selection_to_line": 105,
"syntax_highlighter": "GDScript"
}
@ -81,15 +85,89 @@ state={
state={
"bookmarks": PackedInt32Array(),
"breakpoints": PackedInt32Array(),
"column": 13,
"column": 42,
"folded_lines": Array[int]([]),
"h_scroll_position": 0,
"row": 7,
"scroll_position": 0.0,
"selection": false,
"syntax_highlighter": "GDScript"
}
[res://Modules/SpeedGearAdjustment.gd]
state={
"bookmarks": PackedInt32Array(),
"breakpoints": PackedInt32Array(),
"column": 15,
"folded_lines": Array[int]([]),
"h_scroll_position": 0,
"row": 12,
"scroll_position": 0.0,
"selection": false,
"syntax_highlighter": "GDScript"
}
[res://code/speedometer.gd]
state={
"bookmarks": PackedInt32Array(),
"breakpoints": PackedInt32Array(),
"column": 0,
"folded_lines": Array[int]([]),
"h_scroll_position": 0,
"row": 0,
"scroll_position": 0.0,
"selection": false,
"syntax_highlighter": "GDScript"
}
[res://Modules/item_label.gd]
state={
"bookmarks": PackedInt32Array(),
"breakpoints": PackedInt32Array(),
"column": 9,
"folded_lines": Array[int]([]),
"h_scroll_position": 0,
"row": 2,
"scroll_position": 0.0,
"selection": true,
"selection_from_column": 13,
"selection_from_column": 4,
"selection_from_line": 2,
"selection_to_column": 33,
"selection_to_line": 16,
"selection_to_column": 9,
"selection_to_line": 2,
"syntax_highlighter": "GDScript"
}
[res://Modules/prompt_text.gd]
state={
"bookmarks": PackedInt32Array(),
"breakpoints": PackedInt32Array(),
"column": 0,
"folded_lines": Array[int]([]),
"h_scroll_position": 0,
"row": 11,
"scroll_position": 0.0,
"selection": true,
"selection_from_column": 0,
"selection_from_line": 3,
"selection_to_column": 0,
"selection_to_line": 11,
"syntax_highlighter": "GDScript"
}
[res://code/hsliderPor.gd]
state={
"bookmarks": PackedInt32Array(),
"breakpoints": PackedInt32Array(),
"column": 3,
"folded_lines": Array[int]([]),
"h_scroll_position": 0,
"row": 32,
"scroll_position": 0.0,
"selection": false,
"syntax_highlighter": "GDScript"
}

View File

@ -8,7 +8,7 @@ Anim={
"grid_snap_active": false,
"grid_step": Vector2(8, 8),
"grid_visibility": 1,
"ofs": Vector2(896.127, 508.867),
"ofs": Vector2(-101.428, -166.24),
"primary_grid_step": Vector2i(8, 8),
"show_group_gizmos": true,
"show_guides": true,
@ -34,7 +34,7 @@ Anim={
"snap_rotation_step": 0.261799,
"snap_scale": false,
"snap_scale_step": 0.1,
"zoom": 0.66742
"zoom": 0.39685
}
3D={
"fov": 70.01,
@ -175,4 +175,4 @@ Anim={
"zfar": 4000.01,
"znear": 0.05
}
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@16894/@Panel@13/@VBoxContainer@14/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@25/DockVSplitCenter/@VSplitContainer@52/@VBoxContainer@53/@PanelContainer@98/MainScreen/@CanvasItemEditor@9280/@VSplitContainer@9102/@HSplitContainer@9104/@HSplitContainer@9106/@Control@9107/@SubViewportContainer@9108/@SubViewport@9109/Control/MarginContainer/HBoxContainer/MarginContainer/DataPanel")])
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@16894/@Panel@13/@VBoxContainer@14/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@25/DockVSplitCenter/@VSplitContainer@52/@VBoxContainer@53/@PanelContainer@98/MainScreen/@CanvasItemEditor@9280/@VSplitContainer@9102/@HSplitContainer@9104/@HSplitContainer@9106/@Control@9107/@SubViewportContainer@9108/@SubViewport@9109/ItemLabel")])

View File

@ -0,0 +1,3 @@
source_md5="2c4e9c53f9d802196def5bb5671c689d"
dest_md5="479fa60435f17233f70ffcc70f5129f0"

View File

@ -0,0 +1,3 @@
source_md5="72b9e95932daab744434f628c83710b1"
dest_md5="08f96acb14bb2590873c7dbf7f3c1de8"

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://5hspnhj57w22"
path="res://godot/imported/icon1.png-da7c0615ffb44b28a2fdb1dd2044f987.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://icon1.png"
dest_files=["res://godot/imported/icon1.png-da7c0615ffb44b28a2fdb1dd2044f987.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://d0oui4n4ipips"
path="res://godot/imported/icon2.png-2294dfe885793d4711fc20bee13a3760.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://icon2.png"
dest_files=["res://godot/imported/icon2.png-2294dfe885793d4711fc20bee13a3760.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

View File

@ -27,7 +27,6 @@ window/size/viewport_width=2560
window/size/viewport_height=1600
window/size/mode=2
window/stretch/mode="canvas_items"
window/stretch/aspect="ignore"
[input_devices]

View File

@ -4,6 +4,8 @@ import android.os.Handler
import android.os.Looper
import android.view.View
import androidx.core.view.isVisible
import com.amap.api.maps2d.AMap
import com.amap.api.maps2d.CameraUpdateFactory
import org.godotengine.godot.Godot
import org.godotengine.godot.plugin.GodotPlugin
import org.godotengine.godot.plugin.SignalInfo
@ -18,8 +20,8 @@ class AppPlugin(godot: Godot) : GodotPlugin(godot) {
private val handler by lazy {
Handler(Looper.getMainLooper())
}
public var aMap: AMap? = null
var zoom:Float = 17f
companion object {
val CUSTOM_SIGNAL = SignalInfo("custom_signal", String::class.java)
}
@ -34,6 +36,7 @@ class AppPlugin(godot: Godot) : GodotPlugin(godot) {
handler.post {
mapView?.isVisible = false
}
}
@UsedByGodot
@ -42,5 +45,18 @@ class AppPlugin(godot: Godot) : GodotPlugin(godot) {
mapView?.isVisible = true
}
}
@UsedByGodot
fun AddingPrecision(){
zoom += 1
val finalMap = aMap ?: return
finalMap.animateCamera(CameraUpdateFactory.zoomTo(zoom), 1000, null) // 动画时长1秒
}
@UsedByGodot
fun ReducePrecision(){
zoom -= 1
val finalMap = aMap ?: return
finalMap.animateCamera(CameraUpdateFactory.zoomTo(zoom), 1000, null) // 动画时长1秒
}
}

View File

@ -27,7 +27,7 @@ class MainActivity : AppCompatActivity(), GodotHost {
}
private var godotFragment: GodotFragment? = null
private var appPlugin: AppPlugin? = null
private var aMap: AMap? = null
public var aMap: AMap? = null
private fun fullScreen() {
requestWindowFeature(Window.FEATURE_NO_TITLE)
@ -73,12 +73,13 @@ class MainActivity : AppCompatActivity(), GodotHost {
finalMap.setMyLocationStyle(myLocationStyle)
finalMap.uiSettings.isZoomControlsEnabled = false
finalMap.isMyLocationEnabled = true
finalMap.moveCamera(CameraUpdateFactory.zoomTo(15f))
}
private fun initAppPluginIfNeeded(godot: Godot) {
if (appPlugin == null) {
val finalAppPlugin = AppPlugin(godot)
finalAppPlugin.aMap = aMap
appPlugin = finalAppPlugin
finalAppPlugin.mapView = viewBinding.cardView
}