BCIRPG Menu

The following changes done here:
1. Stripped down to the main menu, and that pushed as erpg\Godot\MainMenu\GodotUserInterface_Doug bcirpg_mainMenu_[date]

2. Relocated all other project work to: erpg\Godot\Experiments\Doug\
This commit is contained in:
MacDugRPG
2022-02-20 14:33:15 -05:00
parent 4637338b87
commit ef5c824b00
239 changed files with 685 additions and 0 deletions

View File

@ -0,0 +1,25 @@
[gd_scene load_steps=3 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]
[node name="Control" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
__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,13 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://UserInterface/Title.tscn" type="PackedScene" id=1]
[node name="Control" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Title" parent="." instance=ExtResource( 1 )]
text = "Load game (temp)"

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,96 @@
[gd_scene load_steps=8 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://UserInterface/Title.tscn" type="PackedScene" id=5]
[ext_resource path="res://assets/background_demo.png" type="Texture" id=7]
[ext_resource path="res://assets/ui_theme.tres" type="Theme" id=8]
[ext_resource path="res://assets/ui_title_theme.tres" type="Theme" id=9]
[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( 8 )
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="background_demo" type="TextureRect" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
texture = ExtResource( 7 )
expand = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Title" parent="." instance=ExtResource( 5 )]
margin_top = 51.8676
margin_bottom = 117.868
theme = ExtResource( 9 )
[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 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="But_NewGame" parent="VBoxContainer" instance=ExtResource( 1 )]
margin_right = 238.0
margin_bottom = 48.0
next_scene_path = "res://Game.tscn"
[node name="But_LoadGame" parent="VBoxContainer" instance=ExtResource( 1 )]
margin_top = 52.0
margin_right = 238.0
margin_bottom = 100.0
text = "Load Game"
next_scene_path = "res://Game.tscn"
[node name="But_Multiplayer" parent="VBoxContainer" instance=ExtResource( 1 )]
margin_top = 104.0
margin_right = 238.0
margin_bottom = 152.0
text = "Multiplayer"
next_scene_path = "res://Screens/Multiplayer_temp.tscn"
[node name="But_AddChar" parent="VBoxContainer" instance=ExtResource( 1 )]
margin_top = 156.0
margin_right = 238.0
margin_bottom = 204.0
text = "Add Character"
next_scene_path = "res://Screens/AddCharacter_temp.tscn"
[node name="But_Settings" parent="VBoxContainer" instance=ExtResource( 1 )]
margin_top = 208.0
margin_right = 238.0
margin_bottom = 256.0
text = "Settings"
next_scene_path = "res://Screens/Settings.tscn"
[node name="But_Quit" parent="VBoxContainer" instance=ExtResource( 10 )]
margin_top = 260.0
margin_right = 238.0
margin_bottom = 304.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 = -165.0
margin_top = -38.0
text = "Version: 0.0.0"
__meta__ = {
"_edit_use_anchors_": false
}

View File

@ -0,0 +1,25 @@
[gd_scene load_steps=3 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]
[node name="Control" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
__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,13 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://UserInterface/Title.tscn" type="PackedScene" id=1]
[node name="Control" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="newGameTextTemp" parent="." instance=ExtResource( 1 )]
text = "Start new game (temp)"

View File

@ -0,0 +1,130 @@
[gd_scene load_steps=10 format=2]
[ext_resource path="res://UserInterface/Title.tscn" type="PackedScene" id=1]
[ext_resource path="res://assets/background_demo.png" type="Texture" id=2]
[ext_resource path="res://assets/ui_theme.tres" type="Theme" id=3]
[ext_resource path="res://assets/ui_title_theme.tres" type="Theme" id=4]
[ext_resource path="res://UserInterface/But_ChangeScene.tscn" type="PackedScene" id=5]
[ext_resource path="res://Screens/inputText.gd" type="Script" id=6]
[ext_resource path="res://assets/base_dynamicfont.tres" type="DynamicFont" id=7]
[ext_resource path="res://UserInterface/But_SaveSettings.gd" type="Script" id=8]
[ext_resource path="res://Screens/SettingsInitialize.gd" type="Script" id=9]
[node name="SettingsScreen" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
theme = ExtResource( 3 )
script = ExtResource( 9 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="background_demo" type="TextureRect" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
texture = ExtResource( 2 )
expand = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Title" parent="." instance=ExtResource( 1 )]
anchor_left = 0.0
anchor_right = 0.0
margin_left = 0.0
margin_top = 0.0
margin_right = 296.0
margin_bottom = 135.0
theme = ExtResource( 4 )
text = " Player Settings
"
[node name="Hbox_buttons" type="HBoxContainer" parent="."]
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -426.0
margin_top = -67.0
grow_vertical = 0
rect_scale = Vector2( 1.04675, 1.07389 )
alignment = 2
__meta__ = {
"_edit_use_anchors_": false
}
[node name="But_SaveSettings" parent="Hbox_buttons" instance=ExtResource( 5 )]
margin_right = 164.0
margin_bottom = 67.0
text = "Save Settings"
script = ExtResource( 8 )
next_scene_path = "res://Screens/MenuScreen.tscn"
[node name="But_CloseWithoutSaving" parent="Hbox_buttons" instance=ExtResource( 5 )]
margin_left = 168.0
margin_right = 426.0
margin_bottom = 67.0
grow_horizontal = 0
grow_vertical = 0
text = "Close Without Saving"
next_scene_path = "res://Screens/MenuScreen.tscn"
[node name="VBoxContainer" type="VBoxContainer" parent="."]
anchor_top = 0.5
anchor_bottom = 0.5
margin_top = -187.879
margin_right = 605.0
margin_bottom = -115.879
__meta__ = {
"_edit_use_anchors_": false
}
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
margin_right = 605.0
margin_bottom = 48.0
[node name="label_disName" type="Label" parent="VBoxContainer/HBoxContainer"]
margin_top = 5.0
margin_right = 175.0
margin_bottom = 43.0
size_flags_horizontal = 2
text = "Display Name: "
__meta__ = {
"_edit_use_anchors_": false
}
[node name="input_name" type="LineEdit" parent="VBoxContainer/HBoxContainer"]
margin_left = 304.0
margin_right = 605.0
margin_bottom = 48.0
size_flags_horizontal = 3
custom_fonts/font = ExtResource( 7 )
max_length = 48
script = ExtResource( 6 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="HBoxContainer2" type="HBoxContainer" parent="VBoxContainer"]
margin_top = 52.0
margin_right = 605.0
margin_bottom = 100.0
[node name="label_risk" type="Label" parent="VBoxContainer/HBoxContainer2"]
margin_top = 5.0
margin_right = 300.0
margin_bottom = 43.0
size_flags_horizontal = 3
text = "Risk Factor Threshold: "
__meta__ = {
"_edit_use_anchors_": false
}
[node name="input_risk" type="LineEdit" parent="VBoxContainer/HBoxContainer2"]
margin_left = 304.0
margin_right = 605.0
margin_bottom = 48.0
size_flags_horizontal = 3
__meta__ = {
"_edit_use_anchors_": false
}

View File

@ -0,0 +1,17 @@
#SETTINGSINITIALIZE:
# Temp: manual connector between the input fields and the player settings
# singleton.
#
extends Control
onready var psCurrentSettings = get_node("/root/PlayerSettings")
func _ready() -> void:
var inputName = get_node("VBoxContainer/HBoxContainer/input_name")
var inputRisk = get_node("VBoxContainer/HBoxContainer2/input_risk")
inputName.text = psCurrentSettings.playerSettingsSingleton.inputName
inputRisk.text = psCurrentSettings.playerSettingsSingleton.riskFactor

View File

@ -0,0 +1,7 @@
extends LineEdit
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
grab_focus()