Reordering scene, and setup basic scene instance on main view
This commit is contained in:
@@ -1,61 +0,0 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://scenes/UI/ChooseScene.gd" type="Script" id=1]
|
||||
[ext_resource path="res://assets/levels/warcraft.jpg" type="Texture" id=2]
|
||||
|
||||
[node name="ChooseScene" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
script = ExtResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="games" type="Control" parent="."]
|
||||
margin_left = 200.0
|
||||
margin_right = 1024.0
|
||||
margin_bottom = 600.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="GridContainer" type="GridContainer" parent="games"]
|
||||
margin_left = 503.586
|
||||
margin_top = 300.0
|
||||
margin_right = 1302.59
|
||||
margin_bottom = 604.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="WarCraft" type="TextureButton" parent="games/GridContainer"]
|
||||
margin_right = 150.0
|
||||
margin_bottom = 150.0
|
||||
mouse_default_cursor_shape = 2
|
||||
texture_normal = ExtResource( 2 )
|
||||
|
||||
[node name="Lightmap" type="TextureButton" parent="games/GridContainer"]
|
||||
margin_top = 154.0
|
||||
margin_right = 150.0
|
||||
margin_bottom = 304.0
|
||||
mouse_default_cursor_shape = 2
|
||||
texture_normal = ExtResource( 2 )
|
||||
|
||||
[node name="Label" type="Label" parent="games/GridContainer/Lightmap"]
|
||||
margin_right = 40.0
|
||||
margin_bottom = 14.0
|
||||
text = "Lightmap"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Container" type="Control" parent="games"]
|
||||
margin_right = 824.0
|
||||
margin_bottom = 300.0
|
||||
|
||||
[node name="HBoxContainer" type="VBoxContainer" parent="games/Container"]
|
||||
margin_right = 824.0
|
||||
margin_bottom = 300.0
|
||||
|
||||
[connection signal="pressed" from="games/GridContainer/WarCraft" to="." method="_on_WarCraft_pressed"]
|
||||
[connection signal="pressed" from="games/GridContainer/Lightmap" to="." method="_on_Lightmap_pressed"]
|
||||
@@ -1,4 +0,0 @@
|
||||
extends Control
|
||||
|
||||
func _ready():
|
||||
$ColorRect/CenterContainer/VBoxContainer/Label.text = tr("LOADING")
|
||||
@@ -1,51 +0,0 @@
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://scenes/UI/Loading.gd" type="Script" id=1]
|
||||
|
||||
[node name="Control" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
script = ExtResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
margin_right = 1024.0
|
||||
margin_bottom = 600.0
|
||||
rect_scale = Vector2( 1.00231, 1 )
|
||||
color = Color( 0, 0, 0, 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="CenterContainer" type="CenterContainer" parent="ColorRect"]
|
||||
margin_top = 282.0
|
||||
margin_right = 1024.0
|
||||
margin_bottom = 282.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="ColorRect/CenterContainer"]
|
||||
margin_left = 479.0
|
||||
margin_right = 544.0
|
||||
margin_bottom = 32.0
|
||||
alignment = 1
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Label" type="Label" parent="ColorRect/CenterContainer/VBoxContainer"]
|
||||
margin_right = 65.0
|
||||
margin_bottom = 14.0
|
||||
text = "Loading ..."
|
||||
align = 1
|
||||
|
||||
[node name="ProgressBar" type="ProgressBar" parent="ColorRect/CenterContainer/VBoxContainer"]
|
||||
margin_top = 18.0
|
||||
margin_right = 65.0
|
||||
margin_bottom = 32.0
|
||||
max_value = 1.0
|
||||
step = 0.1
|
||||
rounded = true
|
||||
@@ -1,70 +0,0 @@
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://scenes/UI/Settings.gd" type="Script" id=1]
|
||||
|
||||
[node name="Settings" type="Control"]
|
||||
script = ExtResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="CenterContainer" type="CenterContainer" parent="."]
|
||||
margin_left = 150.0
|
||||
margin_right = 1024.0
|
||||
margin_bottom = 600.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer"]
|
||||
margin_left = 360.0
|
||||
margin_top = 271.0
|
||||
margin_right = 513.0
|
||||
margin_bottom = 329.0
|
||||
alignment = 1
|
||||
|
||||
[node name="Langue" type="CenterContainer" parent="CenterContainer/VBoxContainer"]
|
||||
margin_right = 153.0
|
||||
margin_bottom = 14.0
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="CenterContainer/VBoxContainer/Langue"]
|
||||
margin_left = 42.0
|
||||
margin_right = 111.0
|
||||
margin_bottom = 14.0
|
||||
|
||||
[node name="Label" type="Label" parent="CenterContainer/VBoxContainer/Langue/HBoxContainer"]
|
||||
margin_right = 50.0
|
||||
margin_bottom = 14.0
|
||||
text = "langue :"
|
||||
|
||||
[node name="data" type="Label" parent="CenterContainer/VBoxContainer/Langue/HBoxContainer"]
|
||||
margin_left = 54.0
|
||||
margin_right = 69.0
|
||||
margin_bottom = 14.0
|
||||
text = "FR"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="gyroscope" type="CenterContainer" parent="CenterContainer/VBoxContainer"]
|
||||
margin_top = 18.0
|
||||
margin_right = 153.0
|
||||
margin_bottom = 58.0
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="CenterContainer/VBoxContainer/gyroscope"]
|
||||
margin_right = 153.0
|
||||
margin_bottom = 40.0
|
||||
|
||||
[node name="Label" type="Label" parent="CenterContainer/VBoxContainer/gyroscope/HBoxContainer"]
|
||||
margin_top = 13.0
|
||||
margin_right = 73.0
|
||||
margin_bottom = 27.0
|
||||
text = "gyroscope :"
|
||||
|
||||
[node name="data" type="CheckButton" parent="CenterContainer/VBoxContainer/gyroscope/HBoxContainer"]
|
||||
margin_left = 77.0
|
||||
margin_right = 153.0
|
||||
margin_bottom = 40.0
|
||||
align = 1
|
||||
|
||||
[connection signal="pressed" from="CenterContainer/VBoxContainer/gyroscope/HBoxContainer/data" to="." method="_on_gyroscope_pressed"]
|
||||
@@ -0,0 +1,323 @@
|
||||
[gd_scene load_steps=24 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]
|
||||
[ext_resource path="res://assets/ui/icones/treasure.png" type="Texture" id=3]
|
||||
[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/fonts/kirsty/kirsty.tres" type="DynamicFont" id=7]
|
||||
|
||||
[sub_resource type="VisualShaderNodeVectorOp" id=12]
|
||||
operator = 3
|
||||
|
||||
[sub_resource type="VisualShaderNodeInput" id=14]
|
||||
input_name = "screen_uv"
|
||||
|
||||
[sub_resource type="VisualShaderNodeVectorDecompose" id=15]
|
||||
output_port_for_preview = 1
|
||||
|
||||
[sub_resource type="VisualShaderNodeVectorScalarMix" id=16]
|
||||
|
||||
[sub_resource type="VisualShaderNodeColorConstant" id=17]
|
||||
constant = Color( 0.2, 0.155, 0.11, 1 )
|
||||
|
||||
[sub_resource type="VisualShaderNodeColorOp" id=18]
|
||||
|
||||
[sub_resource type="VisualShaderNodeVectorScalarMix" id=19]
|
||||
|
||||
[sub_resource type="VisualShaderNodeScalarOp" id=20]
|
||||
default_input_values = [ 0, 0.0, 1, 0.2 ]
|
||||
operator = 2
|
||||
|
||||
[sub_resource type="VisualShaderNodeScalarOp" id=21]
|
||||
default_input_values = [ 0, 0.0, 1, -1.0 ]
|
||||
operator = 2
|
||||
|
||||
[sub_resource type="VisualShaderNodeInput" id=2]
|
||||
input_name = "screen_uv"
|
||||
|
||||
[sub_resource type="VisualShaderNodeTexture" id=3]
|
||||
texture = ExtResource( 4 )
|
||||
texture_type = 1
|
||||
|
||||
[sub_resource type="VisualShaderNodeVectorCompose" id=6]
|
||||
default_input_values = [ 0, 0.0, 1, 0.0, 2, 1.0 ]
|
||||
|
||||
[sub_resource type="VisualShaderNodeScalarConstant" id=7]
|
||||
constant = 0.4
|
||||
|
||||
[sub_resource type="VisualShaderNodeVectorDecompose" id=8]
|
||||
|
||||
[sub_resource type="VisualShaderNodeScalarOp" id=9]
|
||||
default_input_values = [ 0, 0.0, 1, 1.6 ]
|
||||
operator = 3
|
||||
|
||||
[sub_resource type="VisualShader" id=4]
|
||||
code = "shader_type canvas_item;
|
||||
uniform sampler2D tex_frg_4 : hint_albedo;
|
||||
|
||||
|
||||
|
||||
void vertex() {
|
||||
// Output:0
|
||||
|
||||
}
|
||||
|
||||
void fragment() {
|
||||
// Input:3
|
||||
vec3 n_out3p0 = vec3(SCREEN_UV, 0.0);
|
||||
|
||||
// Scalar:6
|
||||
float n_out6p0 = 0.400000;
|
||||
|
||||
// VectorOp:11
|
||||
vec3 n_out11p0 = n_out3p0 / vec3(n_out6p0);
|
||||
|
||||
// VectorDecompose:7
|
||||
float n_out7p0 = n_out11p0.x;
|
||||
float n_out7p1 = n_out11p0.y;
|
||||
float n_out7p2 = n_out11p0.z;
|
||||
|
||||
// ScalarOp:8
|
||||
float n_in8p1 = 1.60000;
|
||||
float n_out8p0 = n_out7p1 / n_in8p1;
|
||||
|
||||
// VectorCompose:5
|
||||
float n_in5p2 = 1.00000;
|
||||
vec3 n_out5p0 = vec3(n_out7p0, n_out8p0, n_in5p2);
|
||||
|
||||
// Texture:4
|
||||
vec4 tex_frg_4_read = texture(tex_frg_4, n_out5p0.xy);
|
||||
vec3 n_out4p0 = tex_frg_4_read.rgb;
|
||||
float n_out4p1 = tex_frg_4_read.a;
|
||||
|
||||
// ScalarOp:22
|
||||
float n_in22p1 = 0.20000;
|
||||
float n_out22p0 = dot(n_out4p0, vec3(0.333333, 0.333333, 0.333333)) * n_in22p1;
|
||||
|
||||
// Color:18
|
||||
vec3 n_out18p0 = vec3(0.200000, 0.155000, 0.110000);
|
||||
float n_out18p1 = 1.000000;
|
||||
|
||||
// ColorOp:19
|
||||
vec3 n_out19p0 = vec3(1.0) - (vec3(1.0) - n_out18p0) * (vec3(1.0) - n_out4p0);
|
||||
|
||||
// Input:14
|
||||
vec3 n_out14p0 = vec3(SCREEN_UV, 0.0);
|
||||
|
||||
// VectorDecompose:15
|
||||
float n_out15p0 = n_out14p0.x;
|
||||
float n_out15p1 = n_out14p0.y;
|
||||
float n_out15p2 = n_out14p0.z;
|
||||
|
||||
// VectorScalarMix:17
|
||||
vec3 n_out17p0 = mix(n_out4p0, n_out19p0, n_out15p1);
|
||||
|
||||
// VectorScalarMix:20
|
||||
vec3 n_out20p0 = mix(vec3(n_out22p0), n_out17p0, n_out15p1);
|
||||
|
||||
// Output:0
|
||||
COLOR.rgb = n_out20p0;
|
||||
|
||||
}
|
||||
|
||||
void light() {
|
||||
// Output:0
|
||||
|
||||
}
|
||||
"
|
||||
graph_offset = Vector2( -1049.92, -110.97 )
|
||||
mode = 1
|
||||
flags/light_only = false
|
||||
nodes/fragment/0/position = Vector2( 2300, 540 )
|
||||
nodes/fragment/3/node = SubResource( 2 )
|
||||
nodes/fragment/3/position = Vector2( -2320, 660 )
|
||||
nodes/fragment/4/node = SubResource( 3 )
|
||||
nodes/fragment/4/position = Vector2( 60, 160 )
|
||||
nodes/fragment/5/node = SubResource( 6 )
|
||||
nodes/fragment/5/position = Vector2( -580, 720 )
|
||||
nodes/fragment/6/node = SubResource( 7 )
|
||||
nodes/fragment/6/position = Vector2( -2300, 800 )
|
||||
nodes/fragment/7/node = SubResource( 8 )
|
||||
nodes/fragment/7/position = Vector2( -1480, 700 )
|
||||
nodes/fragment/8/node = SubResource( 9 )
|
||||
nodes/fragment/8/position = Vector2( -960, 820 )
|
||||
nodes/fragment/11/node = SubResource( 12 )
|
||||
nodes/fragment/11/position = Vector2( -1860, 700 )
|
||||
nodes/fragment/14/node = SubResource( 14 )
|
||||
nodes/fragment/14/position = Vector2( 140, 980 )
|
||||
nodes/fragment/15/node = SubResource( 15 )
|
||||
nodes/fragment/15/position = Vector2( 580, 960 )
|
||||
nodes/fragment/17/node = SubResource( 16 )
|
||||
nodes/fragment/17/position = Vector2( 1240, 560 )
|
||||
nodes/fragment/18/node = SubResource( 17 )
|
||||
nodes/fragment/18/position = Vector2( 520, 620 )
|
||||
nodes/fragment/19/node = SubResource( 18 )
|
||||
nodes/fragment/19/position = Vector2( 840, 580 )
|
||||
nodes/fragment/20/node = SubResource( 19 )
|
||||
nodes/fragment/20/position = Vector2( 1780, 660 )
|
||||
nodes/fragment/22/node = SubResource( 20 )
|
||||
nodes/fragment/22/position = Vector2( 1260, 780 )
|
||||
nodes/fragment/23/node = SubResource( 21 )
|
||||
nodes/fragment/23/position = Vector2( 1080, 1080 )
|
||||
nodes/fragment/connections = PoolIntArray( 8, 0, 5, 1, 7, 1, 8, 0, 7, 0, 5, 0, 5, 0, 4, 0, 3, 0, 11, 0, 6, 0, 11, 1, 11, 0, 7, 0, 14, 0, 15, 0, 4, 0, 17, 0, 15, 1, 17, 2, 4, 0, 19, 1, 18, 0, 19, 0, 19, 0, 17, 1, 4, 0, 22, 0, 20, 0, 0, 0, 15, 1, 23, 0, 22, 0, 20, 0, 15, 1, 20, 2, 17, 0, 20, 1 )
|
||||
|
||||
[sub_resource type="ShaderMaterial" id=5]
|
||||
shader = SubResource( 4 )
|
||||
|
||||
[node name="Summary" type="HBoxContainer"]
|
||||
anchor_bottom = 1.0
|
||||
margin_right = 236.0
|
||||
custom_constants/separation = 0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="PanelWood" type="Panel" parent="."]
|
||||
material = SubResource( 5 )
|
||||
margin_right = 350.0
|
||||
margin_bottom = 900.0
|
||||
rect_min_size = Vector2( 350, 0 )
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="PanelWood"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
rect_clip_content = true
|
||||
size_flags_horizontal = 8
|
||||
size_flags_vertical = 11
|
||||
custom_constants/separation = 30
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="CenterContainer" type="CenterContainer" parent="PanelWood/VBoxContainer"]
|
||||
margin_right = 350.0
|
||||
margin_bottom = 237.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="PanelWood/VBoxContainer/CenterContainer"]
|
||||
margin_left = 111.0
|
||||
margin_top = 54.0
|
||||
margin_right = 239.0
|
||||
margin_bottom = 182.0
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
texture = ExtResource( 3 )
|
||||
stretch_mode = 3
|
||||
flip_h = true
|
||||
|
||||
[node name="ButtonPuzzle" type="TextureButton" parent="PanelWood/VBoxContainer"]
|
||||
margin_top = 267.0
|
||||
margin_right = 350.0
|
||||
margin_bottom = 344.0
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 0
|
||||
texture_normal = ExtResource( 1 )
|
||||
texture_hover = ExtResource( 5 )
|
||||
__meta__ = {
|
||||
"_editor_description_": ""
|
||||
}
|
||||
|
||||
[node name="Label" type="Label" parent="PanelWood/VBoxContainer/ButtonPuzzle"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 3
|
||||
custom_fonts/font = ExtResource( 7 )
|
||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||
text = "Puzz"
|
||||
align = 1
|
||||
valign = 1
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false,
|
||||
"_editor_description_": ""
|
||||
}
|
||||
|
||||
[node name="ButtonSetting" type="TextureButton" parent="PanelWood/VBoxContainer"]
|
||||
margin_top = 374.0
|
||||
margin_right = 350.0
|
||||
margin_bottom = 451.0
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 0
|
||||
texture_normal = ExtResource( 1 )
|
||||
texture_hover = ExtResource( 5 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Label" type="Label" parent="PanelWood/VBoxContainer/ButtonSetting"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 3
|
||||
custom_fonts/font = ExtResource( 7 )
|
||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||
text = "Param"
|
||||
align = 1
|
||||
valign = 1
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false,
|
||||
"_editor_description_": ""
|
||||
}
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="PanelWood/VBoxContainer"]
|
||||
margin_top = 481.0
|
||||
margin_right = 350.0
|
||||
margin_bottom = 719.0
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="ButtonQuit" type="TextureButton" parent="PanelWood/VBoxContainer"]
|
||||
margin_top = 749.0
|
||||
margin_right = 350.0
|
||||
margin_bottom = 826.0
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 0
|
||||
texture_normal = ExtResource( 1 )
|
||||
texture_hover = ExtResource( 5 )
|
||||
__meta__ = {
|
||||
"_editor_description_": ""
|
||||
}
|
||||
|
||||
[node name="Label" type="Label" parent="PanelWood/VBoxContainer/ButtonQuit"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 3
|
||||
custom_fonts/font = ExtResource( 7 )
|
||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||
text = "Quit"
|
||||
align = 1
|
||||
valign = 1
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false,
|
||||
"_editor_description_": ""
|
||||
}
|
||||
|
||||
[node name="LabelVersion" type="Label" parent="PanelWood/VBoxContainer"]
|
||||
margin_top = 856.0
|
||||
margin_right = 350.0
|
||||
margin_bottom = 870.0
|
||||
size_flags_vertical = 0
|
||||
text = "v XX.XX"
|
||||
align = 2
|
||||
|
||||
[node name="MarginContainerBottom" type="MarginContainer" parent="PanelWood/VBoxContainer"]
|
||||
margin_top = 900.0
|
||||
margin_right = 350.0
|
||||
margin_bottom = 900.0
|
||||
size_flags_stretch_ratio = 0.2
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="."]
|
||||
margin_left = 350.0
|
||||
margin_right = 446.0
|
||||
margin_bottom = 900.0
|
||||
rect_clip_content = true
|
||||
size_flags_horizontal = 11
|
||||
size_flags_vertical = 3
|
||||
texture = ExtResource( 2 )
|
||||
stretch_mode = 2
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://scenes/UI/choose_scenes/ChooseScene.gd" type="Script" id=1]
|
||||
[ext_resource path="res://assets/levels/warcraft.jpg" type="Texture" id=2]
|
||||
|
||||
[node name="ChooseScene" type="CenterContainer"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
script = ExtResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="GridContainer" type="GridContainer" parent="."]
|
||||
margin_left = 645.0
|
||||
margin_top = 298.0
|
||||
margin_right = 795.0
|
||||
margin_bottom = 602.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="WarCraft" type="TextureButton" parent="GridContainer"]
|
||||
margin_right = 150.0
|
||||
margin_bottom = 150.0
|
||||
mouse_default_cursor_shape = 2
|
||||
texture_normal = ExtResource( 2 )
|
||||
|
||||
[node name="Lightmap" type="TextureButton" parent="GridContainer"]
|
||||
margin_top = 154.0
|
||||
margin_right = 150.0
|
||||
margin_bottom = 304.0
|
||||
mouse_default_cursor_shape = 2
|
||||
texture_normal = ExtResource( 2 )
|
||||
|
||||
[node name="Label" type="Label" parent="GridContainer/Lightmap"]
|
||||
margin_right = 40.0
|
||||
margin_bottom = 14.0
|
||||
text = "Lightmap"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Container" type="Control" parent="."]
|
||||
margin_left = 720.0
|
||||
margin_top = 450.0
|
||||
margin_right = 720.0
|
||||
margin_bottom = 450.0
|
||||
|
||||
[node name="HBoxContainer" type="VBoxContainer" parent="Container"]
|
||||
margin_right = 824.0
|
||||
margin_bottom = 300.0
|
||||
|
||||
[connection signal="pressed" from="GridContainer/WarCraft" to="." method="_on_WarCraft_pressed"]
|
||||
[connection signal="pressed" from="GridContainer/Lightmap" to="." method="_on_Lightmap_pressed"]
|
||||
@@ -0,0 +1,4 @@
|
||||
extends Control
|
||||
|
||||
func _ready():
|
||||
$VBoxContainer/Label.text = tr("LOADING")
|
||||
@@ -0,0 +1,54 @@
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://scenes/UI/loading/Loading.gd" type="Script" id=1]
|
||||
|
||||
[node name="Control" type="CenterContainer"]
|
||||
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="Label" type="Label" parent="VBoxContainer"]
|
||||
margin_right = 65.0
|
||||
margin_bottom = 14.0
|
||||
text = "Loading ..."
|
||||
align = 1
|
||||
|
||||
[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="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
|
||||
}
|
||||
@@ -12,8 +12,8 @@ func _ready():
|
||||
## PRIVATE
|
||||
func _translation():
|
||||
print("[Settings#_translation]")
|
||||
$CenterContainer/VBoxContainer/Langue/HBoxContainer/Label.text = tr("SETTINGS_LABEL_LANGUE")
|
||||
$CenterContainer/VBoxContainer/gyroscope/HBoxContainer/Label.text = tr("SETTINGS_LABEL_GYROSCOPE")
|
||||
$VBoxContainer/Langue/HBoxContainer/Label.text = tr("SETTINGS_LABEL_LANGUE")
|
||||
$VBoxContainer/gyroscope/HBoxContainer/Label.text = tr("SETTINGS_LABEL_GYROSCOPE")
|
||||
|
||||
func _apply_settings():
|
||||
print("[Settings#_apply_settings]")
|
||||
@@ -0,0 +1,64 @@
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://scenes/UI/settings/Settings.gd" type="Script" id=1]
|
||||
|
||||
[node name="Settings" type="CenterContainer"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
script = ExtResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
margin_left = 643.0
|
||||
margin_top = 421.0
|
||||
margin_right = 796.0
|
||||
margin_bottom = 479.0
|
||||
alignment = 1
|
||||
|
||||
[node name="Langue" type="CenterContainer" parent="VBoxContainer"]
|
||||
margin_right = 153.0
|
||||
margin_bottom = 14.0
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/Langue"]
|
||||
margin_left = 42.0
|
||||
margin_right = 111.0
|
||||
margin_bottom = 14.0
|
||||
|
||||
[node name="Label" type="Label" parent="VBoxContainer/Langue/HBoxContainer"]
|
||||
margin_right = 50.0
|
||||
margin_bottom = 14.0
|
||||
text = "langue :"
|
||||
|
||||
[node name="data" type="Label" parent="VBoxContainer/Langue/HBoxContainer"]
|
||||
margin_left = 54.0
|
||||
margin_right = 69.0
|
||||
margin_bottom = 14.0
|
||||
text = "FR"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="gyroscope" type="CenterContainer" parent="VBoxContainer"]
|
||||
margin_top = 18.0
|
||||
margin_right = 153.0
|
||||
margin_bottom = 58.0
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/gyroscope"]
|
||||
margin_right = 153.0
|
||||
margin_bottom = 40.0
|
||||
|
||||
[node name="Label" type="Label" parent="VBoxContainer/gyroscope/HBoxContainer"]
|
||||
margin_top = 13.0
|
||||
margin_right = 73.0
|
||||
margin_bottom = 27.0
|
||||
text = "gyroscope :"
|
||||
|
||||
[node name="data" type="CheckButton" parent="VBoxContainer/gyroscope/HBoxContainer"]
|
||||
margin_left = 77.0
|
||||
margin_right = 153.0
|
||||
margin_bottom = 40.0
|
||||
align = 1
|
||||
|
||||
[connection signal="pressed" from="VBoxContainer/gyroscope/HBoxContainer/data" to="." method="_on_gyroscope_pressed"]
|
||||
@@ -0,0 +1,18 @@
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://assets/ui/themes/game-title.png" type="Texture" id=1]
|
||||
|
||||
[node name="Control" type="CenterContainer"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
rect_pivot_offset = Vector2( -656.735, -331.043 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="."]
|
||||
margin_left = 385.0
|
||||
margin_top = 372.0
|
||||
margin_right = 1054.0
|
||||
margin_bottom = 528.0
|
||||
texture = ExtResource( 1 )
|
||||
+3
-3
@@ -13,9 +13,9 @@ func _ready():
|
||||
|
||||
## PRIVATE
|
||||
func _translation():
|
||||
$MarginContainer/UI_summary/PanelWood/VBoxContainer/ButtonPuzzle/Label.text = tr("MAIN_BUTTON_PUZZLES")
|
||||
$MarginContainer/UI_summary/PanelWood/VBoxContainer/ButtonSetting/Label.text = tr("MAIN_BUTTON_SETTINGS")
|
||||
$MarginContainer/UI_summary/PanelWood/VBoxContainer/ButtonQuit/Label.text = tr("MAIN_BUTTON_QUIT")
|
||||
$MarginContainer/HBoxContainer/UI_summary/PanelWood/VBoxContainer/ButtonPuzzle/Label.text = tr("MAIN_BUTTON_PUZZLES")
|
||||
$MarginContainer/HBoxContainer/UI_summary/PanelWood/VBoxContainer/ButtonSetting/Label.text = tr("MAIN_BUTTON_SETTINGS")
|
||||
$MarginContainer/HBoxContainer/UI_summary/PanelWood/VBoxContainer/ButtonQuit/Label.text = tr("MAIN_BUTTON_QUIT")
|
||||
|
||||
func _prepare_change_scene():
|
||||
if (current_scene != null):
|
||||
|
||||
+34
-22
@@ -1,21 +1,21 @@
|
||||
[gd_scene load_steps=10 format=2]
|
||||
|
||||
[ext_resource path="res://scenes/main.gd" type="Script" id=1]
|
||||
[ext_resource path="res://assets/ui/themes/game-title.png" type="Texture" id=2]
|
||||
[ext_resource path="res://scenes/UI/title/UI_title.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://assets/ui/themes/bck.jpg" type="Texture" id=6]
|
||||
[ext_resource path="res://assets/ui/UI_summary.tscn" type="PackedScene" id=8]
|
||||
[ext_resource path="res://scenes/UI/UI_summary.tscn" type="PackedScene" id=8]
|
||||
|
||||
[sub_resource type="VisualShaderNodeInput" id=2]
|
||||
[sub_resource type="VisualShaderNodeInput" id=1]
|
||||
input_name = "screen_uv"
|
||||
|
||||
[sub_resource type="VisualShaderNodeTexture" id=3]
|
||||
[sub_resource type="VisualShaderNodeTexture" id=2]
|
||||
texture = ExtResource( 6 )
|
||||
texture_type = 1
|
||||
|
||||
[sub_resource type="VisualShaderNodeInput" id=4]
|
||||
[sub_resource type="VisualShaderNodeInput" id=3]
|
||||
input_name = "screen_texture"
|
||||
|
||||
[sub_resource type="VisualShader" id=5]
|
||||
[sub_resource type="VisualShader" id=4]
|
||||
code = "shader_type canvas_item;
|
||||
uniform sampler2D tex_frg_4 : hint_albedo;
|
||||
|
||||
@@ -42,19 +42,19 @@ void light() {
|
||||
|
||||
}
|
||||
"
|
||||
graph_offset = Vector2( -506, -15 )
|
||||
graph_offset = Vector2( -1049.92, -300 )
|
||||
mode = 1
|
||||
flags/light_only = false
|
||||
nodes/fragment/3/node = SubResource( 2 )
|
||||
nodes/fragment/3/node = SubResource( 1 )
|
||||
nodes/fragment/3/position = Vector2( -840, 460 )
|
||||
nodes/fragment/4/node = SubResource( 3 )
|
||||
nodes/fragment/4/node = SubResource( 2 )
|
||||
nodes/fragment/4/position = Vector2( -80, 60 )
|
||||
nodes/fragment/5/node = SubResource( 4 )
|
||||
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=6]
|
||||
shader = SubResource( 5 )
|
||||
[sub_resource type="ShaderMaterial" id=5]
|
||||
shader = SubResource( 4 )
|
||||
|
||||
[node name="Main" type="Control"]
|
||||
anchor_right = 1.0
|
||||
@@ -65,9 +65,12 @@ __meta__ = {
|
||||
}
|
||||
|
||||
[node name="BackgroundPicture" type="Panel" parent="."]
|
||||
material = SubResource( 6 )
|
||||
material = SubResource( 5 )
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="."]
|
||||
anchor_right = 1.0
|
||||
@@ -76,23 +79,32 @@ __meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="UI_summary" parent="MarginContainer" instance=ExtResource( 8 )]
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer"]
|
||||
margin_right = 1440.0
|
||||
margin_bottom = 900.0
|
||||
|
||||
[node name="UI_summary" parent="MarginContainer/HBoxContainer" instance=ExtResource( 8 )]
|
||||
anchor_bottom = 0.0
|
||||
margin_right = 446.0
|
||||
margin_bottom = 900.0
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="CenterContainer" type="MarginContainer" parent="MarginContainer"]
|
||||
margin_left = 385.0
|
||||
margin_right = 1054.0
|
||||
[node name="CenterContainer" type="MarginContainer" parent="MarginContainer/HBoxContainer"]
|
||||
margin_left = 450.0
|
||||
margin_right = 1440.0
|
||||
margin_bottom = 900.0
|
||||
size_flags_horizontal = 6
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="MarginContainer/CenterContainer"]
|
||||
margin_right = 669.0
|
||||
[node name="scene_instance" parent="MarginContainer/HBoxContainer/CenterContainer" instance=ExtResource( 2 )]
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_right = 990.0
|
||||
margin_bottom = 900.0
|
||||
texture = ExtResource( 2 )
|
||||
|
||||
[editable path="MarginContainer/UI_summary"]
|
||||
[connection signal="pressed" from="MarginContainer/HBoxContainer/UI_summary/PanelWood/VBoxContainer/ButtonPuzzle" to="." method="_on_ButtonPuzzle_pressed"]
|
||||
[connection signal="pressed" from="MarginContainer/HBoxContainer/UI_summary/PanelWood/VBoxContainer/ButtonSetting" to="." method="_on_ButtonSetting_pressed"]
|
||||
[connection signal="pressed" from="MarginContainer/HBoxContainer/UI_summary/PanelWood/VBoxContainer/ButtonQuit" to="." method="_on_ButtonQuit_pressed"]
|
||||
|
||||
[editable path="MarginContainer/HBoxContainer/UI_summary"]
|
||||
|
||||
Reference in New Issue
Block a user