Graphical Overhaul
This commit is contained in:
parent
b9eec60df7
commit
65bf9e0c86
15 changed files with 338 additions and 23 deletions
15
scenes/Menu/start_menu.gd
Normal file
15
scenes/Menu/start_menu.gd
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
extends Control
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
|
||||
|
||||
func _on_start_button_pressed() -> void:
|
||||
get_parent().get_parent().loadGrid()
|
||||
114
scenes/Menu/start_menu.tscn
Normal file
114
scenes/Menu/start_menu.tscn
Normal file
|
|
@ -0,0 +1,114 @@
|
|||
[gd_scene load_steps=9 format=3 uid="uid://b8cyvtgn8kxnr"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://1nebbd65iyce" path="res://Theme/main.tres" id="1_t0oee"]
|
||||
[ext_resource type="Script" path="res://scenes/Menu/start_menu.gd" id="2_1x51p"]
|
||||
[ext_resource type="LabelSettings" uid="uid://cd783ubpcytc8" path="res://Theme/label.tres" id="3_wtvc4"]
|
||||
[ext_resource type="Texture2D" uid="uid://cbuxv7iwn0qm7" path="res://assets/Blocks/Block.png" id="4_kxydi"]
|
||||
[ext_resource type="LabelSettings" uid="uid://4dxhnwmd773s" path="res://Theme/labelSmall.tres" id="5_mn7xi"]
|
||||
[ext_resource type="Texture2D" uid="uid://dni2qahrw2p0k" path="res://assets/Blocks/SpecialBlock.png" id="6_rda4c"]
|
||||
[ext_resource type="Texture2D" uid="uid://moh5papp3x0c" path="res://assets/Examples/ExpandExample.png" id="7_mn4r0"]
|
||||
[ext_resource type="Texture2D" uid="uid://jmobplsqdy6o" path="res://assets/Blocks/ExpandBlock.png" id="7_tut8s"]
|
||||
|
||||
[node name="StartMenu" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("1_t0oee")
|
||||
script = ExtResource("2_1x51p")
|
||||
|
||||
[node name="StartButton" type="Button" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 7
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -156.0
|
||||
offset_top = -320.0
|
||||
offset_right = 4.0
|
||||
offset_bottom = -224.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
scale = Vector2(2, 2)
|
||||
text = "Start"
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 5
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = -156.0
|
||||
offset_top = 64.0
|
||||
offset_right = 164.0
|
||||
offset_bottom = 192.0
|
||||
grow_horizontal = 2
|
||||
text = "Texpand"
|
||||
label_settings = ExtResource("3_wtvc4")
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -245.0
|
||||
offset_top = -90.0
|
||||
offset_right = 245.0
|
||||
offset_bottom = 90.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("4_kxydi")
|
||||
|
||||
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = " Gives 1 Point "
|
||||
label_settings = ExtResource("5_mn7xi")
|
||||
|
||||
[node name="HBoxContainer2" type="HBoxContainer" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="VBoxContainer/HBoxContainer2"]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("6_rda4c")
|
||||
|
||||
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer2"]
|
||||
layout_mode = 2
|
||||
text = " Gives 3 Points "
|
||||
label_settings = ExtResource("5_mn7xi")
|
||||
|
||||
[node name="HBoxContainer4" type="HBoxContainer" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="VBoxContainer/HBoxContainer4"]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("7_tut8s")
|
||||
|
||||
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer4"]
|
||||
layout_mode = 2
|
||||
text = " Gives x2 Points"
|
||||
label_settings = ExtResource("5_mn7xi")
|
||||
|
||||
[node name="HBoxContainer3" type="HBoxContainer" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="VBoxContainer/HBoxContainer3"]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("7_mn4r0")
|
||||
|
||||
[connection signal="pressed" from="StartButton" to="." method="_on_start_button_pressed"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue