add
This commit is contained in:
parent
7456a88661
commit
897ac024a5
BIN
Robo-Bus-A31-HMI/.DS_Store
vendored
BIN
Robo-Bus-A31-HMI/.DS_Store
vendored
Binary file not shown.
@ -177,3 +177,8 @@ func VehicleDoor_Report():#车门
|
||||
"type": "pix_robobus_driver_msgs/msg/VehicleDoorReport"
|
||||
}
|
||||
Websocket.send_msg(str(send_data))
|
||||
|
||||
signal OnClick3DVehicle
|
||||
func _on_d_vehicle_on_click(_node: Variant) -> void:
|
||||
OnClick3DVehicle.emit()
|
||||
pass # Replace with function body.
|
||||
|
@ -769,6 +769,7 @@ layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
text = "长通集团南"
|
||||
|
||||
[connection signal="on_click" from="MediumMenu/VBoxContainer/CarInfoDisplay/3DVehicle" to="." method="_on_d_vehicle_on_click"]
|
||||
[connection signal="drag_ended" from="RightMenu/VBoxContainer/MarginContainer5/HSlider" to="RightMenu/VBoxContainer/MarginContainer5/HSlider" method="_on_drag_ended"]
|
||||
|
||||
[editable path="RightMenu/VBoxContainer/VolumeSettings"]
|
||||
|
@ -7,7 +7,7 @@ extends BaseControl
|
||||
@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
|
||||
@onready var pretend_main_3d_vehicle_information: MarginContainer
|
||||
var isVolumeSettings = false:
|
||||
set(value):
|
||||
isVolumeSettings = value
|
||||
@ -15,6 +15,12 @@ var isVolumeSettings = false:
|
||||
isVolumeSettings = false
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pretend_main_3d_vehicle_information = find_child("PretendMain3DVehicleInformation")
|
||||
main_3d_vehicle_background = find_child("Main3DVehicleBackground")
|
||||
main_3d_vehicle_information = find_child("Main3DVehicleInformation")
|
||||
_3d_vehicle_information = find_child("3DVehicleInformation")
|
||||
main_3d_vehicle_texture = find_child("Main3DVehicleTexture")
|
||||
|
||||
#Engine.time_scale = 0.01
|
||||
pass # Replace with function body.
|
||||
|
||||
@ -25,6 +31,24 @@ func _process(delta: float) -> void:
|
||||
|
||||
|
||||
func OnClick3DVehicle(_node: Variant) -> void:
|
||||
|
||||
#main_3d_vehicle.self_modulate.a = 1
|
||||
|
||||
pass # Replace with function body.""
|
||||
@onready var dic = {
|
||||
"Home":%DataPanel,
|
||||
"VehicleInformation":%Information,
|
||||
"SetUp":%Setting
|
||||
}
|
||||
|
||||
func _on_tabs_onclick(State: Variant) -> void:
|
||||
for node in dic.values():
|
||||
node.visible = false
|
||||
dic[State].visible = true
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
func _on_data_panel_on_click_3d_vehicle() -> void:
|
||||
if !isVolumeSettings:
|
||||
isVolumeSettings = true
|
||||
main_3d_vehicle.visible = true
|
||||
@ -58,17 +82,4 @@ func OnClick3DVehicle(_node: Variant) -> void:
|
||||
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.""
|
||||
@onready var dic = {
|
||||
"Home":%DataPanel,
|
||||
"VehicleInformation":%Information,
|
||||
"SetUp":%Setting
|
||||
}
|
||||
|
||||
func _on_tabs_onclick(State: Variant) -> void:
|
||||
for node in dic.values():
|
||||
node.visible = false
|
||||
dic[State].visible = true
|
||||
pass # Replace with function body.
|
||||
|
@ -11,8 +11,8 @@ var socket = WebSocketPeer.new()
|
||||
var last_state = WebSocketPeer.STATE_CLOSED
|
||||
|
||||
# 默认URL
|
||||
var default_url = "ws://192.168.4.88:9091"#本地
|
||||
#var default_url = "ws://100.86.230.57:9090"#工作站
|
||||
#var default_url = "ws://192.168.4.88:9091"#本地
|
||||
var default_url = "ws://100.86.230.57:9090"#工作站
|
||||
#var default_url = "ws://100.118.150.125:9090"#真机
|
||||
|
||||
# 信号
|
||||
|
@ -224,3 +224,4 @@ mouse_filter = 2
|
||||
environment = ExtResource("14_ndify")
|
||||
|
||||
[connection signal="Onclick" from="MarginContainer/HBoxContainer/Title/Tabs" to="MarginContainer" method="_on_tabs_onclick"]
|
||||
[connection signal="OnClick3DVehicle" from="MarginContainer/HBoxContainer/MarginContainer/DataPanel" to="MarginContainer" method="_on_data_panel_on_click_3d_vehicle"]
|
||||
|
@ -5,6 +5,8 @@ extends BaseControl
|
||||
@onready var main_3d_vehicle_information: MarginContainer = %Main3DVehicleInformation
|
||||
@onready var main_3d_vehicle_background: NinePatchRect = %Main3DVehicleBackground
|
||||
func _ready() -> void:
|
||||
%Main3DVehicleTexture.texture = Global.EgoVehicle3D.MainSubGetTexture()
|
||||
|
||||
Websocket.connected_to_server.connect(connected_to_server)
|
||||
Websocket.message_received.connect(message_received)
|
||||
func connected_to_server():
|
||||
|
BIN
Robo-Bus-A31-HMI/pad_hmi_ui/information/information/.DS_Store
vendored
Normal file
BIN
Robo-Bus-A31-HMI/pad_hmi_ui/information/information/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
Robo-Bus-A31-HMI/pad_hmi_ui/setting/setting/.DS_Store
vendored
Normal file
BIN
Robo-Bus-A31-HMI/pad_hmi_ui/setting/setting/.DS_Store
vendored
Normal file
Binary file not shown.
@ -33,4 +33,5 @@ pointing/emulate_touch_from_mouse=true
|
||||
|
||||
[rendering]
|
||||
|
||||
renderer/rendering_method="mobile"
|
||||
renderer/rendering_method="gl_compatibility"
|
||||
renderer/rendering_method.mobile="gl_compatibility"
|
||||
|
Loading…
Reference in New Issue
Block a user