Adding Line Edits for Add Character function

This commit is contained in:
PersonGuyGit 2022-09-11 11:56:36 -06:00
parent 701b4d1142
commit b66828124c
14 changed files with 106 additions and 113 deletions

View File

@ -1 +1 @@
source_md5="fe8dea03f3f241ec8c3f199dcd974cbe" source_md5="21f53e0bac965cda7f61932893c6d36b"

View File

@ -1,26 +0,0 @@
{
"Node_Boat1":{
"Id":"Boat_001",
"Action":"ShowText",
"A_Params":"",
"Text":"The game has begun! You may select from the options below. You are in a boat. You have been shipwrecked. You can leave the boat through a hatch.",
"Option_Labels":["Examine Ship","Climb through hatch"],
"Option_GoTos":["Boat_002","Shore_001"]
},
"Node_Boat_002":{
"Id":"Boat_002",
"Action":"ShowText",
"A_Params":"",
"Text":"The boat is old and wrecked.",
"Option_Labels":["Continue"],
"Option_GoTos":["Boat_001"]
},
"Node_Shore_001":{
"Id":"Shore_001",
"Action":"ShowText",
"A_Params":"",
"Text":"You've reached the shore!",
"Option_Labels":["Return to boat"],
"Option_GoTos":["Boat_001"]
}
}

View File

@ -1,23 +0,0 @@
[player_preferences]
player_name="Tester the Bold!"
risk_threshold=2.0
[visual_controls]
font_size=3.0
brightness=5.0
[general_settings]
volume=0.0
closed_captions=false
dev_console=true
[virtual_keyboard]
keyboard_layout=2
[theme]
theme_selection=0

View File

@ -1,3 +0,0 @@
Files for testing only. On deployment, these should be put at the appropriate user:// location for your operating system. For windows this is:
C:\Users\{username}\AppData\Roaming\Godot\app_userdata\BCIRPGR_mergedDemo

View File

@ -1,9 +0,0 @@
Name,Thickly Goes
Profession,Brawler
Strength,Excessive
Intellect,Diminished
Willpower,Variable
Charm,Lacking
Weapon,Meaty Fists
Armor,Leather Jacket and Chaps
A Quote,You talkin to me?!
1 Name Thickly Goes
2 Profession Brawler
3 Strength Excessive
4 Intellect Diminished
5 Willpower Variable
6 Charm Lacking
7 Weapon Meaty Fists
8 Armor Leather Jacket and Chaps
9 A Quote You talkin to me?!

View File

@ -1,13 +0,0 @@
[remap]
importer="csv_translation"
type="Translation"
valid=false
[deps]
source_file="res://TestingFiles/UserData/characterFiles/testingCSVCharFile.csv"
[params]
compress=true
delimiter=0

View File

@ -10,7 +10,6 @@ func _ready() -> void:
theme=load(settings.themeFile) theme=load(settings.themeFile)
$Title/But_SaveChar.grab_focus() $Title/But_SaveChar.grab_focus()
func _on_But_SaveChar_pressed() -> void: func _on_But_SaveChar_pressed() -> void:
$Title/FileDialog.popup() $Title/FileDialog.popup()

View File

