Started working on multiplayer submenus

This commit is contained in:
darioGerussi
2022-03-27 14:17:34 -05:00
parent ea25cdfeb3
commit 6122b135c6
81 changed files with 1190 additions and 0 deletions

View File

@ -0,0 +1,27 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://UserInterface/Title.tscn" type="PackedScene" id=1]
[ext_resource path="res://UserInterface/But_ChangeScene.tscn" type="PackedScene" id=2]
[ext_resource path="res://screens/grabFocus.gd" type="Script" id=3]
[node name="Control" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Title" parent="." instance=ExtResource( 1 )]
anchor_left = 0.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 0.0
margin_top = 0.0
margin_right = 0.0
margin_bottom = 0.0
text = "Add Character (temp)"
[node name="But_ChangeScene" parent="Title" instance=ExtResource( 2 )]
text = "Temp: back to menu"
next_scene_path = "res://Screens/MenuScreen.tscn"

View File

@ -0,0 +1,21 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/ui_controlNode_dark_theme.tres" type="Theme" id=1]
[ext_resource path="res://assets/liberation_serif_40pt.tres" type="DynamicFont" id=2]
[ext_resource path="res://UserInterface/Title.tscn" type="PackedScene" id=3]
[node name="Control" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
[node name="Panel" type="Panel" parent="."]
margin_right = 1024.0
margin_bottom = 600.0
theme = ExtResource( 1 )
[node name="Title" parent="." instance=ExtResource( 3 )]
margin_top = 51.8676
margin_bottom = 117.868
theme = null
custom_fonts/font = ExtResource( 2 )
text = "Join Room"

View File

@ -0,0 +1,27 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://UserInterface/Title.tscn" type="PackedScene" id=1]
[ext_resource path="res://UserInterface/But_ChangeScene.tscn" type="PackedScene" id=2]
[ext_resource path="res://screens/grabFocus.gd" type="Script" id=3]
[node name="Control" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Title" parent="." instance=ExtResource( 1 )]
anchor_left = 0.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 0.0
margin_top = 0.0
margin_right = 0.0
margin_bottom = 0.0
text = "Multiplayer (temp)"
[node name="But_ChangeScene" parent="Title" instance=ExtResource( 2 )]
text = "Temp: back to menu"
next_scene_path = "res://Screens/MenuScreen.tscn"

View File

@ -0,0 +1,9 @@
#MENUSCREEN:
# Script purely to grab focus for tabbing control
extends Control
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
$VBoxContainer/But_NewGame.grab_focus()

View File

@ -0,0 +1,87 @@
[gd_scene load_steps=7 format=2]
[ext_resource path="res://UserInterface/But_ChangeScene.tscn" type="PackedScene" id=1]
[ext_resource path="res://Screens/MenuScreen.gd" type="Script" id=2]
[ext_resource path="res://assets/liberation_serif_40pt.tres" type="DynamicFont" id=3]
[ext_resource path="res://UserInterface/Title.tscn" type="PackedScene" id=5]
[ext_resource path="res://assets/ui_controlNode_dark_theme.tres" type="Theme" id=6]
[ext_resource path="res://UserInterface/But_Quit.tscn" type="PackedScene" id=10]
[node name="MenuScreen" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
theme = ExtResource( 6 )
script = ExtResource( 2 )
[node name="Background" type="Panel" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
[node name="Title" parent="." instance=ExtResource( 5 )]
margin_top = 51.8676
margin_bottom = 117.868
theme = null
custom_fonts/font = ExtResource( 3 )
[node name="VBoxContainer" type="VBoxContainer" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -119.0
margin_top = -152.0
margin_right = 119.0
margin_bottom = 152.0
rect_scale = Vector2( 1.04675, 1.07389 )
[node name="But_NewGame" parent="VBoxContainer" instance=ExtResource( 1 )]
margin_right = 238.0
margin_bottom = 49.0
next_scene_path = "res://screens/NewGame_temp.tscn"
[node name="But_LoadGame" parent="VBoxContainer" instance=ExtResource( 1 )]
margin_top = 53.0
margin_right = 238.0
margin_bottom = 103.0
text = "Load Game"
next_scene_path = "res://screens/LoadGame_temp.tscn"
[node name="But_Multiplayer" parent="VBoxContainer" instance=ExtResource( 1 )]
margin_top = 107.0
margin_right = 238.0
margin_bottom = 156.0
text = "Multiplayer"
next_scene_path = "res://Screens/Multiplayer.tscn"
[node name="But_AddChar" parent="VBoxContainer" instance=ExtResource( 1 )]
margin_top = 160.0
margin_right = 238.0
margin_bottom = 210.0
text = "Add Character"
next_scene_path = "res://Screens/AddCharacter_temp.tscn"
[node name="But_Settings" parent="VBoxContainer" instance=ExtResource( 1 )]
margin_top = 214.0
margin_right = 238.0
margin_bottom = 263.0
text = "Settings"
next_scene_path = "res://Screens/Settings_temp.tscn"
[node name="But_Quit" parent="VBoxContainer" instance=ExtResource( 10 )]
margin_top = 267.0
margin_right = 238.0
margin_bottom = 303.0
[node name="Version" type="Label" parent="."]
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -177.0
margin_top = -44.0
margin_right = -5.0
margin_bottom = -6.0
text = "Version: 0.0.0"
__meta__ = {
"_edit_use_anchors_": false
}

View File

@ -0,0 +1,56 @@
[gd_scene load_steps=6 format=2]
[ext_resource path="res://assets/liberation_serif_40pt.tres" type="DynamicFont" id=1]
[ext_resource path="res://UserInterface/Title.tscn" type="PackedScene" id=2]
[ext_resource path="res://UserInterface/But_ChangeScene.tscn" type="PackedScene" id=3]
[ext_resource path="res://screens/grabFocus.gd" type="Script" id=4]
[ext_resource path="res://assets/ui_controlNode_dark_theme.tres" type="Theme" id=5]
[node name="Control" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 4 )
[node name="Panel" type="Panel" parent="."]
margin_right = 1024.0
margin_bottom = 600.0
theme = ExtResource( 5 )
[node name="Title" parent="." instance=ExtResource( 2 )]
margin_top = 51.8676
margin_bottom = 117.868
theme = null
custom_fonts/font = ExtResource( 1 )
text = "Multiplayer"
[node name="VBoxContainer" type="VBoxContainer" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -119.0
margin_top = -152.0
margin_right = 119.0
[node name="But_NewRoom" parent="VBoxContainer" instance=ExtResource( 3 )]
margin_right = 238.0
margin_bottom = 48.0
theme = ExtResource( 5 )
text = "New Room"
next_scene_path = "res://screens/NewRoom.tscn"
[node name="But_JoinRoom" parent="VBoxContainer" instance=ExtResource( 3 )]
margin_top = 52.0
margin_right = 238.0
margin_bottom = 100.0
theme = ExtResource( 5 )
text = "Join Room"
next_scene_path = "res://screens/JoinRoom.tscn"
[node name="But_ChBut_BackToMenu" parent="VBoxContainer" instance=ExtResource( 3 )]
margin_top = 104.0
margin_right = 238.0
margin_bottom = 152.0
theme = ExtResource( 5 )
text = "Back to Menu"
next_scene_path = "res://Screens/MenuScreen.tscn"

View File

@ -0,0 +1,27 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://UserInterface/Title.tscn" type="PackedScene" id=1]
[ext_resource path="res://UserInterface/But_ChangeScene.tscn" type="PackedScene" id=2]
[ext_resource path="res://screens/grabFocus.gd" type="Script" id=3]
[node name="Control" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Title" parent="." instance=ExtResource( 1 )]
anchor_left = 0.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 0.0
margin_top = 0.0
margin_right = 0.0
margin_bottom = 0.0
text = "Multiplayer (temp)"
[node name="But_ChangeScene" parent="Title" instance=ExtResource( 2 )]
text = "Temp: back to menu"
next_scene_path = "res://Screens/MenuScreen.tscn"

View File

@ -0,0 +1,21 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/liberation_serif_40pt.tres" type="DynamicFont" id=1]
[ext_resource path="res://UserInterface/Title.tscn" type="PackedScene" id=2]
[ext_resource path="res://assets/ui_controlNode_dark_theme.tres" type="Theme" id=3]
[node name="Control" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
[node name="Panel" type="Panel" parent="."]
margin_right = 1024.0
margin_bottom = 600.0
theme = ExtResource( 3 )
[node name="Title" parent="." instance=ExtResource( 2 )]
margin_top = 51.8676
margin_bottom = 117.868
theme = null
custom_fonts/font = ExtResource( 1 )
text = "New Room"

View File

@ -0,0 +1,5 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://Screens/MenuScreen.tscn" type="PackedScene" id=1]
[node name="MenuScreen" instance=ExtResource( 1 )]

View File

@ -0,0 +1,27 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://UserInterface/Title.tscn" type="PackedScene" id=1]
[ext_resource path="res://UserInterface/But_ChangeScene.tscn" type="PackedScene" id=2]
[ext_resource path="res://screens/grabFocus.gd" type="Script" id=3]
[node name="Control" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Title" parent="." instance=ExtResource( 1 )]
anchor_left = 0.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 0.0
margin_top = 0.0
margin_right = 0.0
margin_bottom = 0.0
text = "Multiplayer (temp)"
[node name="But_ChangeScene" parent="Title" instance=ExtResource( 2 )]
text = "Temp: back to menu"
next_scene_path = "res://Screens/MenuScreen.tscn"

View File

@ -0,0 +1,17 @@
extends Button
# Declare member variables here. Examples:
# var a: int = 2
# var b: String = "text"
var tempToggle = 0
func _on_Button_button_up():
var controlNode = get_node("../../")
print(controlNode.name)
if(tempToggle == 0):
controlNode.theme=load("res://assets/ui_controlNode_dark_theme.tres")
tempToggle = 1
else:
controlNode.theme=load("res://assets/ui_controlNode_light_theme.tres")
tempToggle = 0

View File

@ -0,0 +1,7 @@
extends Control
#GRAB FOCUS: simple script for temp files to grab focus
#func _ready() -> void:
# $Title/But_ChangeScene.grab_focus()