Reordering scene, and setup basic scene instance on main view

This commit is contained in:
stilobique-surface
2021-05-14 22:27:40 +02:00
parent accc6ec957
commit 2ce155385c
17 changed files with 238 additions and 368 deletions
+34 -22
View File
@@ -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"]