From 94e6307c727a0dcfa8625801263930df5b7dc57e Mon Sep 17 00:00:00 2001 From: Harmony Honey Date: Wed, 27 Dec 2023 00:57:39 -0500 Subject: [PATCH] More Creator progress! (= --- media/image/creator.png | Bin 0 -> 166 bytes src/actor/Player.gd | 9 + src/actor/Player.tscn | 41 +--- src/autoload/Leaderboard.gd | 9 +- src/autoload/Shared.gd | 10 +- src/autoload/Shared.tscn | 1 + src/autoload/UI.gd | 8 +- src/autoload/UI.tscn | 8 +- src/menu/Creator.gd | 87 ++++--- src/menu/Creator.tscn | 437 +++++++++++++++++++++--------------- src/menu/StartMenu.gd | 6 +- src/menu/StartMenu.tscn | 47 +++- src/menu/splash.gd | 3 +- 13 files changed, 379 insertions(+), 287 deletions(-) create mode 100644 media/image/creator.png diff --git a/media/image/creator.png b/media/image/creator.png new file mode 100644 index 0000000000000000000000000000000000000000..7d0607657d6753813211b6b54c0d222089d3efdc GIT binary patch literal 166 zcmeAS@N?(olHy`uVBq!ia0vp^3P8-k!3HE}wEkTWq!^2X+?^QKos)S93yQ^~U0`k55pvx~1&eiY+8r`DM%tUsc~ 0.5 diff --git a/src/actor/Player.tscn b/src/actor/Player.tscn index 9bea52d..e5ef6db 100644 --- a/src/actor/Player.tscn +++ b/src/actor/Player.tscn @@ -7,47 +7,10 @@ [ext_resource path="res://media/audio/sfx/sfx10.wav" type="AudioStream" id=5] [ext_resource path="res://media/audio/sfx/box_drop.wav" type="AudioStream" id=6] [ext_resource path="res://media/audio/sfx/push.wav" type="AudioStream" id=7] - -[sub_resource type="Shader" id=8] -code = "shader_type canvas_item; - -uniform vec4 hat : hint_color = vec4(0.0); -uniform vec4 eye : hint_color = vec4(0.0); -uniform vec4 skin : hint_color = vec4(0.0); -uniform vec4 suit : hint_color = vec4(0.0); -uniform vec4 shoe : hint_color = vec4(0.0); - -uniform vec4 hat_swap : hint_color = vec4(0.0); -uniform vec4 eye_swap : hint_color = vec4(0.0); -uniform vec4 skin_swap : hint_color = vec4(0.0); -uniform vec4 suit_swap : hint_color = vec4(0.0); -uniform vec4 shoe_swap : hint_color = vec4(0.0); - - -void fragment(){ - vec4 col = texture(TEXTURE, UV); - - if (col == hat){ - col = hat_swap; - } - else if (col == eye){ - col = eye_swap; - } - else if (col == skin){ - col = skin_swap; - } - else if (col == suit){ - col = suit_swap; - } - else if (col == shoe){ - col = shoe_swap; - } - - COLOR = col; -}" +[ext_resource path="res://src/shader/player_palette_swap.gdshader" type="Shader" id=8] [sub_resource type="ShaderMaterial" id=9] -shader = SubResource( 8 ) +shader = ExtResource( 8 ) shader_param/hat = Color( 1, 0, 0, 1 ) shader_param/eye = Color( 0, 1, 0, 1 ) shader_param/skin = Color( 0, 0, 1, 1 ) diff --git a/src/autoload/Leaderboard.gd b/src/autoload/Leaderboard.gd index c6662a0..00d6428 100644 --- a/src/autoload/Leaderboard.gd +++ b/src/autoload/Leaderboard.gd @@ -3,7 +3,6 @@ extends Node onready var api_file = load("silent_wolf_api_key.gd") var api_key := "" var is_online := false -var username := "player_name" var scores := {} signal new_score @@ -12,9 +11,7 @@ func _ready(): is_online = api_file is Script if !is_online: return - if OS.has_environment("USERNAME"): - username = OS.get_environment("USERNAME") - print("Leaderboard username: ", username) + print("Leaderboard Shared.username: ", Shared.username) api_key = api_file.source_code.strip_edges().replace('"', "") SilentWolf.configure({ @@ -27,7 +24,7 @@ func _ready(): yield(get_tree(), "idle_frame") - SilentWolf.Scores.persist_score(username, 1) + SilentWolf.Scores.persist_score(Shared.username, 1) func refresh_scores(): if !is_online: return @@ -56,5 +53,5 @@ func refresh_score(map_name): func submit_score(board_name, score): if !is_online: return - SilentWolf.Scores.persist_score("dinkle_" + username + "", score, board_name) + SilentWolf.Scores.persist_score("dinkle_" + Shared.username + "", score, board_name) diff --git a/src/autoload/Shared.gd b/src/autoload/Shared.gd index 00bebc2..161cd0a 100644 --- a/src/autoload/Shared.gd +++ b/src/autoload/Shared.gd @@ -54,6 +54,10 @@ var is_note := false var notes := {} var is_note_replay := false +var username := "crate_kid" +export (Array, Color) var palette := [] +var player_colors = [8, 0, 11, 13] + func _ready(): print("Shared._ready(): ") @@ -170,7 +174,7 @@ func change_map(): UI.notes.visible = is_level_select UI.notes_label.text = str(notes.size()) UI.keys(false, false) - UI.pause_label("score" if is_level_select else "menu") + UI.labels("pick", "erase" if scene_path == creator_path else "back", "score" if is_level_select else "menu") if is_in_game: TouchScreen.turn_arrows(false) @@ -204,9 +208,7 @@ func change_map(): UI.keys(false, true) TouchScreen.show_keys(false, true, false) elif scene_path == creator_path: - UI.keys(true, true, true) - TouchScreen.turn_arrows(false) - TouchScreen.show_keys(true, true, true, true) + UI.keys(true, true, false) ### Saving and Loading diff --git a/src/autoload/Shared.tscn b/src/autoload/Shared.tscn index addf593..7b50ff1 100644 --- a/src/autoload/Shared.tscn +++ b/src/autoload/Shared.tscn @@ -9,6 +9,7 @@ shader = ExtResource( 3 ) [node name="Shared" type="Node"] script = ExtResource( 1 ) +palette = [ Color( 0.670588, 0.321569, 0.211765, 1 ), Color( 0.494118, 0.145098, 0.32549, 1 ), Color( 0.372549, 0.341176, 0.309804, 1 ), Color( 0.513726, 0.462745, 0.611765, 1 ), Color( 0.760784, 0.764706, 0.780392, 1 ), Color( 1, 1, 1, 1 ), Color( 1, 0, 0.301961, 1 ), Color( 1, 0.639216, 0, 1 ), Color( 1, 0.92549, 0.152941, 1 ), Color( 0, 0.894118, 0.211765, 1 ), Color( 0, 0.529412, 0.317647, 1 ), Color( 0.160784, 0.678431, 1, 1 ), Color( 1, 0.466667, 0.658824, 1 ), Color( 1, 0.8, 0.666667, 1 ) ] [node name="Ghost" type="Sprite" parent="."] modulate = Color( 1, 1, 1, 0.65098 ) diff --git a/src/autoload/UI.gd b/src/autoload/UI.gd index 6c198d0..1f0f94c 100644 --- a/src/autoload/UI.gd +++ b/src/autoload/UI.gd @@ -1,7 +1,9 @@ extends CanvasLayer onready var x := $Center/Control/List/X +onready var x_label := $Center/Control/List/X/Desc onready var c := $Center/Control/List/C +onready var c_label := $Center/Control/List/C/Desc onready var top := $Center/Control/Top onready var pause_label := $Center/Control/Top/P/Desc @@ -19,5 +21,7 @@ func keys(left := true, right := true, is_expand := true, _top := false): top.visible = _top spacer.size_flags_horizontal = spacer.SIZE_EXPAND_FILL if is_expand else spacer.SIZE_FILL -func pause_label(arg := "menu"): - pause_label.text = arg +func labels (_x := "pick", _c := "back", _pause := "menu"): + x_label.text = _x + c_label.text = _c + pause_label.text = _pause diff --git a/src/autoload/UI.tscn b/src/autoload/UI.tscn index b1424b2..78d1ac7 100644 --- a/src/autoload/UI.tscn +++ b/src/autoload/UI.tscn @@ -74,13 +74,13 @@ text = "pick" [node name="Spacer" type="Control" parent="Center/Control/List"] margin_left = 39.0 -margin_right = 179.0 +margin_right = 173.0 margin_bottom = 12.0 rect_min_size = Vector2( 4, 0 ) size_flags_horizontal = 3 [node name="C" type="HBoxContainer" parent="Center/Control/List"] -margin_left = 179.0 +margin_left = 173.0 margin_right = 218.0 margin_bottom = 12.0 custom_constants/separation = 2 @@ -96,10 +96,10 @@ uppercase = true [node name="Desc" type="Label" parent="Center/Control/List/C"] margin_left = 15.0 margin_top = 3.0 -margin_right = 39.0 +margin_right = 45.0 margin_bottom = 9.0 custom_fonts/font = SubResource( 3 ) -text = "back" +text = "erase" [node name="Notes" type="Control" parent="Center/Control"] margin_left = 3.0 diff --git a/src/menu/Creator.gd b/src/menu/Creator.gd index 9d3c8c5..e995189 100644 --- a/src/menu/Creator.gd +++ b/src/menu/Creator.gd @@ -1,26 +1,26 @@ extends Node2D -onready var keyboard := $Keyboard +onready var keyboard := $Menu/Keyboard var rows : Array = []#keyboard.get_children() -onready var cursor_node := $Cursor +onready var cursor_node := $Menu/Cursor var cursor_x := 0 var cursor_y := 0 +onready var arrows := $Menu/Arrows -onready var name_label := $Name -onready var done_node := $Done +onready var name_label := $Menu/Name +onready var done_node := $Menu/Done -export (Array, Color) var palette := [] -var colors = [7, 0, 10, 13] +var colors = [0, 0, 0, 0] var swatches = [] onready var player_mat : ShaderMaterial = $Player/Sprite.material - +var is_input := true func _ready(): # setup rows & columns rows = [] - for i in $ColorPick.get_children(): + for i in $Menu/ColorPick.get_children(): rows.append([i]) for i in keyboard.get_children(): @@ -31,39 +31,57 @@ func _ready(): # setup swatches swatches = [] - for i in $Colors.get_children(): + for i in $Menu/Colors.get_children(): swatches.append(i.get_children()) for i in 4: fill_swatches(i) + + name_label.text = Shared.username + colors = Shared.player_colors + for i in 4: + set_color(i, colors[i]) + fill_swatches(i) func _input(event): - if event.is_action_pressed("jump"): - # write letter - if cursor_y > 3 and cursor_y < 8: - var s = rows[cursor_y][cursor_x].get_child(0).text - var l = name_label.text - name_label.text = (l + s).substr(0, 16) - elif event.is_action_pressed("action"): + if !is_input: return + + var btnx = btn.p("right") - btn.p("left") + var btny = btn.p("down") - btn.p("up") + var is_jump = event.is_action_pressed("jump") + var is_action = event.is_action_pressed("action") + + if btny != 0: + if (cursor_y == 3 and btny == 1) or (cursor_y == 8 and btny == -1): cursor_x = 4 + move_cursor(cursor_x, cursor_y + btny) + + elif cursor_y < 4: + if btnx != 0 or is_jump or is_action: + var c = btnx + if btnx == 0: + c = 1 if is_action else -1 + set_color(cursor_y, colors[cursor_y] + c) + fill_swatches() + elif cursor_y > 3 and cursor_y < 8: + if btnx != 0: + move_cursor(cursor_x + btnx) # erase letter - if cursor_y > 3 and cursor_y < 8: + if is_action: var s = name_label.text s.erase(s.length() - 1, 1) name_label.text = s - else: - var btnx = btn.p("right") - btn.p("left") - var btny = btn.p("down") - btn.p("up") - if btnx != 0: - move_cursor(cursor_x + btnx) - - if cursor_y < 4: - set_color(cursor_y, colors[cursor_y] + btnx) - fill_swatches() - elif btny != 0: - if cursor_y == 4 and btny == -1: cursor_x = 4 - move_cursor(cursor_x, cursor_y + btny) - + # write letter + elif is_jump: + var s = rows[cursor_y][cursor_x].get_child(0).text + var l = name_label.text + name_label.text = (l + s).substr(0, 16) + elif cursor_y == rows.size() - 1: + if is_jump: + Shared.wipe_scene(Shared.main_menu_path) + is_input = false + Shared.username = name_label.text + Shared.player_colors = colors func move_cursor(_x := cursor_x, _y = cursor_y): cursor_y = clamp(_y, 0, rows.size() - 1) @@ -71,19 +89,22 @@ func move_cursor(_x := cursor_x, _y = cursor_y): cursor_node.rect_global_position = rows[cursor_y][cursor_x].rect_global_position cursor_node.rect_size = rows[cursor_y][cursor_x].rect_size + + arrows.rect_global_position = cursor_node.rect_global_position + arrows.visible = cursor_y < 4 func set_color(_row := cursor_y, _col = colors[cursor_y]): - colors[_row] = wrapi(_col, 0, palette.size()) + colors[_row] = wrapi(_col, 0, Shared.palette.size()) var params = [["hat"], ["skin"], ["suit"], ["eye", "shoe"]] for i in params[_row]: - player_mat.set_shader_param(i + "_swap", palette[colors[_row]]) + player_mat.set_shader_param(i + "_swap", Shared.palette[colors[_row]]) func fill_swatches(_row := cursor_y): var offset = [-2, -1, 0, 1, 2] for i in 5: - swatches[_row][i].color = palette[wrapi(colors[_row] + offset[i], 0, palette.size())] + swatches[_row][i].color = Shared.palette[wrapi(colors[_row] + offset[i], 0, Shared.palette.size())] diff --git a/src/menu/Creator.tscn b/src/menu/Creator.tscn index dfbbebe..62c5a09 100644 --- a/src/menu/Creator.tscn +++ b/src/menu/Creator.tscn @@ -1,21 +1,15 @@ [gd_scene load_steps=18 format=2] -[ext_resource path="res://media/audio/sfx/sfx10.wav" type="AudioStream" id=1] +[ext_resource path="res://src/stage/SolidTileMap.tscn" type="PackedScene" id=1] [ext_resource path="res://media/image/player_swap.png" type="Texture" id=2] -[ext_resource path="res://media/audio/sfx/btn3.wav" type="AudioStream" id=3] -[ext_resource path="res://media/audio/sfx/player_jump.wav" type="AudioStream" id=4] -[ext_resource path="res://media/audio/sfx/box_drop.wav" type="AudioStream" id=5] -[ext_resource path="res://media/audio/sfx/push.wav" type="AudioStream" id=6] +[ext_resource path="res://src/stage/GameCamera.tscn" type="PackedScene" id=3] +[ext_resource path="res://src/stage/DetailTileMap.tscn" type="PackedScene" id=4] +[ext_resource path="res://media/image/tinyArrow.png" type="Texture" id=5] +[ext_resource path="res://media/image/creator.png" type="Texture" id=6] [ext_resource path="res://media/font/QuinqueFive.ttf" type="DynamicFontData" id=7] [ext_resource path="res://src/menu/Creator.gd" type="Script" id=8] [ext_resource path="res://media/font/ThaleahFat.ttf" type="DynamicFontData" id=9] -[sub_resource type="DynamicFont" id=16] -size = 32 -extra_spacing_top = -6 -extra_spacing_bottom = -12 -font_data = ExtResource( 9 ) - [sub_resource type="Shader" id=8] code = "shader_type canvas_item; @@ -129,31 +123,40 @@ tracks/0/keys = { "values": [ 2, 0, 4, 0 ] } +[sub_resource type="DynamicFont" id=16] +size = 32 +outline_size = 2 +outline_color = Color( 0, 0, 0, 1 ) +extra_spacing_top = -6 +extra_spacing_bottom = -12 +font_data = ExtResource( 9 ) + [sub_resource type="DynamicFont" id=14] size = 5 font_data = ExtResource( 7 ) [node name="Creator" type="Node2D"] script = ExtResource( 8 ) -palette = [ Color( 0.670588, 0.321569, 0.211765, 1 ), Color( 0.494118, 0.145098, 0.32549, 1 ), Color( 0.372549, 0.341176, 0.309804, 1 ), Color( 0.760784, 0.764706, 0.780392, 1 ), Color( 1, 1, 1, 1 ), Color( 1, 0, 0.301961, 1 ), Color( 1, 0.639216, 0, 1 ), Color( 1, 0.92549, 0.152941, 1 ), Color( 0, 0.894118, 0.211765, 1 ), Color( 0, 0.529412, 0.317647, 1 ), Color( 0.160784, 0.678431, 1, 1 ), Color( 0.513726, 0.462745, 0.611765, 1 ), Color( 1, 0.466667, 0.658824, 1 ), Color( 1, 0.8, 0.666667, 1 ) ] -[node name="Header" type="Label" parent="."] -margin_left = 4.0 -margin_top = 2.0 -margin_right = 98.0 -margin_bottom = 44.0 -custom_fonts/font = SubResource( 16 ) -text = "create" +[node name="SolidTileMap" parent="." instance=ExtResource( 1 )] +tile_data = PoolIntArray( 458729, 0, 1, 458730, 0, 1, 458731, 0, 1, 458732, 0, 1, 458733, 536870912, 0, 458734, 0, 1, 458735, 0, 0, 458736, 0, 1, 458737, 536870912, 0, 458738, 536870912, 1, 524274, 0, 0, 589810, 536870912, 1, 655346, 536870912, 0 ) + +[node name="DetailTileMap" parent="." instance=ExtResource( 4 )] +z_index = -11 +tile_data = PoolIntArray( 65516, 5, 0, 65517, 5, 0, 65518, 5, 0, 65519, 5, 0, 65520, 5, 0, 131052, 5, 0, 131053, 5, 0, 131054, 5, 0, 131055, 5, 0, 131056, 5, 0, 196588, 1073741829, 2, 196589, 5, 0, 196590, 5, 0, 196591, 5, 0, 196592, 1610612741, 2, 262125, 1073741829, 2, 262126, 5, 0, 262127, 1610612741, 2, 327662, 5, 1, 393198, 5, 1, 524273, 1073741829, 2, 524275, -1610612731, 2, 589811, -1610612731, 0, 655347, -1610612731, 0 ) + +[node name="GameCamera" parent="." instance=ExtResource( 3 )] +position = Vector2( -92, 48 ) +zoom = Vector2( 0.5, 0.5 ) [node name="Player" type="Node2D" parent="."] -position = Vector2( 84, 31 ) +position = Vector2( -120, 40 ) z_index = 15 z_as_relative = false [node name="Sprite" type="Sprite" parent="Player"] material = SubResource( 15 ) -position = Vector2( 12, 0 ) -scale = Vector2( 3, 3 ) +position = Vector2( 4, 0 ) texture = ExtResource( 2 ) hframes = 7 region_rect = Rect2( 40, 0, 8, 24 ) @@ -165,103 +168,108 @@ anims/idle = SubResource( 11 ) anims/jump = SubResource( 12 ) anims/run = SubResource( 13 ) -[node name="AudioJump" type="AudioStreamPlayer2D" parent="Player"] -stream = ExtResource( 4 ) -attenuation = 0.101532 -bus = "SFX" +[node name="Menu" type="CanvasLayer" parent="."] -[node name="AudioPickup" type="AudioStreamPlayer2D" parent="Player"] -stream = ExtResource( 3 ) -bus = "SFX" +[node name="Header" type="Label" parent="Menu"] +margin_left = 4.0 +margin_top = 2.0 +margin_right = 98.0 +margin_bottom = 44.0 +custom_fonts/font = SubResource( 16 ) +text = "style" -[node name="AudioDrop" type="AudioStreamPlayer2D" parent="Player"] -stream = ExtResource( 5 ) -bus = "SFX" - -[node name="AudioThrow" type="AudioStreamPlayer2D" parent="Player"] -stream = ExtResource( 1 ) -bus = "SFX" - -[node name="AudioPush" type="AudioStreamPlayer2D" parent="Player"] -stream = ExtResource( 6 ) -bus = "SFX" - -[node name="NameBack" type="ColorRect" parent="."] +[node name="NameBack" type="ColorRect" parent="Menu"] modulate = Color( 1, 1, 1, 0.2 ) -margin_left = 65.0 +margin_left = 119.0 margin_top = 66.0 -margin_right = 166.0 +margin_right = 220.0 margin_bottom = 75.0 -[node name="KeyboardBack" type="ColorRect" parent="."] +[node name="KeyboardBack" type="ColorRect" parent="Menu"] modulate = Color( 1, 1, 1, 0.2 ) -margin_left = 60.0 +margin_left = 114.0 margin_top = 79.0 -margin_right = 170.0 +margin_right = 224.0 margin_bottom = 111.0 -[node name="DoneBack" type="ColorRect" parent="."] +[node name="DoneBack" type="ColorRect" parent="Menu"] modulate = Color( 1, 1, 1, 0.2 ) -margin_left = 95.0 +margin_left = 149.0 margin_top = 115.0 -margin_right = 134.0 +margin_right = 188.0 margin_bottom = 124.0 -[node name="ColorPick" type="VBoxContainer" parent="."] +[node name="ColorPick" type="VBoxContainer" parent="Menu"] modulate = Color( 1, 1, 1, 0.2 ) -margin_left = 132.0 +margin_left = 133.0 margin_top = 12.0 -margin_right = 205.0 +margin_right = 199.0 margin_bottom = 64.0 custom_constants/separation = 12 -[node name="ColorRect2" type="ColorRect" parent="ColorPick"] -margin_right = 73.0 +[node name="ColorRect2" type="ColorRect" parent="Menu/ColorPick"] +margin_right = 66.0 margin_bottom = 2.0 rect_min_size = Vector2( 0, 2 ) size_flags_vertical = 4 -[node name="ColorRect3" type="ColorRect" parent="ColorPick"] +[node name="ColorRect3" type="ColorRect" parent="Menu/ColorPick"] margin_top = 14.0 -margin_right = 73.0 +margin_right = 66.0 margin_bottom = 16.0 rect_min_size = Vector2( 0, 2 ) size_flags_vertical = 4 -[node name="ColorRect4" type="ColorRect" parent="ColorPick"] +[node name="ColorRect4" type="ColorRect" parent="Menu/ColorPick"] margin_top = 28.0 -margin_right = 73.0 +margin_right = 66.0 margin_bottom = 30.0 rect_min_size = Vector2( 0, 2 ) size_flags_vertical = 4 -[node name="ColorRect5" type="ColorRect" parent="ColorPick"] +[node name="ColorRect5" type="ColorRect" parent="Menu/ColorPick"] margin_top = 42.0 -margin_right = 73.0 +margin_right = 66.0 margin_bottom = 44.0 rect_min_size = Vector2( 0, 2 ) size_flags_vertical = 4 -[node name="Cursor" type="ColorRect" parent="."] -margin_left = 43.0 -margin_top = 86.0 -margin_right = 50.0 -margin_bottom = 93.0 +[node name="Arrows" type="Control" parent="Menu"] +modulate = Color( 1, 0, 0.301961, 1 ) +margin_left = 137.0 +margin_top = 12.0 +margin_right = 137.0 +margin_bottom = 12.0 + +[node name="Sprite" type="Sprite" parent="Menu/Arrows"] +position = Vector2( -3, 1 ) +texture = ExtResource( 5 ) + +[node name="Sprite2" type="Sprite" parent="Menu/Arrows"] +position = Vector2( 69, 1 ) +texture = ExtResource( 5 ) +flip_h = true + +[node name="Cursor" type="ColorRect" parent="Menu"] +margin_left = 116.0 +margin_top = 81.0 +margin_right = 123.0 +margin_bottom = 88.0 color = Color( 1, 0, 0.301961, 1 ) -[node name="Colors" type="VBoxContainer" parent="."] -margin_left = 132.0 +[node name="Colors" type="VBoxContainer" parent="Menu"] +margin_left = 130.0 margin_top = 8.0 -margin_right = 205.0 +margin_right = 203.0 margin_bottom = 60.0 custom_constants/separation = 4 -[node name="Hat" type="HBoxContainer" parent="Colors"] +[node name="Hat" type="HBoxContainer" parent="Menu/Colors"] margin_right = 73.0 margin_bottom = 10.0 alignment = 1 -[node name="ColorRect2" type="ColorRect" parent="Colors/Hat"] +[node name="ColorRect2" type="ColorRect" parent="Menu/Colors/Hat"] margin_left = 7.0 margin_top = 1.0 margin_right = 15.0 @@ -271,7 +279,7 @@ size_flags_horizontal = 4 size_flags_vertical = 4 color = Color( 1, 0, 0.301961, 1 ) -[node name="ColorRect3" type="ColorRect" parent="Colors/Hat"] +[node name="ColorRect3" type="ColorRect" parent="Menu/Colors/Hat"] margin_left = 19.0 margin_top = 1.0 margin_right = 27.0 @@ -281,7 +289,7 @@ size_flags_horizontal = 4 size_flags_vertical = 4 color = Color( 1, 0.639216, 0, 1 ) -[node name="ColorRect4" type="ColorRect" parent="Colors/Hat"] +[node name="ColorRect4" type="ColorRect" parent="Menu/Colors/Hat"] margin_left = 31.0 margin_right = 41.0 margin_bottom = 10.0 @@ -290,7 +298,7 @@ size_flags_horizontal = 4 size_flags_vertical = 4 color = Color( 1, 0.92549, 0.152941, 1 ) -[node name="ColorRect5" type="ColorRect" parent="Colors/Hat"] +[node name="ColorRect5" type="ColorRect" parent="Menu/Colors/Hat"] margin_left = 45.0 margin_top = 1.0 margin_right = 53.0 @@ -300,7 +308,7 @@ size_flags_horizontal = 4 size_flags_vertical = 4 color = Color( 0, 0.894118, 0.211765, 1 ) -[node name="ColorRect" type="ColorRect" parent="Colors/Hat"] +[node name="ColorRect" type="ColorRect" parent="Menu/Colors/Hat"] margin_left = 57.0 margin_top = 1.0 margin_right = 65.0 @@ -310,14 +318,14 @@ size_flags_horizontal = 4 size_flags_vertical = 4 color = Color( 0.160784, 0.678431, 1, 1 ) -[node name="Skin" type="HBoxContainer" parent="Colors"] +[node name="Skin" type="HBoxContainer" parent="Menu/Colors"] margin_top = 14.0 margin_right = 73.0 margin_bottom = 24.0 rect_min_size = Vector2( 8, 8 ) alignment = 1 -[node name="ColorRect4" type="ColorRect" parent="Colors/Skin"] +[node name="ColorRect4" type="ColorRect" parent="Menu/Colors/Skin"] margin_left = 7.0 margin_top = 1.0 margin_right = 15.0 @@ -327,7 +335,7 @@ size_flags_horizontal = 4 size_flags_vertical = 4 color = Color( 0.494118, 0.145098, 0.32549, 1 ) -[node name="ColorRect5" type="ColorRect" parent="Colors/Skin"] +[node name="ColorRect5" type="ColorRect" parent="Menu/Colors/Skin"] margin_left = 19.0 margin_top = 1.0 margin_right = 27.0 @@ -337,7 +345,7 @@ size_flags_horizontal = 4 size_flags_vertical = 4 color = Color( 0, 0.529412, 0.317647, 1 ) -[node name="ColorRect" type="ColorRect" parent="Colors/Skin"] +[node name="ColorRect" type="ColorRect" parent="Menu/Colors/Skin"] margin_left = 31.0 margin_right = 41.0 margin_bottom = 10.0 @@ -346,7 +354,7 @@ size_flags_horizontal = 4 size_flags_vertical = 4 color = Color( 0.670588, 0.321569, 0.211765, 1 ) -[node name="ColorRect2" type="ColorRect" parent="Colors/Skin"] +[node name="ColorRect2" type="ColorRect" parent="Menu/Colors/Skin"] margin_left = 45.0 margin_top = 1.0 margin_right = 53.0 @@ -356,7 +364,7 @@ size_flags_horizontal = 4 size_flags_vertical = 4 color = Color( 0.372549, 0.341176, 0.309804, 1 ) -[node name="ColorRect3" type="ColorRect" parent="Colors/Skin"] +[node name="ColorRect3" type="ColorRect" parent="Menu/Colors/Skin"] margin_left = 57.0 margin_top = 1.0 margin_right = 65.0 @@ -366,14 +374,14 @@ size_flags_horizontal = 4 size_flags_vertical = 4 color = Color( 0.760784, 0.764706, 0.780392, 1 ) -[node name="Suit" type="HBoxContainer" parent="Colors"] +[node name="Suit" type="HBoxContainer" parent="Menu/Colors"] margin_top = 28.0 margin_right = 73.0 margin_bottom = 38.0 rect_min_size = Vector2( 8, 8 ) alignment = 1 -[node name="ColorRect4" type="ColorRect" parent="Colors/Suit"] +[node name="ColorRect4" type="ColorRect" parent="Menu/Colors/Suit"] margin_left = 7.0 margin_top = 1.0 margin_right = 15.0 @@ -383,7 +391,7 @@ size_flags_horizontal = 4 size_flags_vertical = 4 color = Color( 1, 0.92549, 0.152941, 1 ) -[node name="ColorRect5" type="ColorRect" parent="Colors/Suit"] +[node name="ColorRect5" type="ColorRect" parent="Menu/Colors/Suit"] margin_left = 19.0 margin_top = 1.0 margin_right = 27.0 @@ -393,7 +401,7 @@ size_flags_horizontal = 4 size_flags_vertical = 4 color = Color( 0, 0.894118, 0.211765, 1 ) -[node name="ColorRect" type="ColorRect" parent="Colors/Suit"] +[node name="ColorRect" type="ColorRect" parent="Menu/Colors/Suit"] margin_left = 31.0 margin_right = 41.0 margin_bottom = 10.0 @@ -402,7 +410,7 @@ size_flags_horizontal = 4 size_flags_vertical = 4 color = Color( 0.160784, 0.678431, 1, 1 ) -[node name="ColorRect2" type="ColorRect" parent="Colors/Suit"] +[node name="ColorRect2" type="ColorRect" parent="Menu/Colors/Suit"] margin_left = 45.0 margin_top = 1.0 margin_right = 53.0 @@ -412,7 +420,7 @@ size_flags_horizontal = 4 size_flags_vertical = 4 color = Color( 0.513726, 0.462745, 0.611765, 1 ) -[node name="ColorRect3" type="ColorRect" parent="Colors/Suit"] +[node name="ColorRect3" type="ColorRect" parent="Menu/Colors/Suit"] margin_left = 57.0 margin_top = 1.0 margin_right = 65.0 @@ -422,14 +430,14 @@ size_flags_horizontal = 4 size_flags_vertical = 4 color = Color( 1, 0.466667, 0.658824, 1 ) -[node name="Eye" type="HBoxContainer" parent="Colors"] +[node name="Eye" type="HBoxContainer" parent="Menu/Colors"] margin_top = 42.0 margin_right = 73.0 margin_bottom = 52.0 rect_min_size = Vector2( 8, 8 ) alignment = 1 -[node name="ColorRect3" type="ColorRect" parent="Colors/Eye"] +[node name="ColorRect3" type="ColorRect" parent="Menu/Colors/Eye"] margin_left = 7.0 margin_top = 1.0 margin_right = 15.0 @@ -439,7 +447,7 @@ size_flags_horizontal = 4 size_flags_vertical = 4 color = Color( 0.760784, 0.764706, 0.780392, 1 ) -[node name="ColorRect4" type="ColorRect" parent="Colors/Eye"] +[node name="ColorRect4" type="ColorRect" parent="Menu/Colors/Eye"] margin_left = 19.0 margin_top = 1.0 margin_right = 27.0 @@ -449,7 +457,7 @@ size_flags_horizontal = 4 size_flags_vertical = 4 color = Color( 1, 0.466667, 0.658824, 1 ) -[node name="ColorRect5" type="ColorRect" parent="Colors/Eye"] +[node name="ColorRect5" type="ColorRect" parent="Menu/Colors/Eye"] margin_left = 31.0 margin_right = 41.0 margin_bottom = 10.0 @@ -458,7 +466,7 @@ size_flags_horizontal = 4 size_flags_vertical = 4 color = Color( 1, 0.8, 0.666667, 1 ) -[node name="ColorRect" type="ColorRect" parent="Colors/Eye"] +[node name="ColorRect" type="ColorRect" parent="Menu/Colors/Eye"] margin_left = 45.0 margin_top = 1.0 margin_right = 53.0 @@ -468,7 +476,7 @@ size_flags_horizontal = 4 size_flags_vertical = 4 color = Color( 0.494118, 0.145098, 0.32549, 1 ) -[node name="ColorRect2" type="ColorRect" parent="Colors/Eye"] +[node name="ColorRect2" type="ColorRect" parent="Menu/Colors/Eye"] margin_left = 57.0 margin_top = 1.0 margin_right = 65.0 @@ -478,32 +486,85 @@ size_flags_horizontal = 4 size_flags_vertical = 4 color = Color( 0, 0.529412, 0.317647, 1 ) -[node name="Name" type="Label" parent="."] -margin_left = 66.0 +[node name="Labels" type="VBoxContainer" parent="Menu"] +margin_left = 208.0 +margin_top = 9.0 +margin_right = 281.0 +margin_bottom = 62.0 +custom_constants/separation = 6 + +[node name="Control" type="Control" parent="Menu/Labels"] +margin_right = 73.0 +margin_bottom = 8.0 +rect_min_size = Vector2( 8, 8 ) + +[node name="Sprite" type="Sprite" parent="Menu/Labels/Control"] +texture = ExtResource( 6 ) +centered = false +hframes = 4 + +[node name="Control2" type="Control" parent="Menu/Labels"] +margin_top = 14.0 +margin_right = 73.0 +margin_bottom = 22.0 +rect_min_size = Vector2( 8, 8 ) + +[node name="Sprite" type="Sprite" parent="Menu/Labels/Control2"] +texture = ExtResource( 6 ) +centered = false +hframes = 4 +frame = 1 + +[node name="Control3" type="Control" parent="Menu/Labels"] +margin_top = 28.0 +margin_right = 73.0 +margin_bottom = 36.0 +rect_min_size = Vector2( 8, 8 ) + +[node name="Sprite" type="Sprite" parent="Menu/Labels/Control3"] +texture = ExtResource( 6 ) +centered = false +hframes = 4 +frame = 2 + +[node name="Control4" type="Control" parent="Menu/Labels"] +margin_top = 42.0 +margin_right = 73.0 +margin_bottom = 50.0 +rect_min_size = Vector2( 8, 8 ) + +[node name="Sprite" type="Sprite" parent="Menu/Labels/Control4"] +texture = ExtResource( 6 ) +centered = false +hframes = 4 +frame = 3 + +[node name="Name" type="Label" parent="Menu"] +margin_left = 120.0 margin_top = 67.0 -margin_right = 165.0 +margin_right = 219.0 margin_bottom = 74.0 custom_fonts/font = SubResource( 14 ) text = "crate_kid" align = 1 -[node name="Keyboard" type="VBoxContainer" parent="."] -margin_left = 62.0 +[node name="Keyboard" type="VBoxContainer" parent="Menu"] +margin_left = 116.0 margin_top = 81.0 -margin_right = 168.0 +margin_right = 222.0 margin_bottom = 109.0 custom_constants/separation = 0 -[node name="Row1" type="HBoxContainer" parent="Keyboard"] +[node name="Row1" type="HBoxContainer" parent="Menu/Keyboard"] margin_right = 106.0 margin_bottom = 7.0 -[node name="Key" type="Control" parent="Keyboard/Row1"] +[node name="Key" type="Control" parent="Menu/Keyboard/Row1"] margin_right = 7.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row1/Key"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row1/Key"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -513,13 +574,13 @@ text = "1" align = 1 valign = 1 -[node name="Key2" type="Control" parent="Keyboard/Row1"] +[node name="Key2" type="Control" parent="Menu/Keyboard/Row1"] margin_left = 11.0 margin_right = 18.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row1/Key2"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row1/Key2"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -529,13 +590,13 @@ text = "2" align = 1 valign = 1 -[node name="Key3" type="Control" parent="Keyboard/Row1"] +[node name="Key3" type="Control" parent="Menu/Keyboard/Row1"] margin_left = 22.0 margin_right = 29.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row1/Key3"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row1/Key3"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -545,13 +606,13 @@ text = "3" align = 1 valign = 1 -[node name="Key4" type="Control" parent="Keyboard/Row1"] +[node name="Key4" type="Control" parent="Menu/Keyboard/Row1"] margin_left = 33.0 margin_right = 40.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row1/Key4"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row1/Key4"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -561,13 +622,13 @@ text = "4" align = 1 valign = 1 -[node name="Key5" type="Control" parent="Keyboard/Row1"] +[node name="Key5" type="Control" parent="Menu/Keyboard/Row1"] margin_left = 44.0 margin_right = 51.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row1/Key5"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row1/Key5"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -577,13 +638,13 @@ text = "5" align = 1 valign = 1 -[node name="Key6" type="Control" parent="Keyboard/Row1"] +[node name="Key6" type="Control" parent="Menu/Keyboard/Row1"] margin_left = 55.0 margin_right = 62.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row1/Key6"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row1/Key6"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -593,13 +654,13 @@ text = "6" align = 1 valign = 1 -[node name="Key7" type="Control" parent="Keyboard/Row1"] +[node name="Key7" type="Control" parent="Menu/Keyboard/Row1"] margin_left = 66.0 margin_right = 73.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row1/Key7"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row1/Key7"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -609,13 +670,13 @@ text = "7" align = 1 valign = 1 -[node name="Key8" type="Control" parent="Keyboard/Row1"] +[node name="Key8" type="Control" parent="Menu/Keyboard/Row1"] margin_left = 77.0 margin_right = 84.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row1/Key8"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row1/Key8"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -625,13 +686,13 @@ text = "8" align = 1 valign = 1 -[node name="Key9" type="Control" parent="Keyboard/Row1"] +[node name="Key9" type="Control" parent="Menu/Keyboard/Row1"] margin_left = 88.0 margin_right = 95.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row1/Key9"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row1/Key9"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -641,13 +702,13 @@ text = "9" align = 1 valign = 1 -[node name="Key10" type="Control" parent="Keyboard/Row1"] +[node name="Key10" type="Control" parent="Menu/Keyboard/Row1"] margin_left = 99.0 margin_right = 106.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row1/Key10"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row1/Key10"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -657,17 +718,17 @@ text = "0" align = 1 valign = 1 -[node name="Row2" type="HBoxContainer" parent="Keyboard"] +[node name="Row2" type="HBoxContainer" parent="Menu/Keyboard"] margin_top = 7.0 margin_right = 106.0 margin_bottom = 14.0 -[node name="Key" type="Control" parent="Keyboard/Row2"] +[node name="Key" type="Control" parent="Menu/Keyboard/Row2"] margin_right = 7.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row2/Key"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row2/Key"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -677,13 +738,13 @@ text = "q" align = 1 valign = 1 -[node name="Key2" type="Control" parent="Keyboard/Row2"] +[node name="Key2" type="Control" parent="Menu/Keyboard/Row2"] margin_left = 11.0 margin_right = 18.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row2/Key2"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row2/Key2"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -693,13 +754,13 @@ text = "w" align = 1 valign = 1 -[node name="Key3" type="Control" parent="Keyboard/Row2"] +[node name="Key3" type="Control" parent="Menu/Keyboard/Row2"] margin_left = 22.0 margin_right = 29.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row2/Key3"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row2/Key3"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -709,13 +770,13 @@ text = "e" align = 1 valign = 1 -[node name="Key4" type="Control" parent="Keyboard/Row2"] +[node name="Key4" type="Control" parent="Menu/Keyboard/Row2"] margin_left = 33.0 margin_right = 40.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row2/Key4"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row2/Key4"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -725,13 +786,13 @@ text = "r" align = 1 valign = 1 -[node name="Key5" type="Control" parent="Keyboard/Row2"] +[node name="Key5" type="Control" parent="Menu/Keyboard/Row2"] margin_left = 44.0 margin_right = 51.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row2/Key5"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row2/Key5"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -741,13 +802,13 @@ text = "t" align = 1 valign = 1 -[node name="Key6" type="Control" parent="Keyboard/Row2"] +[node name="Key6" type="Control" parent="Menu/Keyboard/Row2"] margin_left = 55.0 margin_right = 62.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row2/Key6"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row2/Key6"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -757,13 +818,13 @@ text = "y" align = 1 valign = 1 -[node name="Key7" type="Control" parent="Keyboard/Row2"] +[node name="Key7" type="Control" parent="Menu/Keyboard/Row2"] margin_left = 66.0 margin_right = 73.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row2/Key7"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row2/Key7"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -773,13 +834,13 @@ text = "u" align = 1 valign = 1 -[node name="Key8" type="Control" parent="Keyboard/Row2"] +[node name="Key8" type="Control" parent="Menu/Keyboard/Row2"] margin_left = 77.0 margin_right = 84.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row2/Key8"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row2/Key8"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -789,13 +850,13 @@ text = "i" align = 1 valign = 1 -[node name="Key9" type="Control" parent="Keyboard/Row2"] +[node name="Key9" type="Control" parent="Menu/Keyboard/Row2"] margin_left = 88.0 margin_right = 95.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row2/Key9"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row2/Key9"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -805,13 +866,13 @@ text = "o" align = 1 valign = 1 -[node name="Key10" type="Control" parent="Keyboard/Row2"] +[node name="Key10" type="Control" parent="Menu/Keyboard/Row2"] margin_left = 99.0 margin_right = 106.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row2/Key10"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row2/Key10"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -821,17 +882,17 @@ text = "p" align = 1 valign = 1 -[node name="Row3" type="HBoxContainer" parent="Keyboard"] +[node name="Row3" type="HBoxContainer" parent="Menu/Keyboard"] margin_top = 14.0 margin_right = 106.0 margin_bottom = 21.0 -[node name="Key" type="Control" parent="Keyboard/Row3"] +[node name="Key" type="Control" parent="Menu/Keyboard/Row3"] margin_right = 7.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row3/Key"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row3/Key"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -841,13 +902,13 @@ text = "a" align = 1 valign = 1 -[node name="Key2" type="Control" parent="Keyboard/Row3"] +[node name="Key2" type="Control" parent="Menu/Keyboard/Row3"] margin_left = 11.0 margin_right = 18.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row3/Key2"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row3/Key2"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -857,13 +918,13 @@ text = "s" align = 1 valign = 1 -[node name="Key3" type="Control" parent="Keyboard/Row3"] +[node name="Key3" type="Control" parent="Menu/Keyboard/Row3"] margin_left = 22.0 margin_right = 29.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row3/Key3"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row3/Key3"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -873,13 +934,13 @@ text = "d" align = 1 valign = 1 -[node name="Key4" type="Control" parent="Keyboard/Row3"] +[node name="Key4" type="Control" parent="Menu/Keyboard/Row3"] margin_left = 33.0 margin_right = 40.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row3/Key4"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row3/Key4"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -889,13 +950,13 @@ text = "f" align = 1 valign = 1 -[node name="Key5" type="Control" parent="Keyboard/Row3"] +[node name="Key5" type="Control" parent="Menu/Keyboard/Row3"] margin_left = 44.0 margin_right = 51.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row3/Key5"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row3/Key5"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -905,13 +966,13 @@ text = "g" align = 1 valign = 1 -[node name="Key6" type="Control" parent="Keyboard/Row3"] +[node name="Key6" type="Control" parent="Menu/Keyboard/Row3"] margin_left = 55.0 margin_right = 62.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row3/Key6"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row3/Key6"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -921,13 +982,13 @@ text = "h" align = 1 valign = 1 -[node name="Key7" type="Control" parent="Keyboard/Row3"] +[node name="Key7" type="Control" parent="Menu/Keyboard/Row3"] margin_left = 66.0 margin_right = 73.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row3/Key7"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row3/Key7"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -937,13 +998,13 @@ text = "j" align = 1 valign = 1 -[node name="Key8" type="Control" parent="Keyboard/Row3"] +[node name="Key8" type="Control" parent="Menu/Keyboard/Row3"] margin_left = 77.0 margin_right = 84.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row3/Key8"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row3/Key8"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -953,13 +1014,13 @@ text = "k" align = 1 valign = 1 -[node name="Key9" type="Control" parent="Keyboard/Row3"] +[node name="Key9" type="Control" parent="Menu/Keyboard/Row3"] margin_left = 88.0 margin_right = 95.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row3/Key9"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row3/Key9"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -969,13 +1030,13 @@ text = "l" align = 1 valign = 1 -[node name="Key10" type="Control" parent="Keyboard/Row3"] +[node name="Key10" type="Control" parent="Menu/Keyboard/Row3"] margin_left = 99.0 margin_right = 106.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row3/Key10"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row3/Key10"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -985,17 +1046,17 @@ text = "." align = 1 valign = 1 -[node name="Row4" type="HBoxContainer" parent="Keyboard"] +[node name="Row4" type="HBoxContainer" parent="Menu/Keyboard"] margin_top = 21.0 margin_right = 106.0 margin_bottom = 28.0 -[node name="Key" type="Control" parent="Keyboard/Row4"] +[node name="Key" type="Control" parent="Menu/Keyboard/Row4"] margin_right = 7.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row4/Key"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row4/Key"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -1005,13 +1066,13 @@ text = "z" align = 1 valign = 1 -[node name="Key2" type="Control" parent="Keyboard/Row4"] +[node name="Key2" type="Control" parent="Menu/Keyboard/Row4"] margin_left = 11.0 margin_right = 18.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row4/Key2"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row4/Key2"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -1021,13 +1082,13 @@ text = "x" align = 1 valign = 1 -[node name="Key3" type="Control" parent="Keyboard/Row4"] +[node name="Key3" type="Control" parent="Menu/Keyboard/Row4"] margin_left = 22.0 margin_right = 29.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row4/Key3"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row4/Key3"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -1037,13 +1098,13 @@ text = "c" align = 1 valign = 1 -[node name="Key4" type="Control" parent="Keyboard/Row4"] +[node name="Key4" type="Control" parent="Menu/Keyboard/Row4"] margin_left = 33.0 margin_right = 40.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row4/Key4"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row4/Key4"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -1053,13 +1114,13 @@ text = "v" align = 1 valign = 1 -[node name="Key5" type="Control" parent="Keyboard/Row4"] +[node name="Key5" type="Control" parent="Menu/Keyboard/Row4"] margin_left = 44.0 margin_right = 51.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row4/Key5"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row4/Key5"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -1069,13 +1130,13 @@ text = "b" align = 1 valign = 1 -[node name="Key6" type="Control" parent="Keyboard/Row4"] +[node name="Key6" type="Control" parent="Menu/Keyboard/Row4"] margin_left = 55.0 margin_right = 62.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row4/Key6"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row4/Key6"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -1085,13 +1146,13 @@ text = "n" align = 1 valign = 1 -[node name="Key7" type="Control" parent="Keyboard/Row4"] +[node name="Key7" type="Control" parent="Menu/Keyboard/Row4"] margin_left = 66.0 margin_right = 73.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row4/Key7"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row4/Key7"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -1101,13 +1162,13 @@ text = "m" align = 1 valign = 1 -[node name="Key8" type="Control" parent="Keyboard/Row4"] +[node name="Key8" type="Control" parent="Menu/Keyboard/Row4"] margin_left = 77.0 margin_right = 84.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row4/Key8"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row4/Key8"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -1117,13 +1178,13 @@ text = " " align = 1 valign = 1 -[node name="Key9" type="Control" parent="Keyboard/Row4"] +[node name="Key9" type="Control" parent="Menu/Keyboard/Row4"] margin_left = 88.0 margin_right = 95.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row4/Key9"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row4/Key9"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -1133,13 +1194,13 @@ text = "_" align = 1 valign = 1 -[node name="Key10" type="Control" parent="Keyboard/Row4"] +[node name="Key10" type="Control" parent="Menu/Keyboard/Row4"] margin_left = 99.0 margin_right = 106.0 margin_bottom = 7.0 rect_min_size = Vector2( 7, 7 ) -[node name="Label" type="Label" parent="Keyboard/Row4/Key10"] +[node name="Label" type="Label" parent="Menu/Keyboard/Row4/Key10"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 1.0 @@ -1149,15 +1210,17 @@ text = "-" align = 1 valign = 1 -[node name="Done" type="Control" parent="."] -margin_left = 96.0 +[node name="Done" type="Control" parent="Menu"] +margin_left = 150.0 margin_top = 116.0 -margin_right = 133.0 +margin_right = 187.0 margin_bottom = 123.0 -[node name="Label" type="Label" parent="Done"] +[node name="Label" type="Label" parent="Menu/Done"] margin_left = 1.0 margin_right = 37.0 margin_bottom = 7.0 custom_fonts/font = SubResource( 14 ) text = "Accept" + +[editable path="GameCamera"] diff --git a/src/menu/StartMenu.gd b/src/menu/StartMenu.gd index 6d4adf2..1949337 100644 --- a/src/menu/StartMenu.gd +++ b/src/menu/StartMenu.gd @@ -6,7 +6,7 @@ onready var quit_menu := $Control/Quit var cursor := 0 setget set_cursor var menu_items := [] -var main_items := ["play", "options", "credits"] +var main_items := ["play", "creator", "options", "credits"] var quit_items := ["yes", "no"] var is_input = true @@ -49,6 +49,10 @@ func menu_select(tag : String = menu_items[cursor].to_lower()): Shared.wipe_scene(Shared.level_select_path) is_input = false node_audio_play.play() + "creator": + Shared.wipe_scene(Shared.creator_path) + is_input = false + node_audio_play.play() "options": Shared.wipe_scene(Shared.options_menu_path) is_input = false diff --git a/src/menu/StartMenu.tscn b/src/menu/StartMenu.tscn index b48e542..c9d9ea4 100644 --- a/src/menu/StartMenu.tscn +++ b/src/menu/StartMenu.tscn @@ -1,5 +1,6 @@ -[gd_scene load_steps=25 format=2] +[gd_scene load_steps=26 format=2] +[ext_resource path="res://media/image/creator.png" type="Texture" id=1] [ext_resource path="res://src/menu/StartMenu.gd" type="Script" id=3] [ext_resource path="res://media/image/HarmonyHoneyLogo.png" type="Texture" id=4] [ext_resource path="res://media/font/ThaleahFat.ttf" type="DynamicFontData" id=5] @@ -59,13 +60,13 @@ margin_left = 2.0 margin_top = 32.0 margin_right = 66.0 margin_bottom = 104.0 -custom_constants/separation = 9 +custom_constants/separation = 5 alignment = 1 [node name="Item" type="HBoxContainer" parent="Control/Menu/List"] -margin_top = 9.0 +margin_top = 4.0 margin_right = 64.0 -margin_bottom = 21.0 +margin_bottom = 16.0 rect_min_size = Vector2( 0, 12 ) custom_constants/separation = 2 @@ -90,10 +91,38 @@ custom_fonts/font = SubResource( 3 ) text = "play" uppercase = true -[node name="Item2" type="HBoxContainer" parent="Control/Menu/List"] -margin_top = 30.0 +[node name="Item4" type="HBoxContainer" parent="Control/Menu/List"] +margin_top = 21.0 margin_right = 64.0 -margin_bottom = 42.0 +margin_bottom = 33.0 +rect_min_size = Vector2( 0, 12 ) +custom_constants/separation = 2 + +[node name="Image" type="Control" parent="Control/Menu/List/Item4"] +margin_right = 8.0 +margin_bottom = 12.0 +rect_min_size = Vector2( 8, 8 ) + +[node name="Sprite" type="Sprite" parent="Control/Menu/List/Item4/Image"] +position = Vector2( 0, 2 ) +texture = ExtResource( 1 ) +centered = false +hframes = 4 +frame = 2 + +[node name="Label" type="Label" parent="Control/Menu/List/Item4"] +margin_left = 10.0 +margin_top = 2.0 +margin_right = 52.0 +margin_bottom = 10.0 +custom_fonts/font = SubResource( 3 ) +text = "style" +uppercase = true + +[node name="Item2" type="HBoxContainer" parent="Control/Menu/List"] +margin_top = 38.0 +margin_right = 64.0 +margin_bottom = 50.0 rect_min_size = Vector2( 0, 12 ) custom_constants/separation = 2 @@ -120,9 +149,9 @@ text = "option" uppercase = true [node name="Item3" type="HBoxContainer" parent="Control/Menu/List"] -margin_top = 51.0 +margin_top = 55.0 margin_right = 64.0 -margin_bottom = 63.0 +margin_bottom = 67.0 rect_min_size = Vector2( 0, 12 ) custom_constants/separation = 2 diff --git a/src/menu/splash.gd b/src/menu/splash.gd index b01798d..e2076bc 100644 --- a/src/menu/splash.gd +++ b/src/menu/splash.gd @@ -5,5 +5,4 @@ func _ready(): Music.play() $AudioStreamPlayer.play() yield(get_tree().create_timer(1.5), "timeout") - #Shared.wipe_scene(Shared.main_menu_path) - Shared.wipe_scene("res://src/menu/Creator.tscn") + Shared.wipe_scene(Shared.main_menu_path)