implement level menu
This commit is contained in:
parent
b275630598
commit
6831dd3a3f
8 changed files with 185 additions and 5 deletions
37
gmtk_2024/menu/level_menu/level_button.tscn
Normal file
37
gmtk_2024/menu/level_menu/level_button.tscn
Normal file
|
@ -0,0 +1,37 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://t83eid7pf4iv"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://yg2u8vwwbpv1" path="res://textures/File-Icon.png" id="1_2sfn6"]
|
||||
[ext_resource type="Texture2D" uid="uid://bc2ictes4mln1" path="res://textures/File-Icon-Closed.png" id="2_6ev1f"]
|
||||
[ext_resource type="FontFile" uid="uid://d3pbvdemdbxes" path="res://CommodoreSixtyFour.ttf" id="3_732s0"]
|
||||
[ext_resource type="Script" path="res://scripts/level_menu_level_button.gd" id="3_t0h1w"]
|
||||
|
||||
[node name="LevelButton" type="TextureButton"]
|
||||
custom_minimum_size = Vector2(50, 50)
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
disabled = true
|
||||
texture_normal = ExtResource("1_2sfn6")
|
||||
texture_disabled = ExtResource("2_6ev1f")
|
||||
ignore_texture_size = true
|
||||
stretch_mode = 5
|
||||
script = ExtResource("3_t0h1w")
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||
theme_override_constants/outline_size = 3
|
||||
theme_override_fonts/font = ExtResource("3_732s0")
|
||||
theme_override_font_sizes/font_size = 35
|
||||
text = "1"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[connection signal="pressed" from="." to="." method="_on_pressed"]
|
Loading…
Add table
Add a link
Reference in a new issue