From 7ce3593119b399196d71c88e3d1cab08ff38bb80 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Fri, 19 Jul 2024 14:18:21 +0200 Subject: cleanup and begin lobby rework --- UI/Lobby/Player.gd | 11 ++ UI/Lobby/Player.tscn | 317 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 328 insertions(+) create mode 100644 UI/Lobby/Player.gd create mode 100644 UI/Lobby/Player.tscn (limited to 'UI/Lobby') diff --git a/UI/Lobby/Player.gd b/UI/Lobby/Player.gd new file mode 100644 index 0000000..a1bbfe7 --- /dev/null +++ b/UI/Lobby/Player.gd @@ -0,0 +1,11 @@ +extends Control + + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + pass diff --git a/UI/Lobby/Player.tscn b/UI/Lobby/Player.tscn new file mode 100644 index 0000000..9bb5e2b --- /dev/null +++ b/UI/Lobby/Player.tscn @@ -0,0 +1,317 @@ +[gd_scene load_steps=9 format=3 uid="uid://bkice5n440lwj"] + +[ext_resource type="Script" path="res://UI/Lobby/Player.gd" id="1_ed5f6"] +[ext_resource type="Texture2D" uid="uid://fg3wtt3q51ly" path="res://Assets/Characters/Tux/Front.png" id="2_tetw5"] +[ext_resource type="Texture2D" uid="uid://dibcyc08wpu0a" path="res://Assets/Characters/Duck/Front.png" id="3_nh4rr"] +[ext_resource type="Texture2D" uid="uid://b2h82tdfbogjx" path="res://Assets/Characters/Dove/Front.png" id="4_ogxut"] +[ext_resource type="Texture2D" uid="uid://cnuotyqgyqplm" path="res://Assets/Characters/Pidgin/Front.png" id="5_tq24r"] +[ext_resource type="Texture2D" uid="uid://c338yichhecvr" path="res://Assets/Characters/Monkey/Front.png" id="6_vpjrx"] +[ext_resource type="Texture2D" uid="uid://bfr2ek0h8rveb" path="res://Assets/Characters/Elephant/Front.png" id="7_0ilrg"] + +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_1y22c"] +bg_color = Color(1, 0.984314, 0.647059, 0) + +[node name="Player" type="Control"] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_right = -576.0 +offset_bottom = -324.0 +grow_horizontal = 2 +grow_vertical = 2 +script = ExtResource("1_ed5f6") + +[node name="Character" type="Control" parent="."] +visible = false +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="Panel" type="Panel" parent="Character"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="MarginContainer" type="MarginContainer" parent="Character/Panel"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_constants/margin_left = 10 +theme_override_constants/margin_top = 10 +theme_override_constants/margin_right = 10 +theme_override_constants/margin_bottom = 10 + +[node name="Control" type="Control" parent="Character/Panel/MarginContainer"] +layout_mode = 2 + +[node name="ScrollContainer" type="ScrollContainer" parent="Character/Panel/MarginContainer/Control"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="GridContainer" type="HFlowContainer" parent="Character/Panel/MarginContainer/Control/ScrollContainer"] +layout_mode = 2 +size_flags_horizontal = 3 +size_flags_vertical = 3 + +[node name="Tux" type="Control" parent="Character/Panel/MarginContainer/Control/ScrollContainer/GridContainer"] +custom_minimum_size = Vector2(150, 150) +layout_mode = 2 + +[node name="Panel" type="Panel" parent="Character/Panel/MarginContainer/Control/ScrollContainer/GridContainer/Tux"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_styles/panel = SubResource("StyleBoxFlat_1y22c") + +[node name="TextureRect" type="TextureRect" parent="Character/Panel/MarginContainer/Control/ScrollContainer/GridContainer/Tux/Panel"] +custom_minimum_size = Vector2(64, 64) +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -32.0 +offset_top = -32.0 +offset_right = 32.0 +offset_bottom = 32.0 +grow_horizontal = 2 +grow_vertical = 2 +texture = ExtResource("2_tetw5") + +[node name="DuckPanel" type="Panel" parent="Character/Panel/MarginContainer/Control/ScrollContainer/GridContainer"] +custom_minimum_size = Vector2(150, 150) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxFlat_1y22c") + +[node name="Duck" type="TextureRect" parent="Character/Panel/MarginContainer/Control/ScrollContainer/GridContainer/DuckPanel"] +custom_minimum_size = Vector2(64, 64) +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -32.0 +offset_top = -32.0 +offset_right = 32.0 +offset_bottom = 32.0 +grow_horizontal = 2 +grow_vertical = 2 +texture = ExtResource("3_nh4rr") + +[node name="DovePanel" type="Panel" parent="Character/Panel/MarginContainer/Control/ScrollContainer/GridContainer"] +custom_minimum_size = Vector2(150, 150) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxFlat_1y22c") + +[node name="Dove" type="TextureRect" parent="Character/Panel/MarginContainer/Control/ScrollContainer/GridContainer/DovePanel"] +custom_minimum_size = Vector2(64, 64) +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -32.0 +offset_top = -32.0 +offset_right = 32.0 +offset_bottom = 32.0 +grow_horizontal = 2 +grow_vertical = 2 +texture = ExtResource("4_ogxut") + +[node name="PidginPanel" type="Panel" parent="Character/Panel/MarginContainer/Control/ScrollContainer/GridContainer"] +custom_minimum_size = Vector2(150, 150) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxFlat_1y22c") + +[node name="Pidgin" type="TextureRect" parent="Character/Panel/MarginContainer/Control/ScrollContainer/GridContainer/PidginPanel"] +custom_minimum_size = Vector2(64, 64) +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -16.0 +offset_top = -16.0 +offset_right = 16.0 +offset_bottom = 16.0 +grow_horizontal = 2 +grow_vertical = 2 +texture = ExtResource("5_tq24r") + +[node name="MonkeyPanel" type="Panel" parent="Character/Panel/MarginContainer/Control/ScrollContainer/GridContainer"] +custom_minimum_size = Vector2(150, 150) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxFlat_1y22c") + +[node name="Monkey" type="TextureRect" parent="Character/Panel/MarginContainer/Control/ScrollContainer/GridContainer/MonkeyPanel"] +custom_minimum_size = Vector2(64, 64) +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -16.0 +offset_top = -16.0 +offset_right = 16.0 +offset_bottom = 16.0 +grow_horizontal = 2 +grow_vertical = 2 +texture = ExtResource("6_vpjrx") + +[node name="ElephantPanel" type="Panel" parent="Character/Panel/MarginContainer/Control/ScrollContainer/GridContainer"] +custom_minimum_size = Vector2(150, 150) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxFlat_1y22c") + +[node name="Elephant" type="TextureRect" parent="Character/Panel/MarginContainer/Control/ScrollContainer/GridContainer/ElephantPanel"] +custom_minimum_size = Vector2(64, 64) +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -32.0 +offset_top = -32.0 +offset_right = 32.0 +offset_bottom = 32.0 +grow_horizontal = 2 +grow_vertical = 2 +texture = ExtResource("7_0ilrg") + +[node name="Button" type="Button" parent="Character/Panel/MarginContainer/Control"] +layout_mode = 1 +anchors_preset = 3 +anchor_left = 1.0 +anchor_top = 1.0 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = -45.0 +offset_top = -31.0 +grow_horizontal = 0 +grow_vertical = 0 +text = "Next" + +[node name="Abilities" type="Control" parent="."] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="Panel" type="Panel" parent="Abilities"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="MarginContainer" type="MarginContainer" parent="Abilities/Panel"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_constants/margin_left = 10 +theme_override_constants/margin_top = 10 +theme_override_constants/margin_right = 10 +theme_override_constants/margin_bottom = 10 + +[node name="Control" type="Control" parent="Abilities/Panel/MarginContainer"] +layout_mode = 2 + +[node name="ItemList" type="ItemList" parent="Abilities/Panel/MarginContainer/Control"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +item_count = 4 +item_0/text = "Wall-Jump" +item_1/text = "Double-Jump" +item_2/text = "Dash" +item_3/text = "Float" + +[node name="Button" type="Button" parent="Abilities/Panel/MarginContainer/Control"] +layout_mode = 1 +anchors_preset = 3 +anchor_left = 1.0 +anchor_top = 1.0 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = -45.0 +offset_top = -31.0 +grow_horizontal = 0 +grow_vertical = 0 +text = "Next" + +[node name="Ready" type="Control" parent="."] +visible = false +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="Panel" type="Panel" parent="Ready"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="MarginContainer" type="MarginContainer" parent="Ready/Panel"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_constants/margin_left = 10 +theme_override_constants/margin_top = 10 +theme_override_constants/margin_right = 10 +theme_override_constants/margin_bottom = 10 + +[node name="Control" type="Control" parent="Ready/Panel/MarginContainer"] +layout_mode = 2 + +[node name="Button" type="Button" parent="Ready/Panel/MarginContainer/Control"] +layout_mode = 1 +anchors_preset = 3 +anchor_left = 1.0 +anchor_top = 1.0 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = -45.0 +offset_top = -31.0 +grow_horizontal = 0 +grow_vertical = 0 +text = "Set Ready" -- cgit v1.2.3