feature/update-main-ui (#66)
Co-authored-by: stilobique-i7 <aurelienvlt@free.fr> Co-authored-by: VAILLANT Jeremy <vaillant.jeremy@dev-crea.com> Reviewed-on: Athena/game-source#66 Co-authored-by: darknight <vaillant.jeremy@dev-crea.com> Co-committed-by: darknight <vaillant.jeremy@dev-crea.com>
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
[gd_scene load_steps=7 format=2]
|
||||
|
||||
[ext_resource path="res://assets/ui/themes/bck.jpg" type="Texture" id=1]
|
||||
|
||||
[sub_resource type="VisualShaderNodeInput" id=1]
|
||||
input_name = "screen_uv"
|
||||
|
||||
[sub_resource type="VisualShaderNodeTexture" id=2]
|
||||
texture = ExtResource( 1 )
|
||||
texture_type = 1
|
||||
|
||||
[sub_resource type="VisualShaderNodeInput" id=3]
|
||||
input_name = "screen_texture"
|
||||
|
||||
[sub_resource type="VisualShader" id=4]
|
||||
code = "shader_type canvas_item;
|
||||
uniform sampler2D tex_frg_4 : hint_albedo;
|
||||
|
||||
|
||||
|
||||
void vertex() {
|
||||
// Output:0
|
||||
|
||||
}
|
||||
|
||||
void fragment() {
|
||||
// Texture:4
|
||||
vec4 tex_frg_4_read = texture(tex_frg_4, UV.xy);
|
||||
vec3 n_out4p0 = tex_frg_4_read.rgb;
|
||||
float n_out4p1 = tex_frg_4_read.a;
|
||||
|
||||
// Output:0
|
||||
COLOR.rgb = n_out4p0;
|
||||
|
||||
}
|
||||
|
||||
void light() {
|
||||
// Output:0
|
||||
|
||||
}
|
||||
"
|
||||
graph_offset = Vector2( -1049.92, -300 )
|
||||
mode = 1
|
||||
flags/light_only = false
|
||||
nodes/fragment/3/node = SubResource( 1 )
|
||||
nodes/fragment/3/position = Vector2( -840, 460 )
|
||||
nodes/fragment/4/node = SubResource( 2 )
|
||||
nodes/fragment/4/position = Vector2( -80, 60 )
|
||||
nodes/fragment/5/node = SubResource( 3 )
|
||||
nodes/fragment/5/position = Vector2( -1000, 20 )
|
||||
nodes/fragment/connections = PoolIntArray( 4, 0, 0, 0 )
|
||||
|
||||
[sub_resource type="ShaderMaterial" id=5]
|
||||
shader = SubResource( 4 )
|
||||
|
||||
[node name="BackgroundPicture" type="Panel"]
|
||||
material = SubResource( 5 )
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
+76
-22
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=25 format=2]
|
||||
[gd_scene load_steps=27 format=2]
|
||||
|
||||
[ext_resource path="res://assets/ui/themes/button-summary.jpg" type="Texture" id=1]
|
||||
[ext_resource path="res://assets/ui/themes/bck-vert-grd.png" type="Texture" id=2]
|
||||
@@ -6,7 +6,9 @@
|
||||
[ext_resource path="res://assets/ui/themes/wood-tile.jpg" type="Texture" id=4]
|
||||
[ext_resource path="res://assets/ui/themes/button-summary-hover.jpg" type="Texture" id=5]
|
||||
[ext_resource path="res://assets/ui/icones/treasure-hover.png" type="Texture" id=6]
|
||||
[ext_resource path="res://assets/fonts/kirsty/kirsty.tres" type="DynamicFont" id=7]
|
||||
[ext_resource path="res://assets/fonts/kirsty/kirsty_base.tres" type="DynamicFont" id=7]
|
||||
[ext_resource path="res://assets/fonts/text_outline.material" type="Material" id=8]
|
||||
[ext_resource path="res://assets/fonts/kirsty/kirsty_title.tres" type="DynamicFont" id=9]
|
||||
|
||||
[sub_resource type="VisualShaderNodeVectorOp" id=1]
|
||||
operator = 3
|
||||
@@ -194,15 +196,14 @@ __meta__ = {
|
||||
|
||||
[node name="CenterContainer" type="CenterContainer" parent="PanelWood/VBoxContainer"]
|
||||
margin_right = 350.0
|
||||
margin_bottom = 147.0
|
||||
margin_bottom = 128.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="TextureRect" type="TextureButton" parent="PanelWood/VBoxContainer/CenterContainer"]
|
||||
margin_left = 111.0
|
||||
margin_top = 9.0
|
||||
margin_right = 239.0
|
||||
margin_bottom = 137.0
|
||||
margin_bottom = 128.0
|
||||
mouse_default_cursor_shape = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
@@ -212,9 +213,9 @@ texture_focused = ExtResource( 6 )
|
||||
stretch_mode = 3
|
||||
|
||||
[node name="ButtonPuzzle" type="TextureButton" parent="PanelWood/VBoxContainer"]
|
||||
margin_top = 177.0
|
||||
margin_top = 158.0
|
||||
margin_right = 350.0
|
||||
margin_bottom = 254.0
|
||||
margin_bottom = 235.0
|
||||
mouse_default_cursor_shape = 2
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 0
|
||||
@@ -226,13 +227,15 @@ __meta__ = {
|
||||
}
|
||||
|
||||
[node name="Label" type="Label" parent="PanelWood/VBoxContainer/ButtonPuzzle"]
|
||||
material = ExtResource( 8 )
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 3
|
||||
custom_fonts/font = ExtResource( 7 )
|
||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||
text = "Puzz"
|
||||
custom_fonts/font = ExtResource( 9 )
|
||||
text = "Puzzles"
|
||||
align = 1
|
||||
valign = 1
|
||||
__meta__ = {
|
||||
@@ -241,9 +244,9 @@ __meta__ = {
|
||||
}
|
||||
|
||||
[node name="ButtonSetting" type="TextureButton" parent="PanelWood/VBoxContainer"]
|
||||
margin_top = 284.0
|
||||
margin_top = 265.0
|
||||
margin_right = 350.0
|
||||
margin_bottom = 361.0
|
||||
margin_bottom = 342.0
|
||||
mouse_default_cursor_shape = 2
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 0
|
||||
@@ -255,13 +258,44 @@ __meta__ = {
|
||||
}
|
||||
|
||||
[node name="Label" type="Label" parent="PanelWood/VBoxContainer/ButtonSetting"]
|
||||
material = ExtResource( 8 )
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 3
|
||||
custom_fonts/font = ExtResource( 7 )
|
||||
custom_fonts/font = ExtResource( 9 )
|
||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||
text = "Param"
|
||||
text = "Paramètres"
|
||||
align = 1
|
||||
valign = 1
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false,
|
||||
"_editor_description_": ""
|
||||
}
|
||||
|
||||
[node name="ButtonCredits" type="TextureButton" parent="PanelWood/VBoxContainer"]
|
||||
margin_top = 372.0
|
||||
margin_right = 350.0
|
||||
margin_bottom = 449.0
|
||||
mouse_default_cursor_shape = 2
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 0
|
||||
texture_normal = ExtResource( 1 )
|
||||
texture_hover = ExtResource( 5 )
|
||||
texture_focused = ExtResource( 5 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Label" type="Label" parent="PanelWood/VBoxContainer/ButtonCredits"]
|
||||
material = ExtResource( 8 )
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 3
|
||||
custom_fonts/font = ExtResource( 9 )
|
||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||
text = "Crédits"
|
||||
align = 1
|
||||
valign = 1
|
||||
__meta__ = {
|
||||
@@ -270,15 +304,15 @@ __meta__ = {
|
||||
}
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="PanelWood/VBoxContainer"]
|
||||
margin_top = 391.0
|
||||
margin_top = 479.0
|
||||
margin_right = 350.0
|
||||
margin_bottom = 539.0
|
||||
margin_bottom = 533.0
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="ButtonQuit" type="TextureButton" parent="PanelWood/VBoxContainer"]
|
||||
margin_top = 569.0
|
||||
margin_top = 563.0
|
||||
margin_right = 350.0
|
||||
margin_bottom = 646.0
|
||||
margin_bottom = 640.0
|
||||
mouse_default_cursor_shape = 2
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 0
|
||||
@@ -289,11 +323,12 @@ __meta__ = {
|
||||
}
|
||||
|
||||
[node name="Label" type="Label" parent="PanelWood/VBoxContainer/ButtonQuit"]
|
||||
material = ExtResource( 8 )
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 3
|
||||
custom_fonts/font = ExtResource( 7 )
|
||||
custom_fonts/font = ExtResource( 9 )
|
||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||
text = "Quit"
|
||||
align = 1
|
||||
@@ -303,14 +338,33 @@ __meta__ = {
|
||||
"_editor_description_": ""
|
||||
}
|
||||
|
||||
[node name="LabelVersion" type="Label" parent="PanelWood/VBoxContainer"]
|
||||
margin_top = 676.0
|
||||
[node name="ContainerVersion" type="HBoxContainer" parent="PanelWood/VBoxContainer"]
|
||||
margin_top = 670.0
|
||||
margin_right = 350.0
|
||||
margin_bottom = 690.0
|
||||
|
||||
[node name="MarginLeft" type="MarginContainer" parent="PanelWood/VBoxContainer/ContainerVersion"]
|
||||
margin_right = 283.0
|
||||
margin_bottom = 20.0
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="LabelVersion" type="Label" parent="PanelWood/VBoxContainer/ContainerVersion"]
|
||||
margin_left = 287.0
|
||||
margin_right = 334.0
|
||||
margin_bottom = 20.0
|
||||
size_flags_vertical = 0
|
||||
text = "v XX.XX"
|
||||
custom_fonts/font = ExtResource( 7 )
|
||||
custom_colors/font_color = Color( 0.741176, 0.478431, 0.372549, 1 )
|
||||
text = "v 0.0.0"
|
||||
align = 2
|
||||
|
||||
[node name="MarginRight" type="MarginContainer" parent="PanelWood/VBoxContainer/ContainerVersion"]
|
||||
margin_left = 338.0
|
||||
margin_right = 350.0
|
||||
margin_bottom = 20.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_stretch_ratio = 0.04
|
||||
|
||||
[node name="MarginContainerBottom" type="MarginContainer" parent="PanelWood/VBoxContainer"]
|
||||
margin_top = 720.0
|
||||
margin_right = 350.0
|
||||
|
||||
@@ -7,21 +7,9 @@ onready var mlevel = load("res://db/MLevel.gd")
|
||||
func _ready():
|
||||
_apply_scenes()
|
||||
|
||||
# Load scene warcraft
|
||||
func _on_warcraft_pressed():
|
||||
Global.current_scene_int = 0
|
||||
Global.goto_scene("res://scenes/levels/warcraft/WarCraft.tscn")
|
||||
|
||||
func _on_reset_level(level, node, index):
|
||||
Global.current_scene_int = index
|
||||
level.reset()
|
||||
_configure_reset(level, node, index)
|
||||
_configure_counter(level, node)
|
||||
Global.current_scene_int = null
|
||||
|
||||
## PRIVATE
|
||||
func _apply_scenes():
|
||||
for row_index in range(0, Global.table_levels.m_rows_count):
|
||||
for row_index in range(0, Global.database.get_table_by_name("levels").m_rows_count):
|
||||
_apply_scene(mlevel.new(row_index), 0)
|
||||
|
||||
func _build_path(name):
|
||||
@@ -51,18 +39,18 @@ func _configure_select(level, node):
|
||||
var select = get_node(node+"/TextureRect/TextureButton")
|
||||
|
||||
select.set_normal_texture(_load_texture(level.thumbnail()))
|
||||
select.connect("pressed", self, _build_method(level.name()))
|
||||
select.connect("pressed", Event, _build_method(level.name()))
|
||||
|
||||
func _configure_reset(level, node, index):
|
||||
var reset = get_node(node+"/VBoxContainer/MarginContainer/ButtonReset")
|
||||
|
||||
if int(level.object_finding()) == 0:
|
||||
reset.set_disabled(true)
|
||||
if reset.has_signal("pressed"):
|
||||
reset.disconnect("pressed", self, "_on_reset_level")
|
||||
if reset.is_connected("pressed", Event, "_on_reset_level"):
|
||||
reset.disconnect("pressed", Event, "_on_reset_level")
|
||||
else:
|
||||
reset.set_disabled(false)
|
||||
reset.connect("pressed", self, "_on_reset_level", [level, node, index])
|
||||
reset.connect("pressed", Event, "_on_reset_level", [level, node, index, self])
|
||||
|
||||
func _configure_counter(level, node):
|
||||
var count = get_node(node+"/VBoxContainer/MarginContainer2/ButtonCount/Label")
|
||||
|
||||
@@ -44,7 +44,4 @@ visible = false
|
||||
margin_right = 200.0
|
||||
margin_bottom = 284.0
|
||||
|
||||
[node name="ButtonReset" parent="MarginContainer/HBoxContainer/example/VBoxContainer/MarginContainer" index="0"]
|
||||
enabled_focus_mode = 0
|
||||
|
||||
[editable path="MarginContainer/HBoxContainer/example"]
|
||||
|
||||
+12
-21
@@ -29,20 +29,19 @@ size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
color = Color( 0, 0, 0, 1 )
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="ColorRect"]
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 360.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
alignment = 1
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
wait_time = 4.31
|
||||
autostart = true
|
||||
|
||||
[node name="Label" type="Label" parent="ColorRect/VBoxContainer"]
|
||||
margin_top = 95.0
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 264.0
|
||||
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource( 2 )
|
||||
volume_db = -29.411
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
margin_left = 477.0
|
||||
margin_top = 275.0
|
||||
margin_right = 802.0
|
||||
margin_bottom = 444.0
|
||||
custom_fonts/font = SubResource( 1 )
|
||||
custom_colors/font_color = Color( 1, 1, 1, 1 )
|
||||
text = "aHog !!!
|
||||
@@ -52,12 +51,4 @@ bravo vous avez gagné."
|
||||
align = 1
|
||||
valign = 1
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
wait_time = 4.31
|
||||
autostart = true
|
||||
|
||||
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource( 2 )
|
||||
volume_db = -29.411
|
||||
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
[ext_resource path="res://assets/ui/themes/UI-Button-ItemsList-first-hover.png" type="Texture" id=1]
|
||||
[ext_resource path="res://assets/ui/themes/UI-Button-ItemsList-first.png" type="Texture" id=2]
|
||||
[ext_resource path="res://assets/fonts/kirsty/kirsty.tres" type="DynamicFont" id=3]
|
||||
[ext_resource path="res://assets/fonts/kirsty/kirsty_base.tres" type="DynamicFont" id=3]
|
||||
|
||||
[node name="TextureButton" type="TextureButton"]
|
||||
margin_right = 196.0
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
[ext_resource path="res://assets/ui/themes/leather.theme" type="Theme" id=1]
|
||||
[ext_resource path="res://assets/ui/themes/UI-Button-ItemsList-last.png" type="Texture" id=2]
|
||||
[ext_resource path="res://assets/ui/themes/UI-Button-ItemsList-last-hover.png" type="Texture" id=3]
|
||||
[ext_resource path="res://assets/fonts/kirsty/kirsty.tres" type="DynamicFont" id=4]
|
||||
[ext_resource path="res://assets/fonts/kirsty/kirsty_base.tres" type="DynamicFont" id=4]
|
||||
|
||||
[node name="TextureButton" type="TextureButton"]
|
||||
margin_right = 196.0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://assets/ui/themes/UI-Button-ItemsList-hover.png" type="Texture" id=1]
|
||||
[ext_resource path="res://assets/fonts/kirsty/kirsty.tres" type="DynamicFont" id=2]
|
||||
[ext_resource path="res://assets/fonts/kirsty/kirsty_base.tres" type="DynamicFont" id=2]
|
||||
[ext_resource path="res://assets/ui/themes/UI-Button-ItemsList.png" type="Texture" id=3]
|
||||
|
||||
[node name="TextureButton" type="TextureButton"]
|
||||
|
||||
@@ -5,19 +5,21 @@
|
||||
[ext_resource path="res://assets/ui/themes/UI-Button-ItemsList-last.png" type="Texture" id=3]
|
||||
[ext_resource path="res://assets/ui/themes/UI-Button-ItemsList.png" type="Texture" id=4]
|
||||
[ext_resource path="res://assets/ui/themes/leather.theme" type="Theme" id=5]
|
||||
[ext_resource path="res://assets/fonts/kirsty/kirsty.tres" type="DynamicFont" id=6]
|
||||
[ext_resource path="res://assets/fonts/kirsty/kirsty_base.tres" type="DynamicFont" id=6]
|
||||
[ext_resource path="res://assets/ui/themes/UI-Button-ItemsList-hover.png" type="Texture" id=7]
|
||||
[ext_resource path="res://assets/ui/themes/UI-Button-ItemsList-first-hover.png" type="Texture" id=8]
|
||||
[ext_resource path="res://assets/ui/themes/UI-Button-ItemsList-last-hover.png" type="Texture" id=9]
|
||||
|
||||
[node name="Control" type="MarginContainer"]
|
||||
anchor_left = 1.0
|
||||
anchor_top = 0.5
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -196.0
|
||||
margin_top = -450.0
|
||||
margin_bottom = 450.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 2
|
||||
rect_min_size = Vector2( 196, 900 )
|
||||
size_flags_vertical = 3
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
@@ -35,6 +37,7 @@ custom_constants/separation = -10
|
||||
visible = false
|
||||
margin_right = 196.0
|
||||
margin_bottom = 81.0
|
||||
focus_mode = 0
|
||||
texture_normal = ExtResource( 2 )
|
||||
texture_hover = ExtResource( 8 )
|
||||
texture_focused = ExtResource( 8 )
|
||||
@@ -54,6 +57,7 @@ __meta__ = {
|
||||
visible = false
|
||||
margin_right = 196.0
|
||||
margin_bottom = 81.0
|
||||
focus_mode = 0
|
||||
texture_normal = ExtResource( 4 )
|
||||
texture_hover = ExtResource( 7 )
|
||||
texture_focused = ExtResource( 7 )
|
||||
@@ -73,6 +77,7 @@ __meta__ = {
|
||||
visible = false
|
||||
margin_right = 196.0
|
||||
margin_bottom = 81.0
|
||||
focus_mode = 0
|
||||
texture_normal = ExtResource( 3 )
|
||||
texture_hover = ExtResource( 9 )
|
||||
texture_focused = ExtResource( 9 )
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
extends Control
|
||||
|
||||
func _ready():
|
||||
$VBoxContainer/Label.text = tr("LOADING")
|
||||
get_node("LabelLoading").text = tr("LOADING")
|
||||
|
||||
@@ -1,54 +1,58 @@
|
||||
[gd_scene load_steps=2 format=2]
|
||||
[gd_scene load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://scenes/UI/loading/Loading.gd" type="Script" id=1]
|
||||
[ext_resource path="res://scenes/UI/loading/parts/LoadingBare.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://scenes/UI/loading/parts/TopPart.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://scenes/UI/Background.tscn" type="PackedScene" id=3]
|
||||
|
||||
[node name="Control" type="CenterContainer"]
|
||||
[sub_resource type="Animation" id=1]
|
||||
resource_name = "BorderAnim"
|
||||
tracks/0/type = "bezier"
|
||||
tracks/0/path = NodePath("LoadingTopBorder:rect_position:x")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/keys = {
|
||||
"points": PoolRealArray( ),
|
||||
"times": PoolRealArray( )
|
||||
}
|
||||
tracks/1/type = "bezier"
|
||||
tracks/1/path = NodePath("LoadingTopBorder:rect_position:y")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/keys = {
|
||||
"points": PoolRealArray( -768, -0.25, 0, 1.01154, 306.838, -160.174, -1.02203, -283.071, 0.439946, 60.9141, -27.6065, -0.45336, -19.562, 0.536352, 17.1993, 0.362091, -0.538766, -0.968613, 0.25, 0 ),
|
||||
"times": PoolRealArray( 0.1, 0.3, 0.6, 0.9 )
|
||||
}
|
||||
tracks/2/type = "bezier"
|
||||
tracks/2/path = NodePath("LoadingBare:modulate:a")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/keys = {
|
||||
"points": PoolRealArray( 0, -0.25, 0, 1.10651, 0.716757, 1, -1.59408, -0.0328361, 0.25, 0 ),
|
||||
"times": PoolRealArray( 0, 0.4 )
|
||||
}
|
||||
|
||||
[node name="Control" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
script = ExtResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
margin_left = 687.0
|
||||
margin_top = 432.0
|
||||
margin_right = 752.0
|
||||
margin_bottom = 468.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
alignment = 1
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
[node name="BackgroundPicture" parent="." instance=ExtResource( 3 )]
|
||||
|
||||
[node name="Label" type="Label" parent="VBoxContainer"]
|
||||
margin_right = 65.0
|
||||
margin_bottom = 14.0
|
||||
text = "Loading ..."
|
||||
align = 1
|
||||
[node name="LoadingTopBorder" parent="." instance=ExtResource( 2 )]
|
||||
margin_top = 0.362091
|
||||
margin_bottom = 0.362061
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer"]
|
||||
margin_top = 18.0
|
||||
margin_right = 65.0
|
||||
margin_bottom = 18.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
[node name="LoadingBare" parent="." instance=ExtResource( 1 )]
|
||||
margin_top = 360.0
|
||||
|
||||
[node name="ProgressBar" type="ProgressBar" parent="VBoxContainer"]
|
||||
margin_top = 22.0
|
||||
margin_right = 65.0
|
||||
margin_bottom = 36.0
|
||||
max_value = 1.0
|
||||
step = 0.1
|
||||
rounded = true
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
margin_left = 720.0
|
||||
margin_top = 450.0
|
||||
margin_right = 720.0
|
||||
margin_bottom = 450.0
|
||||
color = Color( 0, 0, 0, 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
[node name="AnimLoading" type="AnimationPlayer" parent="."]
|
||||
method_call_mode = 1
|
||||
anims/BorderAnim = SubResource( 1 )
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
[gd_scene format=2]
|
||||
|
||||
[node name="Tile" type="VBoxContainer"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="."]
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 237.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="BorderLeft" type="ColorRect" parent="."]
|
||||
margin_top = 241.0
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 478.0
|
||||
rect_min_size = Vector2( 0, 8 )
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
color = Color( 0.74902, 0.701961, 0.65098, 1 )
|
||||
|
||||
[node name="MarginContainer2" type="MarginContainer" parent="."]
|
||||
margin_top = 482.0
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 720.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
@@ -0,0 +1,32 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://assets/fonts/kirsty/kirsty_title.tres" type="DynamicFont" id=1]
|
||||
[ext_resource path="res://scenes/UI/loading/Loading.gd" type="Script" id=2]
|
||||
|
||||
[node name="VBoxLoading" type="VBoxContainer"]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -96.5
|
||||
margin_top = -28.0
|
||||
margin_right = 96.5
|
||||
margin_bottom = 28.0
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 0
|
||||
custom_constants/separation = 0
|
||||
alignment = 1
|
||||
script = ExtResource( 2 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="LabelLoading" type="Label" parent="."]
|
||||
margin_right = 193.0
|
||||
margin_bottom = 56.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
custom_colors/font_color = Color( 0.74902, 0.701961, 0.65098, 1 )
|
||||
text = "loading"
|
||||
align = 1
|
||||
valign = 2
|
||||
uppercase = true
|
||||
@@ -0,0 +1,61 @@
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://assets/ui/themes/leather.theme" type="Theme" id=1]
|
||||
|
||||
[node name="LoadingBare" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer"]
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 237.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
|
||||
margin_top = 241.0
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 478.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="HSplitContainer" type="HSplitContainer" parent="VBoxContainer/HBoxContainer"]
|
||||
margin_right = 238.0
|
||||
margin_bottom = 237.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_stretch_ratio = 0.3
|
||||
|
||||
[node name="ProgressBar" type="ProgressBar" parent="VBoxContainer/HBoxContainer"]
|
||||
margin_left = 242.0
|
||||
margin_right = 1037.0
|
||||
margin_bottom = 237.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
theme = ExtResource( 1 )
|
||||
max_value = 1.0
|
||||
step = 0.1
|
||||
rounded = true
|
||||
|
||||
[node name="HSplitContainer2" type="HSplitContainer" parent="VBoxContainer/HBoxContainer"]
|
||||
margin_left = 1041.0
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 237.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_stretch_ratio = 0.3
|
||||
|
||||
[node name="MarginContainer2" type="MarginContainer" parent="VBoxContainer"]
|
||||
margin_top = 482.0
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 720.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
@@ -0,0 +1,87 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://scenes/UI/loading/parts/LabelLoading.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://scenes/UI/loading/parts/BorderColor.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://assets/ui/themes/bck-hrz-grd.png" type="Texture" id=3]
|
||||
|
||||
[node name="LoadingBorder" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_vertical = 2
|
||||
rect_clip_content = true
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="BackgroundGradient" type="VBoxContainer" parent="."]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
custom_constants/separation = 0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="BlackColor" type="ColorRect" parent="BackgroundGradient"]
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 240.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
color = Color( 0, 0, 0, 1 )
|
||||
|
||||
[node name="ColorRect" type="TextureRect" parent="BackgroundGradient"]
|
||||
margin_top = 240.0
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 480.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
texture = ExtResource( 3 )
|
||||
expand = true
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="BackgroundGradient"]
|
||||
margin_top = 480.0
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 720.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="LabelAndBorder" type="HBoxContainer" parent="."]
|
||||
anchor_top = 0.5
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 0.5
|
||||
margin_top = -30.0
|
||||
margin_bottom = 30.0
|
||||
rect_clip_content = true
|
||||
size_flags_vertical = 5
|
||||
custom_constants/separation = 20
|
||||
alignment = 1
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="BorderLeft" parent="LabelAndBorder" instance=ExtResource( 2 )]
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_right = 523.0
|
||||
margin_bottom = 60.0
|
||||
|
||||
[node name="LabelLoading" parent="LabelAndBorder" instance=ExtResource( 1 )]
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 543.0
|
||||
margin_top = 0.0
|
||||
margin_right = 736.0
|
||||
margin_bottom = 56.0
|
||||
|
||||
[node name="BorderRight" parent="LabelAndBorder" instance=ExtResource( 2 )]
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 756.0
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 60.0
|
||||
@@ -19,13 +19,13 @@ func _apply_settings_language():
|
||||
data.add_item("English", load("res://assets/ui/flags/english.png"), true) # id : 0
|
||||
data.add_item("Français", load("res://assets/ui/flags/french.png"), true) # id : 1
|
||||
|
||||
data.select(Global.get_setting_language())
|
||||
data.select(Setting.get_setting_language())
|
||||
|
||||
func _apply_settings_gyroscope():
|
||||
$VBoxContainer/gyroscope/HBoxContainer/data.set_pressed(Global.get_setting_gyrosocpe())
|
||||
$VBoxContainer/gyroscope/HBoxContainer/data.set_pressed(Setting.get_setting_gyrosocpe())
|
||||
|
||||
func _apply_settings_sound_ambient():
|
||||
$VBoxContainer/ambient_sound/HBoxContainer/data.set_pressed(Global.get_setting_ambient_sound())
|
||||
$VBoxContainer/ambient_sound/HBoxContainer/data.set_pressed(Setting.get_setting_ambient_sound())
|
||||
|
||||
func _apply_settings_resolution():
|
||||
var data = $VBoxContainer/resolution/VBoxContainer/data
|
||||
@@ -36,23 +36,23 @@ func _apply_settings_resolution():
|
||||
data.add_item("854 x 576", null, true) # id : 3
|
||||
|
||||
for index in range(4):
|
||||
if data.get_item_text(index).split(' x ') == Global.get_setting_resolution():
|
||||
if data.get_item_text(index).split(' x ') == Setting.get_setting_resolution():
|
||||
data.select(index)
|
||||
|
||||
func _apply_settings_fullscreen():
|
||||
$VBoxContainer/fullscreen/HBoxContainer/data.set_pressed(Global.get_setting_fullscreen())
|
||||
$VBoxContainer/fullscreen/HBoxContainer/data.set_pressed(Setting.get_setting_fullscreen())
|
||||
|
||||
func _on_gyroscope_pressed():
|
||||
Global.set_setting_gyroscope(int($VBoxContainer/gyroscope/HBoxContainer/data.pressed))
|
||||
Setting.set_setting_gyroscope(int($VBoxContainer/gyroscope/HBoxContainer/data.pressed))
|
||||
|
||||
func _on_ambient_sound_pressed():
|
||||
Global.set_setting_ambient_sound(int($VBoxContainer/ambient_sound/HBoxContainer/data.pressed))
|
||||
Setting.set_setting_ambient_sound(int($VBoxContainer/ambient_sound/HBoxContainer/data.pressed))
|
||||
|
||||
func _on_langue_item_selected(index):
|
||||
Global.set_setting_language(index)
|
||||
Setting.set_setting_language(index)
|
||||
|
||||
func _on_resolution_item_selected(index):
|
||||
Global.set_setting_resolution($VBoxContainer/resolution/VBoxContainer/data.get_item_text(index))
|
||||
Setting.set_setting_resolution($VBoxContainer/resolution/VBoxContainer/data.get_item_text(index))
|
||||
|
||||
func _on_fullscreen_item_selected():
|
||||
Global.set_setting_fullscreen(int($VBoxContainer/fullscreen/HBoxContainer/data.pressed))
|
||||
Setting.set_setting_fullscreen(int($VBoxContainer/fullscreen/HBoxContainer/data.pressed))
|
||||
|
||||
@@ -41,6 +41,7 @@ align = 1
|
||||
margin_top = 18.0
|
||||
margin_right = 50.0
|
||||
margin_bottom = 27.0
|
||||
focus_mode = 0
|
||||
auto_height = true
|
||||
max_columns = 2
|
||||
same_column_width = true
|
||||
@@ -113,6 +114,7 @@ text = "Resolution :"
|
||||
margin_top = 18.0
|
||||
margin_right = 76.0
|
||||
margin_bottom = 27.0
|
||||
focus_mode = 0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
auto_height = true
|
||||
|
||||
Reference in New Issue
Block a user