@ -1,7 +1,7 @@
[gd_scene load_steps=4 format=2] [gd_scene load_steps=4 format=2]
[ext_resource path="res://UserInterface/Title.tscn" type="PackedScene" id=1] [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://userInterface/But_ChangeScene.tscn" type="PackedScene" id=2]
[ext_resource path="res://screens/Character_Add.gd" type="Script" id=3] [ext_resource path="res://screens/Character_Add.gd" type="Script" id=3]
[node name="Control" type="Control"] [node name="Control" type="Control"]
@ -17,9 +17,6 @@ margin_left = 215.0
margin_top = 23.0 margin_top = 23.0
margin_right = 997.0 margin_right = 997.0
margin_bottom = 447.0 margin_bottom = 447.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Title" parent="." instance=ExtResource( 1 )] [node name="Title" parent="." instance=ExtResource( 1 )]
anchor_left = 0.0 anchor_left = 0.0
@ -35,9 +32,6 @@ text = "Create Character (temp)"
margin_right = 12.0 margin_right = 12.0
margin_bottom = 20.0 margin_bottom = 20.0
text = "Save Character" text = "Save Character"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="But_ChangeScene" parent="Title" instance=ExtResource( 2 )] [node name="But_ChangeScene" parent="Title" instance=ExtResource( 2 )]
margin_left = -1.0 margin_left = -1.0
@ -45,14 +39,12 @@ margin_top = 48.0
margin_right = 142.0 margin_right = 142.0
margin_bottom = 72.0 margin_bottom = 72.0
text = "Temp: Main Menu" text = "Temp: Main Menu"
next_scene_path = "res://Screens/MenuScreen.tscn"
[node name="But_StartNewGame" parent="Title" instance=ExtResource( 2 )] [node name="But_StartNewGame" parent="Title" instance=ExtResource( 2 )]
margin_top = 98.0 margin_top = 98.0
margin_right = 159.0 margin_right = 159.0
margin_bottom = 122.0 margin_bottom = 122.0
text = "Temp: Start New Game" text = "Temp: Start New Game"
next_scene_path = "res://gamePlay/Game.tscn"
[node name="FileDialog" type="FileDialog" parent="Title"] [node name="FileDialog" type="FileDialog" parent="Title"]
margin_left = 164.0 margin_left = 164.0
@ -60,9 +52,102 @@ margin_top = 35.0
margin_right = 741.0 margin_right = 741.0
margin_bottom = 426.0 margin_bottom = 426.0
access = 1 access = 1
current_dir = "user://characterFiles"
current_file = "characterFiles" [node name="VBoxContainer" type="VBoxContainer" parent="Title"]
current_path = "user://characterFiles/characterFiles" anchor_left = 0.5
anchor_right = 0.5
margin_left = -20.0
margin_top = 50.0
margin_right = 20.0
margin_bottom = 140.0
[node name="LabelName" type="Label" parent="Title/VBoxContainer"]
margin_right = 81.0
margin_bottom = 31.0
text = "NAME
"
[node name="LineEdit" type="LineEdit" parent="Title/VBoxContainer/LabelName"]
margin_right = 58.0
margin_bottom = 24.0
[node name="LabelProfession" type="Label" parent="Title/VBoxContainer"]
margin_top = 35.0
margin_right = 81.0
margin_bottom = 66.0
text = "PROFESSION
"
[node name="LineEdit" type="LineEdit" parent="Title/VBoxContainer/LabelProfession"]
margin_right = 58.0
margin_bottom = 24.0
[node name="LabelStrength" type="Label" parent="Title/VBoxContainer"]
margin_top = 70.0
margin_right = 81.0
margin_bottom = 84.0
text = "STRENGTH"
[node name="LineEdit" type="LineEdit" parent="Title/VBoxContainer/LabelStrength"]
margin_right = 58.0
margin_bottom = 24.0
[node name="LabelIntellect" type="Label" parent="Title/VBoxContainer"]
margin_top = 88.0
margin_right = 81.0
margin_bottom = 119.0
text = "INTELLECT
"
[node name="LineEdit" type="LineEdit" parent="Title/VBoxContainer/LabelIntellect"]
margin_right = 58.0
margin_bottom = 24.0
[node name="LabelWillpower" type="Label" parent="Title/VBoxContainer"]
margin_top = 123.0
margin_right = 81.0
margin_bottom = 137.0
text = "WILLPOWER"
[node name="LineEdit" type="LineEdit" parent="Title/VBoxContainer/LabelWillpower"]
margin_right = 58.0
margin_bottom = 24.0
[node name="LabelCharm" type="Label" parent="Title/VBoxContainer"]
margin_top = 141.0
margin_right = 81.0
margin_bottom = 155.0
[node name="LineEdit" type="LineEdit" parent="Title/VBoxContainer/LabelCharm"]
margin_right = 58.0
margin_bottom = 24.0
[node name="LabelWeapon" type="Label" parent="Title/VBoxContainer"]
margin_top = 159.0
margin_right = 81.0
margin_bottom = 173.0
[node name="LineEdit" type="LineEdit" parent="Title/VBoxContainer/LabelWeapon"]
margin_right = 58.0
margin_bottom = 24.0
[node name="LabelArmor" type="Label" parent="Title/VBoxContainer"]
margin_top = 177.0
margin_right = 81.0
margin_bottom = 191.0
[node name="LineEdit" type="LineEdit" parent="Title/VBoxContainer/LabelArmor"]
margin_right = 58.0
margin_bottom = 24.0
[node name="LabelAQuote" type="Label" parent="Title/VBoxContainer"]
margin_top = 195.0
margin_right = 81.0
margin_bottom = 209.0
[node name="LineEdit" type="LineEdit" parent="Title/VBoxContainer/LabelAQuote"]
margin_right = 58.0
margin_bottom = 24.0
[connection signal="pressed" from="Title/But_SaveChar" to="." method="_on_But_SaveChar_pressed"] [connection signal="pressed" from="Title/But_SaveChar" to="." method="_on_But_SaveChar_pressed"]
[connection signal="file_selected" from="Title/FileDialog" to="." method="_on_FileDialog_file_selected"] [connection signal="file_selected" from="Title/FileDialog" to="." method="_on_FileDialog_file_selected"]

View File

