Движение кораблика по координатам. Экран ЭМС ТГ

This commit is contained in:
lepshiy
2025-10-24 12:29:02 +03:00
parent 78c9a0b5a7
commit 510967bcd8
3 changed files with 3 additions and 10 deletions

View File

@@ -707,6 +707,7 @@ func set_coordinates(lon: float, lat: float, course: float) -> void:
add_mark_from_lon_lat(ship_id, lon, lat, ship_instance, 0.0)
else:
_marks[ship_id].position = lonlat_to_world(lon, lat)
ship_instance.rotation_degrees = course
queue_redraw()

View File

@@ -349,7 +349,7 @@ text = ""
[connection signal="toggled" from="btn_activate" to="." method="on_btn_activate_toggled"]
[connection signal="toggled" from="btn_center" to="." method="on_btn_center_toggled"]
[connection signal="button_down" from="zoom_plus" to="tilemap" method="_on_zoom_plus_button_down"]
[connection signal="button_up" from="zoom_plus" to="tilemap" method="_on_zoom_button_up"]
[connection signal="button_up" from="zoom_plus" to="tilemap" method="_on_zoom_plus_button_up"]
[connection signal="button_up" from="zoom_plus" to="tilemap" method="_on_zoom_button_up"]
[connection signal="button_down" from="zoom_minus" to="tilemap" method="_on_zoom_minus_button_down"]
[connection signal="button_up" from="zoom_minus" to="tilemap" method="_on_zoom_button_up"]

View File

@@ -403,6 +403,7 @@ theme_override_font_sizes/font_size = 16
text = "Излучение"
[node name="Label2" type="Label" parent="."]
layout_mode = 0
offset_left = 813.0
offset_top = 503.0
offset_right = 861.0
@@ -418,47 +419,38 @@ texture = ExtResource("29_5u4bk")
[node name="СкруглённыйПрямоугСалатный4" type="Sprite2D" parent="СкруглённыйПрямоугСалатный"]
position = Vector2(660, 0)
scale = Vector2(1, 1)
texture = ExtResource("29_5u4bk")
[node name="СкруглённыйПрямоугСалатный5" type="Sprite2D" parent="СкруглённыйПрямоугСалатный"]
position = Vector2(774, 0)
scale = Vector2(1, 1)
texture = ExtResource("29_5u4bk")
[node name="СкруглённыйПрямоугСалатный6" type="Sprite2D" parent="СкруглённыйПрямоугСалатный"]
position = Vector2(546, 0)
scale = Vector2(1, 1)
texture = ExtResource("29_5u4bk")
[node name="СкруглённыйПрямоугСалатный7" type="Sprite2D" parent="СкруглённыйПрямоугСалатный"]
position = Vector2(468, 0)
scale = Vector2(1, 1)
texture = ExtResource("29_5u4bk")
[node name="СкруглённыйПрямоугСалатный8" type="Sprite2D" parent="СкруглённыйПрямоугСалатный"]
position = Vector2(390, 0)
scale = Vector2(1, 1)
texture = ExtResource("29_5u4bk")
[node name="СкруглённыйПрямоугСалатный9" type="Sprite2D" parent="СкруглённыйПрямоугСалатный"]
position = Vector2(312, 0)
scale = Vector2(1, 1)
texture = ExtResource("29_5u4bk")
[node name="СкруглённыйПрямоугСалатный10" type="Sprite2D" parent="СкруглённыйПрямоугСалатный"]
position = Vector2(234, 0)
scale = Vector2(1, 1)
texture = ExtResource("29_5u4bk")
[node name="СкруглённыйПрямоугСалатный11" type="Sprite2D" parent="СкруглённыйПрямоугСалатный"]
position = Vector2(156, 0)
scale = Vector2(1, 1)
texture = ExtResource("29_5u4bk")
[node name="СкруглённыйПрямоугСалатный12" type="Sprite2D" parent="СкруглённыйПрямоугСалатный"]
position = Vector2(78, 0)
scale = Vector2(1, 1)
texture = ExtResource("29_5u4bk")
[node name="Приём" type="Sprite2D" parent="СкруглённыйПрямоугСалатный"]