Update new GUI.
- Add font - first step to update main menu Ui - replace button with a subscene - add props textures - write a new resolution default - actvate HDPI
This commit is contained in:
+116
-82
@@ -1,8 +1,62 @@
|
||||
[gd_scene load_steps=5 format=2]
|
||||
[gd_scene load_steps=13 format=2]
|
||||
|
||||
[ext_resource path="res://scenes/main.gd" type="Script" id=1]
|
||||
[ext_resource path="res://icon.png" type="Texture" id=2]
|
||||
[ext_resource path="res://assets/ui/themes/game-title.png" type="Texture" id=2]
|
||||
[ext_resource path="res://assets/fonts/MKXTitle.tres" type="DynamicFont" id=3]
|
||||
[ext_resource path="res://assets/ui/themes/leather.theme" type="Theme" id=4]
|
||||
[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]
|
||||
|
||||
[sub_resource type="VisualShaderNodeInput" id=2]
|
||||
input_name = "screen_uv"
|
||||
|
||||
[sub_resource type="VisualShaderNodeTexture" id=3]
|
||||
texture = ExtResource( 6 )
|
||||
texture_type = 1
|
||||
|
||||
[sub_resource type="VisualShaderNodeInput" id=4]
|
||||
input_name = "screen_texture"
|
||||
|
||||
[sub_resource type="VisualShader" id=5]
|
||||
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( -506, -15 )
|
||||
mode = 1
|
||||
flags/light_only = false
|
||||
nodes/fragment/3/node = SubResource( 2 )
|
||||
nodes/fragment/3/position = Vector2( -840, 460 )
|
||||
nodes/fragment/4/node = SubResource( 3 )
|
||||
nodes/fragment/4/position = Vector2( -80, 60 )
|
||||
nodes/fragment/5/node = SubResource( 4 )
|
||||
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="GDScript" id=1]
|
||||
script/source = "extends LinkButton
|
||||
@@ -10,95 +64,30 @@ script/source = "extends LinkButton
|
||||
# Quit the game with properly exit code
|
||||
"
|
||||
|
||||
[node name="Main" type="Node"]
|
||||
[node name="Main" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
margin_right = 1024.0
|
||||
margin_bottom = 600.0
|
||||
color = Color( 0.156863, 0.00392157, 0.0156863, 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Grid" type="GridContainer" parent="."]
|
||||
[node name="BackgroundPicture" type="Panel" parent="."]
|
||||
material = SubResource( 6 )
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
|
||||
[node name="Action" type="Panel" parent="."]
|
||||
visible = false
|
||||
margin_left = -1.33484
|
||||
margin_right = 1022.67
|
||||
margin_bottom = 600.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Menu" type="Panel" parent="Grid"]
|
||||
|
||||
[node name="Banner" type="Panel" parent="Grid/Menu"]
|
||||
margin_right = 150.0
|
||||
margin_bottom = 150.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="Grid/Menu/Banner"]
|
||||
margin_right = 150.0
|
||||
margin_bottom = 150.0
|
||||
color = Color( 0.992157, 0.705882, 0, 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Title" type="Label" parent="Grid/Menu/Banner/ColorRect"]
|
||||
margin_right = 150.0
|
||||
margin_bottom = 150.0
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
text = "Loki
|
||||
"
|
||||
align = 1
|
||||
valign = 2
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Grid/Menu/Banner/ColorRect/Title"]
|
||||
margin_left = 48.0
|
||||
margin_right = 176.0
|
||||
margin_bottom = 128.0
|
||||
rect_scale = Vector2( 0.5, 0.5 )
|
||||
texture = ExtResource( 2 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Action" type="Panel" parent="Grid/Menu"]
|
||||
margin_top = 150.0
|
||||
margin_right = 150.0
|
||||
margin_right = 148.665
|
||||
margin_bottom = 600.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Puzzles" type="LinkButton" parent="Grid/Menu/Action"]
|
||||
margin_left = 10.0
|
||||
margin_top = 30.0
|
||||
margin_right = 130.0
|
||||
margin_bottom = 64.0
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
text = "Puzzles"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Settings" type="LinkButton" parent="Grid/Menu/Action"]
|
||||
margin_left = 10.0
|
||||
margin_top = 130.0
|
||||
margin_right = 114.0
|
||||
margin_bottom = 164.0
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
text = "Settings"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Quit" type="LinkButton" parent="Grid/Menu/Action"]
|
||||
[node name="Quit" type="LinkButton" parent="Action"]
|
||||
margin_left = 10.0
|
||||
margin_top = 401.059
|
||||
margin_right = 161.0
|
||||
@@ -110,6 +99,51 @@ __meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[connection signal="pressed" from="Grid/Menu/Action/Puzzles" to="." method="_on_New_pressed"]
|
||||
[connection signal="pressed" from="Grid/Menu/Action/Settings" to="." method="_on_Settings_pressed"]
|
||||
[connection signal="pressed" from="Grid/Menu/Action/Quit" to="." method="_on_Quit_pressed"]
|
||||
[node name="Button" type="Button" parent="Action"]
|
||||
margin_right = 130.0
|
||||
margin_bottom = 66.0
|
||||
theme = ExtResource( 4 )
|
||||
text = "thfh"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="."]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="UI_summary" parent="MarginContainer" 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="ButtonQuit" parent="MarginContainer/UI_summary/PanelWood/VBoxContainer/SummaryFooter" index="0"]
|
||||
margin_right = 350.0
|
||||
|
||||
[node name="Label" parent="MarginContainer/UI_summary/PanelWood/VBoxContainer/SummaryFooter" index="1"]
|
||||
margin_right = 350.0
|
||||
|
||||
[node name="CenterContainer" type="MarginContainer" parent="MarginContainer"]
|
||||
margin_left = 385.0
|
||||
margin_right = 1054.0
|
||||
margin_bottom = 900.0
|
||||
size_flags_horizontal = 6
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="MarginContainer/CenterContainer"]
|
||||
margin_right = 669.0
|
||||
margin_bottom = 900.0
|
||||
texture = ExtResource( 2 )
|
||||
|
||||
[connection signal="pressed" from="MarginContainer/UI_summary/PanelWood/VBoxContainer/SummaryHeader/ButtonPuzzle" to="." method="_on_ButtonPuzzle_pressed"]
|
||||
[connection signal="pressed" from="MarginContainer/UI_summary/PanelWood/VBoxContainer/SummaryHeader/ButtonSetting" to="." method="_on_ButtonSetting_pressed"]
|
||||
[connection signal="pressed" from="MarginContainer/UI_summary/PanelWood/VBoxContainer/SummaryFooter/ButtonQuit" to="." method="_on_ButtonQuit_pressed"]
|
||||
|
||||
[editable path="MarginContainer/UI_summary"]
|
||||
[editable path="MarginContainer/UI_summary/PanelWood/VBoxContainer/SummaryHeader"]
|
||||
[editable path="MarginContainer/UI_summary/PanelWood/VBoxContainer/SummaryFooter"]
|
||||
|
||||
Reference in New Issue
Block a user