@ -1,7 +1,7 @@
[gd_scene load_steps=4 format=2] [gd_scene load_steps=4 format=2]
[ext_resource path="res://UserInterface/Title.tscn" type="PackedScene" id=1] [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://userInterface/But_ChangeScene.tscn" type="PackedScene" id=2]
[ext_resource path="res://screens/Character_Load.gd" type="Script" id=3] [ext_resource path="res://screens/Character_Load.gd" type="Script" id=3]
[node name="Control" type="Control"] [node name="Control" type="Control"]
@ -48,7 +48,6 @@ margin_top = 71.0
margin_right = 181.0 margin_right = 181.0
margin_bottom = 95.0 margin_bottom = 95.0
text = "Temp: Start New Game" text = "Temp: Start New Game"
next_scene_path = "res://gamePlay/Game.tscn"
[node name="But_ChangeScene" parent="Title" instance=ExtResource( 2 )] [node name="But_ChangeScene" parent="Title" instance=ExtResource( 2 )]
margin_left = 21.0 margin_left = 21.0
@ -56,7 +55,6 @@ margin_top = 109.0
margin_right = 164.0 margin_right = 164.0
margin_bottom = 133.0 margin_bottom = 133.0
text = "Temp: Main Menu " text = "Temp: Main Menu "
next_scene_path = "res://Screens/MenuScreen.tscn"
[node name="LoadCharacter_FileDialog" type="FileDialog" parent="."] [node name="LoadCharacter_FileDialog" type="FileDialog" parent="."]
margin_left = 193.0 margin_left = 193.0
@ -66,9 +64,6 @@ margin_bottom = 409.0
window_title = "Open a File" window_title = "Open a File"
mode = 0 mode = 0
access = 1 access = 1
current_dir = "user://characterFiles"
current_file = "characterFiles"
current_path = "user://characterFiles/characterFiles"
__meta__ = { __meta__ = {
"_edit_use_anchors_": false "_edit_use_anchors_": false
} }

View File

@ -47,7 +47,6 @@ rect_min_size = Vector2( 0, 40 )
margin_right = 200.0 margin_right = 200.0
margin_bottom = 36.0 margin_bottom = 36.0
text = "More Options" text = "More Options"
next_scene_path = "res://screens/MoreOptions.tscn"
[node name="But_HistoryPager" type="Button" parent="Background/MarginContainer/Rows/ItemList"] [node name="But_HistoryPager" type="Button" parent="Background/MarginContainer/Rows/ItemList"]
anchor_left = 0.5 anchor_left = 0.5

View File

@ -1,7 +1,7 @@
[gd_scene load_steps=5 format=2] [gd_scene load_steps=5 format=2]
[ext_resource path="res://UserInterface/Title.tscn" type="PackedScene" id=1] [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://userInterface/But_ChangeScene.tscn" type="PackedScene" id=2]
[ext_resource path="res://screens/ImportCharacter.gd" type="Script" id=3] [ext_resource path="res://screens/ImportCharacter.gd" type="Script" id=3]
[ext_resource path="res://userInterface/But_PlayButton.gd" type="Script" id=4] [ext_resource path="res://userInterface/But_PlayButton.gd" type="Script" id=4]
@ -9,9 +9,6 @@
anchor_right = 1.0 anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
script = ExtResource( 3 ) script = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="PopupDialog" type="PopupDialog" parent="."] [node name="PopupDialog" type="PopupDialog" parent="."]
anchor_top = 0.5 anchor_top = 0.5
@ -37,8 +34,6 @@ margin_bottom = 480.0
window_title = "Open a File" window_title = "Open a File"
mode = 0 mode = 0
access = 1 access = 1
current_dir = "user://characterFiles"
current_path = "user://characterFiles/"
__meta__ = { __meta__ = {
"_edit_use_anchors_": false "_edit_use_anchors_": false
} }
@ -65,7 +60,6 @@ margin_top = 78.0
margin_right = 152.0 margin_right = 152.0
margin_bottom = 115.0 margin_bottom = 115.0
text = "Back" text = "Back"
next_scene_path = "res://Screens/MenuScreen.tscn"
[node name="VBoxContainer2" type="VBoxContainer" parent="."] [node name="VBoxContainer2" type="VBoxContainer" parent="."]
anchor_left = 0.0634766 anchor_left = 0.0634766
@ -104,9 +98,6 @@ margin_top = -173.0
margin_right = 432.0 margin_right = 432.0
margin_bottom = 286.0 margin_bottom = 286.0
follow_focus = true follow_focus = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="VBoxContainer" parent="ScrollContainer"] [node name="VBoxContainer" type="VBoxContainer" parent="ScrollContainer"]
__meta__ = { __meta__ = {

View File

@ -1,13 +1,10 @@
[gd_scene load_steps=2 format=2] [gd_scene format=2]
[ext_resource path="res://UserInterface/But_ChangeScene.gd" type="Script" id=1]
[node name="But_ChangeScene" type="Button"] [node name="But_ChangeScene" type="Button"]
margin_right = 130.0 margin_right = 130.0
margin_bottom = 24.0 margin_bottom = 24.0
size_flags_vertical = 3 size_flags_vertical = 3
text = "New Game" text = "New Game"
script = ExtResource( 1 )
__meta__ = { __meta__ = {
"_edit_use_anchors_": false "_edit_use_anchors_": false
} }

View File

@ -1,6 +1,6 @@
[gd_scene load_steps=2 format=2] [gd_scene load_steps=2 format=2]
[ext_resource path="res://UserInterface/But_Quit.gd" type="Script" id=1] [ext_resource path="res://userInterface/But_Quit.gd" type="Script" id=1]
[node name="But_Quit" type="Button"] [node name="But_Quit" type="Button"]
margin_top = 240.0 margin_top = 240.0