Коммит 184282eb создал по автору magcourier's avatar magcourier
Просмотр файлов

Merge branch 'develop' into 'develop'

Исправление вращения камеры в космосе

See merge request tehnokom/universo!180
владельцы 191b7483 cbaa6fde
......@@ -3,6 +3,7 @@
[ext_resource path="res://blokoj/kosmo/skriptoj/itinero.gd" type="Script" id=1]
[node name="itinero" type="Control"]
mouse_filter = 2
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
......
......@@ -65,6 +65,7 @@ func _on_data():
# print('index=',index,' ::: ', typeof(index), " == ", typeof(on_data['id']))
var index_net = id_net.find(int(on_data['id']))
var index_pafo = id_pafo.find(int(on_data['id']))
# print('====on_data=',on_data)
if index_net > -1: # находится в списке отправленных запросов
# удаляем из списка
id_net.remove(index_net)
......@@ -137,12 +138,16 @@ func sxangxi_tasko(on_data):
# изменение маршрута движения
ch.sxangxi_itinero(on_data['universoObjektoEventoj']['projekto'],
on_data['universoObjektoEventoj']['tasko'])
else: # иначе проект стрельбы
# если проект стрельбы
elif on_data['universoObjektoEventoj']['projekto']['kategorio']['edges'].front()['node']['objId']==Net.projekto_kategorio_pafado:
ch.pafo(on_data['universoObjektoEventoj']['projekto'],
on_data['universoObjektoEventoj']['tasko'])
if on_data['universoObjektoEventoj']['tasko']['kategorio']['edges'].front()['node']['objId']==Net.tasko_kategorio_celilo:
# сообщаем кораблю игрока о прицеливании в него
pass
objekto = true
if !objekto: # если объект не найден, то нужно его добавить (если он не часть своего корабля)
# print('===найден новый объект!!! uuid=',uuid,'===on_data=',on_data)
print('===найден новый объект!!! uuid=',uuid,'===on_data=',on_data)
pass
......
......@@ -277,7 +277,7 @@ func pafo(projekto, tasko):
# === в стрельбу попали
# если стрельба
# циклом пробегаемся по armiloj
if tasko['kategorio']['edges'].front()['node']['objId']:
if tasko['kategorio']['edges'].front()['node']['objId']==Net.tasko_kategorio_pafo:
# нажодим оружие и передаём ему цель стрельбы
for armilo in armiloj:
# ищем, какое именно оружие стреляло
......@@ -286,6 +286,8 @@ func pafo(projekto, tasko):
armilo.set_target(Global.fenestro_kosmo.sercxo_objekto_uuid(tasko['objekto']['uuid']))
# сразу сбрасываем цель стрельбы в null - тогда будет только один выстрел
armilo.set_target(null)
elif tasko['kategorio']['edges'].front()['node']['objId']==Net.tasko_kategorio_celilo:
print('=== попали в задачу прицеливания projekto=',projekto)
else:
print('=== попали не в стрельбу projekto=',projekto)
print(' ===tasko=',tasko)
......
......@@ -17,9 +17,6 @@ script = ExtResource( 3 )
[node name="CanvasLayer" parent="." index="0"]
layer = -1
[node name="romb" parent="CanvasLayer/UI" index="4"]
anchor_bottom = 3.73258e-09
[node name="komerco" parent="CanvasLayer/UI/komerco" index="0"]
script = null
......
......@@ -16,6 +16,7 @@ anchor_bottom = 1.0
margin_left = 1.0
margin_right = -1599.0
margin_bottom = -1024.0
mouse_filter = 2
size_flags_horizontal = 4
size_flags_vertical = 4
script = ExtResource( 7 )
......
......@@ -4,6 +4,7 @@
[ext_resource path="res://blokoj/sciigoj/ad_1.gd" type="Script" id=2]
[node name="ad_1" instance=ExtResource( 1 )]
mouse_filter = 2
script = ExtResource( 2 )
[node name="Margin" parent="CanvasLayer" index="0"]
......
......@@ -49,6 +49,7 @@ anchor_right = 1.0
anchor_bottom = 1.0
margin_right = -1600.0
margin_bottom = -1024.0
mouse_filter = 2
script = ExtResource( 2 )
__meta__ = {
"_edit_ik_": true,
......@@ -77,6 +78,7 @@ anchor_bottom = 1.0
margin_left = -0.095665
margin_right = -0.0957031
margin_bottom = -2.0
mouse_filter = 2
__meta__ = {
"_edit_use_anchors_": false
}
......@@ -129,6 +131,7 @@ __meta__ = {
anchor_left = 0.000625
anchor_top = 3.73258e-09
anchor_right = 0.000625
anchor_bottom = 3.73258e-09
margin_left = 35.5
margin_top = 49.0
margin_right = 53.5
......
......@@ -3,6 +3,7 @@
[ext_resource path="res://kerno/menuo/scenoj/bottom_block.tscn" type="PackedScene" id=1]
[node name="bottom_1" instance=ExtResource( 1 )]
mouse_filter = 2
[node name="HBox_top" parent="VBox" index="0"]
margin_right = 199.0
......
......@@ -3,6 +3,7 @@
[ext_resource path="res://kerno/menuo/scenoj/bottom_block.tscn" type="PackedScene" id=1]
[node name="bottom_2" instance=ExtResource( 1 )]
mouse_filter = 2
[node name="HBox_top" parent="VBox" index="0"]
margin_right = 199.0
......
......@@ -3,6 +3,7 @@
[ext_resource path="res://kerno/menuo/scenoj/bottom_block.tscn" type="PackedScene" id=1]
[node name="bottom_3" instance=ExtResource( 1 )]
mouse_filter = 2
[node name="HBox_top" parent="VBox" index="0"]
margin_right = 199.0
......
......@@ -7,6 +7,7 @@
[node name="central_block" instance=ExtResource( 1 )]
margin_right = 1533.0
margin_bottom = 771.0
mouse_filter = 2
script = null
[node name="VBox" parent="." index="0"]
......
......@@ -5,6 +5,7 @@
[ext_resource path="res://kerno/wablono/estonteco/window2.png" type="Texture" id=3]
[node name="fenestroj" type="Control"]
mouse_filter = 2
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
......
......@@ -37,7 +37,7 @@ Net="*res://kerno/skriptoj/network.gd"
[display]
window/size/width=1600
window/size/height=1024
window/size/height=800
window/stretch/aspect="keep_width"
[gui]
......
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать