système de sauvegarde, scène 3D de test sur la base astra et passage en forward+
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=23 format=3 uid="uid://0yr6b2jtuttm"]
|
||||
[gd_scene format=3 uid="uid://0yr6b2jtuttm"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://vhumsfntpqcl" path="res://gui/pointer/scripts/pointer.gd" id="1_1pe2k"]
|
||||
[ext_resource type="Texture2D" uid="uid://bspffyprdywgc" path="res://gui/pointer/assets/cursors/pointer.svg" id="2_q4bvb"]
|
||||
@@ -55,15 +55,15 @@ stats = Array[ExtResource("10_d4v46")]([SubResource("Resource_biqg7"), SubResour
|
||||
sections = Array[ExtResource("9_s1ym6")]([SubResource("Resource_l3vvu")])
|
||||
metadata/_custom_type_script = "uid://dj2pv1hiwjfv0"
|
||||
|
||||
[node name="Pointer" type="Node"]
|
||||
[node name="Pointer" type="Node" unique_id=778512969]
|
||||
process_mode = 3
|
||||
script = ExtResource("1_1pe2k")
|
||||
default_cursor = ExtResource("2_q4bvb")
|
||||
|
||||
[node name="InspectorCanvasLayer" type="CanvasLayer" parent="."]
|
||||
[node name="InspectorCanvasLayer" type="CanvasLayer" parent="." unique_id=561032710]
|
||||
layer = 128
|
||||
|
||||
[node name="Inspector" type="Control" parent="InspectorCanvasLayer"]
|
||||
[node name="Inspector" type="Control" parent="InspectorCanvasLayer" unique_id=881903764]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
@@ -71,7 +71,7 @@ offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="Container" type="VBoxContainer" parent="InspectorCanvasLayer/Inspector"]
|
||||
[node name="Container" type="VBoxContainer" parent="InspectorCanvasLayer/Inspector" unique_id=319962477]
|
||||
layout_mode = 0
|
||||
offset_left = 28.0
|
||||
offset_right = 134.0
|
||||
@@ -80,25 +80,25 @@ size_flags_horizontal = 0
|
||||
size_flags_vertical = 0
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="Action" type="HBoxContainer" parent="InspectorCanvasLayer/Inspector/Container"]
|
||||
[node name="Action" type="HBoxContainer" parent="InspectorCanvasLayer/Inspector/Container" unique_id=175707332]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(0, 20)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="MouseImage" type="TextureRect" parent="InspectorCanvasLayer/Inspector/Container/Action"]
|
||||
[node name="MouseImage" type="TextureRect" parent="InspectorCanvasLayer/Inspector/Container/Action" unique_id=530309967]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("3_pshoq")
|
||||
expand_mode = 2
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="ActionEnergyImage" type="TextureRect" parent="InspectorCanvasLayer/Inspector/Container/Action"]
|
||||
[node name="ActionEnergyImage" type="TextureRect" parent="InspectorCanvasLayer/Inspector/Container/Action" unique_id=1684096069]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
texture = ExtResource("4_b4uwv")
|
||||
expand_mode = 2
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="ActionText" type="RichTextLabel" parent="InspectorCanvasLayer/Inspector/Container/Action"]
|
||||
[node name="ActionText" type="RichTextLabel" parent="InspectorCanvasLayer/Inspector/Container/Action" unique_id=1137643470]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
bbcode_enabled = true
|
||||
@@ -107,17 +107,17 @@ fit_content = true
|
||||
scroll_active = false
|
||||
autowrap_mode = 0
|
||||
|
||||
[node name="ActionZone" type="Sprite2D" parent="InspectorCanvasLayer/Inspector"]
|
||||
[node name="ActionZone" type="Sprite2D" parent="InspectorCanvasLayer/Inspector" unique_id=327004224]
|
||||
unique_name_in_owner = true
|
||||
z_index = 4096
|
||||
script = ExtResource("5_b4uwv")
|
||||
opacity = 0.4
|
||||
metadata/_custom_type_script = "uid://c60a1bjcuj4hd"
|
||||
|
||||
[node name="CardCanvasLayer" type="CanvasLayer" parent="."]
|
||||
[node name="CardCanvasLayer" type="CanvasLayer" parent="." unique_id=391042380]
|
||||
layer = 2
|
||||
|
||||
[node name="CardPosition" type="Control" parent="CardCanvasLayer"]
|
||||
[node name="CardPosition" type="Control" parent="CardCanvasLayer" unique_id=466738082]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 3
|
||||
anchors_preset = 8
|
||||
@@ -129,16 +129,16 @@ grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="CardCanvasLayer/CardPosition"]
|
||||
[node name="MarginContainer" type="MarginContainer" parent="CardCanvasLayer/CardPosition" unique_id=934152903]
|
||||
layout_mode = 1
|
||||
anchors_preset = 7
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -175.0
|
||||
offset_top = -60.0
|
||||
offset_right = 175.0
|
||||
offset_left = -125.0
|
||||
offset_top = -251.0
|
||||
offset_right = 125.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
mouse_filter = 2
|
||||
@@ -147,18 +147,17 @@ theme_override_constants/margin_top = 0
|
||||
theme_override_constants/margin_right = 0
|
||||
theme_override_constants/margin_bottom = 0
|
||||
|
||||
[node name="CardVisualiser" parent="CardCanvasLayer/CardPosition/MarginContainer" instance=ExtResource("6_7j4mj")]
|
||||
[node name="CardVisualiser" parent="CardCanvasLayer/CardPosition/MarginContainer" unique_id=1668451028 instance=ExtResource("6_7j4mj")]
|
||||
unique_name_in_owner = true
|
||||
modulate = Color(1, 1, 1, 0.5003133)
|
||||
material = SubResource("ShaderMaterial_6eft6")
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 8
|
||||
mouse_filter = 0
|
||||
card_info = SubResource("Resource_mbe2a")
|
||||
|
||||
[node name="Audio" type="Node" parent="."]
|
||||
[node name="Audio" type="Node" parent="." unique_id=1338225026]
|
||||
|
||||
[node name="Click" type="AudioStreamPlayer" parent="Audio"]
|
||||
[node name="Click" type="AudioStreamPlayer" parent="Audio" unique_id=1212536250]
|
||||
stream = ExtResource("3_kj0cm")
|
||||
volume_db = -15.0
|
||||
|
||||
@@ -72,7 +72,7 @@ func _process(delta):
|
||||
|
||||
can_use_item = could_use_item and have_energy_to_use_item
|
||||
|
||||
if current_selected_item and SceneManager.actual_scene.scene_id == "REGION":
|
||||
if current_selected_item and GameInfo.game_data.actual_scene.scene_id == "REGION":
|
||||
%ActionZone.radius = current_selected_item.usage_zone_radius
|
||||
%ActionZone.color = ZONE_ACTIVATED_COLOR if can_use_item else ZONE_DEACTIVATED_COLOR
|
||||
else:
|
||||
@@ -124,8 +124,8 @@ func update_card():
|
||||
%CardPosition.position = inspected.global_position + inspected.size / 2 + CARD_UP_PADDING * Vector2.UP
|
||||
elif inspected is Node3D:
|
||||
%CardPosition.position = get_viewport().get_camera_3d().unproject_position(inspected.global_position) + CARD_UP_PADDING * Vector2.UP
|
||||
if %CardVisualiser.is_mouse_over():
|
||||
time_last_inspected = 0.
|
||||
# if %CardVisualiser.is_mouse_over():
|
||||
# time_last_inspected = 0.
|
||||
|
||||
|
||||
func update_inspector():
|
||||
|
||||
Reference in New Issue
Block a user