ajout d'une gui en 3d, d'un tuto et correction de bug à la pelletée
This commit is contained in:
92
gui/game/objective_progress_bar/objective_progress_bar.tscn
Normal file
92
gui/game/objective_progress_bar/objective_progress_bar.tscn
Normal file
@@ -0,0 +1,92 @@
|
||||
[gd_scene format=3 uid="uid://df0eop555wfj5"]
|
||||
|
||||
[ext_resource type="Material" uid="uid://cr7bp4fhh1ipr" path="res://entities/player_3d/resources/materials/post_process_quad.tres" id="1_j2f28"]
|
||||
[ext_resource type="Script" uid="uid://brqgqwh5uwksh" path="res://gui/game/objective_progress_bar/scripts/objective_progress_bar.gd" id="1_wl86c"]
|
||||
[ext_resource type="LabelSettings" uid="uid://dqwayi8yjwau2" path="res://gui/ressources/title_label_settings.tres" id="2_vk2vv"]
|
||||
[ext_resource type="Environment" uid="uid://bxyp24f85p0xf" path="res://gui/game/assets/gui_3d_environment.tres" id="2_wl86c"]
|
||||
[ext_resource type="PackedScene" uid="uid://cam5igcebfvsd" path="res://gui/game/objective_progress_bar/assets/3d/gauge.blend" id="3_3aubw"]
|
||||
[ext_resource type="Texture2D" uid="uid://bt3g5bmar0icf" path="res://common/icons/growth.svg" id="3_7sip7"]
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_3aubw"]
|
||||
viewport_path = NodePath("ProgressBarViewPort")
|
||||
|
||||
[sub_resource type="QuadMesh" id="QuadMesh_vk2vv"]
|
||||
size = Vector2(2, 2)
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_vk2vv"]
|
||||
colors = PackedColorArray(1, 0, 0.43137255, 1, 1, 0.6509804, 0.09019608, 1)
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_7sip7"]
|
||||
gradient = SubResource("Gradient_vk2vv")
|
||||
|
||||
[node name="ObjectiveProgressBar" type="MarginContainer" unique_id=2043451865]
|
||||
offset_right = 300.0
|
||||
offset_bottom = 75.0
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 0
|
||||
theme_override_constants/margin_left = 0
|
||||
theme_override_constants/margin_top = 0
|
||||
theme_override_constants/margin_right = 0
|
||||
theme_override_constants/margin_bottom = 0
|
||||
script = ExtResource("1_wl86c")
|
||||
progress = 0.815
|
||||
text = "0/5"
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="." unique_id=1998625871]
|
||||
custom_minimum_size = Vector2(300, 0)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 0
|
||||
texture = SubResource("ViewportTexture_3aubw")
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="." unique_id=304487768]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
mouse_filter = 2
|
||||
theme_override_constants/separation = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="ProgressText" type="Label" parent="HBoxContainer" unique_id=1471735717]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
text = "0/5"
|
||||
label_settings = ExtResource("2_vk2vv")
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="Icon" type="TextureRect" parent="HBoxContainer" unique_id=531688920]
|
||||
custom_minimum_size = Vector2(30, 30)
|
||||
layout_mode = 2
|
||||
mouse_filter = 2
|
||||
texture = ExtResource("3_7sip7")
|
||||
expand_mode = 1
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="ProgressBarViewPort" type="SubViewport" parent="." unique_id=459282221]
|
||||
own_world_3d = true
|
||||
transparent_bg = true
|
||||
size = Vector2i(479, 117)
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="ProgressBarViewPort" unique_id=1739830500]
|
||||
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 16.5, 0, -0.2)
|
||||
keep_aspect = 0
|
||||
fov = 44.6
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="ProgressBarViewPort/Camera3D" unique_id=2049023784]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.2)
|
||||
mesh = SubResource("QuadMesh_vk2vv")
|
||||
skeleton = NodePath("../..")
|
||||
surface_material_override/0 = ExtResource("1_j2f28")
|
||||
|
||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="ProgressBarViewPort" unique_id=1743124302]
|
||||
environment = ExtResource("2_wl86c")
|
||||
|
||||
[node name="gauge" parent="ProgressBarViewPort" unique_id=1465667654 instance=ExtResource("3_3aubw")]
|
||||
|
||||
[node name="ProgressBar" type="Sprite3D" parent="ProgressBarViewPort" unique_id=1289085425]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(-1.5140532e-07, 0, 0.989, 0, 200, 0, -3.46375, 0, -4.3230564e-08, 0.27917147, -1.0458755, 5.3935585)
|
||||
centered = false
|
||||
texture = SubResource("GradientTexture1D_7sip7")
|
||||
Reference in New Issue
Block a user