7
0
mirror of https://github.com/RPG-Research/bcirpg.git synced 2024-04-16 14:23:01 +00:00

Change 2 for cleanup

This commit is contained in:
PersonGuyGit
2023-07-09 12:28:09 -06:00
parent 707e8a5b16
commit 2c971b6e7c
1741 changed files with 0 additions and 0 deletions
Phase2/Godot_GameCode
CharacterCreation
.import
.gdignore52ukVp.png-53b5a81b9aa8c43fb9bbff36476f1e4f.md552ukVp.png-53b5a81b9aa8c43fb9bbff36476f1e4f.stex52ukVp.png-9fcb79680f073ffcb0df663a29082a8d.md552ukVp.png-9fcb79680f073ffcb0df663a29082a8d.stexagent.png-8b8e1d355fef9de105a39ad739054090.md5agent.png-8b8e1d355fef9de105a39ad739054090.stexagent.png-b423fd963f31ff91c711b7510f1f1f4b.md5agent.png-b423fd963f31ff91c711b7510f1f1f4b.stexarrowsdown.png-d0b27b1acab5e951020dbe79517a8b7d.md5arrowsdown.png-d0b27b1acab5e951020dbe79517a8b7d.stexarrowsleft.png-a5aa1af6e4b0a63cc3ab1a9b95c69ca0.md5arrowsleft.png-a5aa1af6e4b0a63cc3ab1a9b95c69ca0.stexarrowsright.png-c1560d906f076c3a05aee958fe6ded37.md5arrowsright.png-c1560d906f076c3a05aee958fe6ded37.stexarrowsup.png-04b45559af55828187c112d5c50134e1.md5arrowsup.png-04b45559af55828187c112d5c50134e1.stexbar_hp_mp.png-3486052a17f3fe03054aa3bc75623a51.md5bar_hp_mp.png-3486052a17f3fe03054aa3bc75623a51.stexbutton_default.png-f902c6dc42936de5434cd376ba0a1e4e.md5button_default.png-f902c6dc42936de5434cd376ba0a1e4e.stexbutton_small.png-e8356f0455ebe124b7d93742f901adca.md5button_small.png-e8356f0455ebe124b7d93742f901adca.stexbutton_x.png-8978c56000869bf8609fdb90937598d6.md5button_x.png-8978c56000869bf8609fdb90937598d6.stexcheckbox_default.png-ccca1221443b274ae197e3451d512957.md5checkbox_default.png-ccca1221443b274ae197e3451d512957.stexcombobox_default.png-be646e25fffb5d820e23abcc1fc5cbe8.md5combobox_default.png-be646e25fffb5d820e23abcc1fc5cbe8.stexconfirm_bg.png-8c443770e715a168fb1fb20a3026f7cc.md5confirm_bg.png-8c443770e715a168fb1fb20a3026f7cc.stexdead_squirrel_idle.png-1711587465338c4c6bba1e96556267a4.md5dead_squirrel_idle.png-1711587465338c4c6bba1e96556267a4.stexdead_squirrel_idle.png-79e83c8b3e874a35ef20b56c6e017e48.md5dead_squirrel_idle.png-79e83c8b3e874a35ef20b56c6e017e48.stexdead_squirrel_idle_2x.png-396afca2d44506199b7df99bcc4fa5af.md5dead_squirrel_idle_2x.png-396afca2d44506199b7df99bcc4fa5af.stexdead_squirrel_idle_2x.png-50b393fa1788fc4e1012268b15e8584b.md5dead_squirrel_idle_2x.png-50b393fa1788fc4e1012268b15e8584b.stexdialog_box.png-6407c963691a71e0e3d6e688c91e539a.md5dialog_box.png-6407c963691a71e0e3d6e688c91e539a.stexdroog_idle.png-19e80f8a9f07eeb1c19ada06f7efc7b2.md5droog_idle.png-19e80f8a9f07eeb1c19ada06f7efc7b2.stexdroog_idle.png-bf5b516f256ef28ddf56312a185b16ae.md5droog_idle.png-bf5b516f256ef28ddf56312a185b16ae.stexgirl_idle.png-82f86e69a5006eb7b9f1cd0ed06dfc8d.md5girl_idle.png-82f86e69a5006eb7b9f1cd0ed06dfc8d.stexgirl_idle.png-a457d4e79f28a8036cae6d5d6c9a57d7.md5girl_idle.png-a457d4e79f28a8036cae6d5d6c9a57d7.stexgoth_idle.png-02a24278e86b2975e48bfefa95b19054.md5goth_idle.png-02a24278e86b2975e48bfefa95b19054.stexgoth_idle.png-a050cb5dad017840fc5aa19a906de278.md5goth_idle.png-a050cb5dad017840fc5aa19a906de278.stexhi-top-large.png-bfd15ea9f4398bc9a7fd2b5c8f1bd5f7.md5hi-top-large.png-bfd15ea9f4398bc9a7fd2b5c8f1bd5f7.stexhi-top-large.png-febe40c7f6a0aae7de37a10fb8b5c719.md5hi-top-large.png-febe40c7f6a0aae7de37a10fb8b5c719.stexhi-tops_idle.png-43e28ba76ce2534c766d1645385ad3bd.md5hi-tops_idle.png-43e28ba76ce2534c766d1645385ad3bd.stexhi-tops_idle.png-ba4d76b440d6fdd0942d9bd75c437d98.md5hi-tops_idle.png-ba4d76b440d6fdd0942d9bd75c437d98.stexicon.png-487276ed1e3a0c39cad0279d744ee560.md5icon.png-487276ed1e3a0c39cad0279d744ee560.stexinput.png-c6b33a191fdad9cb89ab2dbd9166ab75.md5input.png-c6b33a191fdad9cb89ab2dbd9166ab75.stexlistbox_default.png-d7b4f353c891766d5c8dc21d00807112.md5listbox_default.png-d7b4f353c891766d5c8dc21d00807112.stexmenu_xp.png-090c8ee1a0d067c4567a813dd2c1b19b.md5menu_xp.png-090c8ee1a0d067c4567a813dd2c1b19b.stexpunker.png-7168c0b3e9c4a2eea6161c7b6d2917ba.md5punker.png-7168c0b3e9c4a2eea6161c7b6d2917ba.stexpunker.png-fba00f29b61b596a695efcf5cdc738b2.md5punker.png-fba00f29b61b596a695efcf5cdc738b2.stexrourke.png-35e2bfd0491b02390cb9abfd9fe8cb38.md5rourke.png-35e2bfd0491b02390cb9abfd9fe8cb38.stexrourke.png-d266757ec7e5900016c4b1112ee3ab3a.md5rourke.png-d266757ec7e5900016c4b1112ee3ab3a.stexscrollbar_default.png-30cc9c7b21b30befed0c18c1d8a6030a.md5scrollbar_default.png-30cc9c7b21b30befed0c18c1d8a6030a.stexslider_default.png-7b67fe4f9912d113ffb4af17937191d3.md5slider_default.png-7b67fe4f9912d113ffb4af17937191d3.stexyakuza_idle.png-050ea895895b1badd2434a874e27a38e.md5yakuza_idle.png-050ea895895b1badd2434a874e27a38e.stexyakuza_idle.png-309dc192a643f82a85bba990ab3e25cb.md5yakuza_idle.png-309dc192a643f82a85bba990ab3e25cb.stex
Assets
Global
Scene
Script
default_env.tresicon.pngicon.png.importproject.godot
DiceRoller
Experiments
Andrew_Multiplayer_Test
Doug
rpgr_gameWork_20211024A
rpgr_gameWork_20211114A
rpgr_gameWork_20220102A
rpgr_gameWork_20220213A
ImportCharacter
.import
Control.tscnREADME.txtSettings.gd
_toArchive
assets
default_env.tresicon.pngicon.png.importplayerSettingsTemplate.gdproject.godot
screens
userInterface
MainMenu
GodotUserInterface-Bakhtawar
GodotUserInterface_Dario
GodotUserInterface_Doug
bcirpg_mainMenu_20220220A
.import
Control.tscnREADME.txt
_toArchive
assets
default_env.tresexport_presets.cfgicon.pngicon.png.importproject.godot
screens
userInterface
GodotUserInterface_Luke
.import
Actor.gd
DataStore
Date.gdDie.gdGUI.gdGUI.tscnGame.tscnHostAndJoinGame.gdMenu.gdOpenSans-Bold.ttfOpenSans-BoldItalic.ttfOpenSans-ExtraBold.ttfOpenSans-ExtraBoldItalic.ttfOpenSans-Italic.ttfOpenSans-Light.ttfOpenSans-LightItalic.ttfOpenSans-Medium.ttfOpenSans-MediumItalic.ttfOpenSans-Regular.ttfOpenSans-SemiBold.ttfOpenSans-SemiBoldItalic.ttf
Open_Sans
Player_Settings_Button.gdSaveAndLoadGame.gd
SaveSystem
Start Game.gdTestNode2D.gdTestNode2D.tscnWorld.gdWorldObject.gd
addons
bin
default_env.tresicon.pngicon.png.importproject.godot
GodotUserInterface_Luke_Settings
bcirpg_settingsMenuLuke
.import
But_ChangeScene.gdControl.tscnREADME.txt
_toArchive
assets
default_env.tres
dynamic_popups
icon.pngicon.png.importplayerSettingsTemplate.gdproject.godot
screens
settings
userInterface
MergedDemo
Doug
bcirpg_mergedDemo_20220814A
.import
Control.tscnREADME.txt
TestingFiles
_toArchive
assets
default_env.tres
gamePlay
globalScripts
icon.pngicon.png.importproject.godot
screens
userInterface
bcirpg_mergedDemo_20220904A
.import
Control.tscnREADME.txt
_toArchive
assets
default_env.tres
gamePlay
globalScripts
icon.pngicon.png.importproject.godot
screens
userInterface
bcirpg_mergedDemo_20220911A
.godot
.gdignore
editor
Character_Add.tscn-editstate-6c42bb16d3bd4b9af03632317c40e7e4.cfgCharacter_Add.tscn-folding-6c42bb16d3bd4b9af03632317c40e7e4.cfgCharacter_Load.tscn-editstate-cbec39b3abf33d161175b1ba71844ac5.cfgCharacter_Load.tscn-folding-cbec39b3abf33d161175b1ba71844ac5.cfgDiceRoller.gd-folding-8afbd7fc73a9f9f812dfcaaf30f30588.cfgDieManager.gd-folding-6f2524136db8a2de875185fc3d8e32f5.cfgHistoryViewer.tscn-editstate-5b014fa15b6b18c43d610d042330b9f9.cfgHistoryViewer.tscn-folding-5b014fa15b6b18c43d610d042330b9f9.cfgImportCharacter.tscn-editstate-8252b4ecd57f64a7f5ecd55dfee98ec8.cfgImportCharacter.tscn-folding-8252b4ecd57f64a7f5ecd55dfee98ec8.cfgLiberationSerif-Bold.ttf-1bd0842ec1ed8f2280c344465f4c735c.fontdata-folding-b8ac8507f8fc0ce13edd188d147eb90e.cfgLiberationSerif-BoldItalic.ttf-b9fea0bd1fc08bcb5abcc08df063c25d.fontdata-folding-a74c92229290540fa6dca677f88eb7e3.cfgLiberationSerif-Italic.ttf-b1899d55c9838ffb42dc88f0f1560aab.fontdata-folding-3e081ab284366e2b1ad09a7de54c5301.cfgLiberationSerif-Regular.ttf-39b6cd17bb22b42493dad03528c51257.fontdata-folding-e96fa35d8f846a14f08de16bf698a9da.cfgMenuScreen.tscn-editstate-6698de75e0d1732890486af5bfe1cbf2.cfgMenuScreen.tscn-folding-6698de75e0d1732890486af5bfe1cbf2.cfgMoreOptions.tscn-editstate-e802b78a616674ced820bc6378b4aa52.cfgMoreOptions.tscn-folding-e802b78a616674ced820bc6378b4aa52.cfgMultiplayer_temp.tscn-editstate-bf7994132a687b10ef3487feb117397c.cfgMultiplayer_temp.tscn-folding-bf7994132a687b10ef3487feb117397c.cfgNewGame_temp.tscn-editstate-08dfc7f17d68e870b52a57ea6e72071c.cfgNewGame_temp.tscn-folding-08dfc7f17d68e870b52a57ea6e72071c.cfgPlayerSelection.tscn-editstate-4bcaead45c177a1b0c650147037dcdda.cfgPlayerSelection.tscn-folding-4bcaead45c177a1b0c650147037dcdda.cfgSettingsMenuControl.tscn-editstate-dbe9e0f61ce6c10ce7c25c51053cee04.cfgSettingsMenuControl.tscn-folding-dbe9e0f61ce6c10ce7c25c51053cee04.cfgeditor_layout.cfgfilesystem_cache8filesystem_update4l_10646.ttf-c73edcc0131718c450dc8e9faaba5f56.fontdata-folding-e3c7656d9aae8ee3ccf60552ffedbae7.cfgl_10646.ttf-e6ca2966b857cc1496cc02006b57e66e.fontdata-folding-7e9214ed46e9fb8835b92272bb15e2b5.cfgproject_metadata.cfgrecent_dirsscript_editor_cache.cfgtestingCSVCharFile.en.translation-folding-5dce5df60c1079c981050a37652eaaf0.cfg
global_script_class_cache.cfg
imported
shader_cache
BlitShaderRD
99ba2ae94a02f3be1fa450ba96170e265220a7c12d195763a9429f5267b95de1
BokehDofShaderRD
4a58ef73c632ec99e5e61c2134d069312d505570e4e05e4b19cc3a6da3fd6d89
CanvasOcclusionShaderRD
1917eb212a0fc35ea43ec838ceee16e0ae972c93764744991bbef5576e954df3
CanvasSdfShaderRD
f5892aad982ca3924097c1a6a746c15dad14187bcdc3facfad468f789129f7f0
CanvasShaderRD
ClusterDebugShaderRD
f161e029bc24e6ff6a0f41aeea7ff41d9a938701aa9f79516043844d0e1712af
ClusterRenderShaderRD
0d635d072c3f1556ae0130a8ee966dd8b4e377780fac401a48307d786bb55f2e
ClusterStoreShaderRD
65e05dd113093f9ce5b00d9cf9dd1e96afa745cc00fef54196473690aff77e17
CopyShaderRD
0febf21d333add1d7d24047f0655823ec951ebe5058ec5cd527979f0bff2b69f
CopyToFbShaderRD
7ab54756423e4e900d688282fefc540aabaae3942d7802f13c2d4f0484ec885d
CubeToDpShaderRD
2283fb1ee3168f04e524dcce7dcb3bfe86e228eb2a51b0ade992821a3b925829
CubemapDownsamplerShaderRD
7bc5ba8e09180e4ec9447354417c001ff39ef0b9793e4dd91700a3157c02c8fd
CubemapFilterShaderRD
95c38c07d3122c4433cde607db0de663b66f7247ef981467dd3f85381d79c5d9
CubemapRoughnessShaderRD
9717bdf042552cb9ba3beee9738dc100dc73e411f28ec114137500c84905f134
FsrUpscaleShaderRD
c50814dea7a49e602939f2245889af56e5b2dc1af34261e00b7de08e8f3bda74
GiShaderRD
e8a16c7f72722dd04131fa37dcfcf70283db0a5a8423ca4b6be82b9cb12c19fb
LuminanceReduceShaderRD
015a6933ef0d229994836762e2577b2724e81f0c19532d6d9970829ac6d5b8c3
ParticlesCopyShaderRD
a63f9c6838e1a15082bcb4f6a15985e16b540aa82211dadeef707067ca48fb91
ParticlesShaderRD
48caad4a6fa190a9859479b30e6351f6f2838c48df3c407d02bab0164d307994
ResolveShaderRD
faa53662dbbcc0c3ab2d70f22e221f23fa43ee0fe92651b40d7b4421e7e2c252
RoughnessLimiterShaderRD
1207dc7bbd38c565aec7562b6632b8e8908298c5c7c358f7141228ac62b8b0f4
SceneForwardClusteredShaderRD
ScreenSpaceReflectionFilterShaderRD
4f2d05d4e601a88d1a4d77680183e028115b81906827b01ab68a0774a3ec080f
ScreenSpaceReflectionScaleShaderRD
c52c97e96639ebb5a058bed56d71fc605ee7b8d062bf982e26f9afa03ec8d443
ScreenSpaceReflectionShaderRD
46b209eb3ef72a72c0271c86c0c11eebbf970d5bfb909c84ebb9a1702b277ce4
SdfgiDebugProbesShaderRD
ed06fbaa2f7b20b949bcfa617360857e90f17258db694a8b1989f852ed2b5b13
SdfgiDebugShaderRD
d81f00cbf521e0782a76acabc125cd0c9132374f8d136f5c7821aa7353c011b6
SdfgiDirectLightShaderRD
88c07dd2aae8b90fae80f762a3485aaa436c6d4470c19b11464432705d1e5b03
SdfgiIntegrateShaderRD
d4f2a5da6e8b17e069e5b2cbf2f0153b33b07375df47b1e6504818707099ac2a
SdfgiPreprocessShaderRD
d57715db8236350dc081a375e01a8393e1ee1d1789f486d824ef15377b948c65
SkeletonShaderRD
a23c8956bc6130740feb3de951c0db2de6a302bc60521c55a67aa9414a3bd95e
SkyShaderRD
SortShaderRD
cd50b38768ec41030fc9772db0a3f87abcb848d32a2b6b32406ed3f10080bd04
SpecularMergeShaderRD
d8596a535982275ac6b1647cf33df1e0dc7101e3424167806c616d077e8cf653
SsEffectsDownsampleShaderRD
c4e4c6a411e26c00d2fd0787edc417a5e1b43ab29209e8819e4464599097522c
SsaoBlurShaderRD
6470ed633c0ee556faee543aff79363d0ed025f960c4b63cc58188e6030ae802
SsaoImportanceMapShaderRD
13ccbbdbcc808d3da00b5423f3b7e547899dc52aebf3e84f3ea67fb76170a21c
SsaoInterleaveShaderRD
18013bef723264e74bc3d168788d8c948773f066ce86e52206f52d6b2adcb831
SsaoShaderRD
21dca312274f32e2e1485e82296a4308499148eb235e12866cd3f98313139f0f
SsilBlurShaderRD
d643ead067ce16586aa57ea0aed13ff11545e24ee60cb4b06b176e7b3642158b
SsilImportanceMapShaderRD
7d5d4ffeb2f994b509e8bf107bd555d5c10d3f7d2791074a478aa4c0650c49d2
SsilInterleaveShaderRD
d8a50a6441e5ffc6c0ed10fe01414f9ce9105002527fd733cdb15a856cb6d976
SsilShaderRD
e4f7cc74045ee68d50537c803a8720a73284d107998b75f93d7e444bdcdf9ad8
SubsurfaceScatteringShaderRD
377cea4368d32b7809a50efb2eee07b6c8e12268863413129da21435a73e7ef5
TaaResolveShaderRD
52e46e836b2917ed1afea3d3b95ce5a4998e10a1091bedbd1cb371611ae96cbc
TonemapShaderRD
97129f7317b0bbf5444bb8fe5b4062b76309eb51809f1926d18b15c5f308bba0
VolumetricFogProcessShaderRD
60957a5fa6cb31b11534e809316d052e25066b8c2ac1e26a80c5ef3715d489a4
VolumetricFogShaderRD
1ad98d4d9fbd3d94208c263a5f6894738c213c8ad931b3d6c06b27b9106ea476
VoxelGiDebugShaderRD
45ed0ddc1719346a2471721ba619a959927db3f64ac5dd37268f60426b94838d
VoxelGiShaderRD
bc8a0992566e06e6aefe2fd61953460c69db38886bfdd36e7c435bfec37db25c
uid_cache.bin
.import
Control.tscnREADME.txt
_toArchive
_userFiles
assets
default_env.tres
gamePlay
globalScripts
icon.pngicon.png.importproject.godot
screens
userInterface
MergedMaster
bcirpg_mergedMaster_20220918A
.import
Control.tscnREADME.txt
_toArchive
_userFiles
assets
default_env.tres
gamePlay
globalScripts
icon.pngicon.png.importproject.godot
screens
userInterface
bcirpg_mergedMaster_20220918ALuke
.import
Control.tscnREADME.txt
_toArchive
_userFiles
assets
default_env.tres
gamePlay
globalScripts
icon.pngicon.png.importproject.godot
screens
userInterface
Multiplayer
.import
Control.tscnREADME.txtSettings.gd
_toArchive
assets
default_env.tresicon.pngicon.png.importplayerSettingsTemplate.gdproject.godot
screens
userInterface
NewGame
Doug
bcirpg_newGame_20220227A
.import
Control.tscnREADME.txt
_toArchive
assets
default_env.tres
gamePlay
globalScripts
icon.pngicon.png.importproject.godot
screens
userInterface
Resolving ties
Settings
GodotUserInterface_Luke_Settings
bcirpg_move
.import
Control.tscnREADME.txtSettings.gd
_toArchive
assets
default_env.tresicon.pngicon.png.importplayerSettingsTemplate.gdproject.godot
screens
userInterface
Themes

@ -0,0 +1,13 @@
#BUT_HISTORYPAGER:
# Iterates the page number and calls HistoryViewer script to display
# stored page and response fro the history array
#
extends Button
onready var historyViewerScript = get_node("/root/HistoryViewer")
#DKM TEMP: this needs refactoring -- too much being calculated as needed/repeated
func _on_But_HistoryPager_button_up() -> void:
historyViewerScript.update_pager()

@ -0,0 +1,47 @@
#CHARACTER_ADD:
# Script for adding a new character and both saving it to file and loading
# it into the character object
extends Control
var originalPath = "res://_userFiles/Template.csv"
var rows
onready var settings = get_node("/root/GlobalSaveInstance").settingsInstance
onready var SaveButton = get_node("HBoxContainer/VBoxContainer/SaveButton")
onready var nameVar = get_node("HBoxContainer/VBoxContainer/LabelName/LineEditName")
onready var profVar = get_node("HBoxContainer/VBoxContainer/LabelProfession/LineEditProf")
onready var strengthVar = get_node("HBoxContainer/VBoxContainer/LabelStrength/LineEditStrength")
onready var intelVar = get_node("HBoxContainer/VBoxContainer/LabelIntellect/LineEditIntel")
onready var willpowerVar = get_node("HBoxContainer/VBoxContainer2/LabelWillpower/LineEditWill")
onready var charmVar = get_node("HBoxContainer/VBoxContainer2/LabelCharm/LineEditCharm")
onready var weaponVar = get_node("HBoxContainer/VBoxContainer2/LabelWeapon/LineEditWeapon")
onready var armorVar = get_node("HBoxContainer/VBoxContainer2/LabelArmor/LineEditArmor")
onready var quoteVar = get_node("HBoxContainer/VBoxContainer2/LabelQuote/LineEditQuote")
func _process(delta):
if SaveButton.pressed == true:
$Title/FileDialog.popup()
func _ready() -> void:
theme=load(settings.themeFile)
#DKM TEMP: just text for now from text edit
func _on_FileDialog_file_selected(path: String) -> void:
var pc = get_node("/root/PlayerCharacter")
var newCharFile = File.new()
newCharFile.open(path, 2)
var f = File.new()
f.store_csv_line(["Name", nameVar.get_text()])
f.store_csv_line(["Profession", profVar.get_text()])
f.store_csv_line(["Strength", strengthVar.get_text()])
f.store_csv_line(["Intellegence", intelVar.get_text()])
f.store_csv_line(["Willpower", willpowerVar.get_text()])
f.store_csv_line(["Charm", charmVar.get_text()])
f.store_csv_line(["Weapon", weaponVar.get_text()])
f.store_csv_line(["Armor", armorVar.get_text()])
f.store_csv_line(["Quote", quoteVar.get_text()])
f.close()

@ -0,0 +1,186 @@
[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/Character_Add.gd" type="Script" id=3]
[node name="Control" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 3 )
[node name="TextEdit" type="TextEdit" parent="."]
margin_left = 215.0
margin_top = 23.0
margin_right = 997.0
margin_bottom = 447.0
[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 = "Create Character (temp)"
__meta__ = {
"_edit_use_anchors_": true
}
[node name="But_SaveChar" type="Button" parent="Title"]
margin_right = 12.0
margin_bottom = 20.0
text = "Save Character"
[node name="But_ChangeScene" parent="Title" instance=ExtResource( 2 )]
margin_left = -1.0
margin_top = 48.0
margin_right = 142.0
margin_bottom = 72.0
text = "Temp: Main Menu"
[node name="But_StartNewGame" parent="Title" instance=ExtResource( 2 )]
margin_top = 98.0
margin_right = 159.0
margin_bottom = 122.0
text = "Temp: Start New Game"
[node name="FileDialog" type="FileDialog" parent="Title"]
margin_left = 164.0
margin_top = 35.0
margin_right = 741.0
margin_bottom = 426.0
access = 1
[node name="HBoxContainer" type="HBoxContainer" parent="."]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -83.0
margin_top = 30.0
margin_right = 83.0
margin_bottom = 388.0
custom_constants/separation = 40
[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer"]
margin_right = 105.0
margin_bottom = 358.0
custom_constants/separation = 20
[node name="LabelName" type="Label" parent="HBoxContainer/VBoxContainer"]
margin_right = 105.0
margin_bottom = 31.0
text = "NAME
"
[node name="LineEditName" type="LineEdit" parent="HBoxContainer/VBoxContainer/LabelName"]
margin_top = 25.0
margin_right = 58.0
margin_bottom = 24.0
[node name="LabelProfession" type="Label" parent="HBoxContainer/VBoxContainer"]
margin_top = 51.0
margin_right = 105.0
margin_bottom = 82.0
text = "PROFESSION
"
[node name="LineEditProf" type="LineEdit" parent="HBoxContainer/VBoxContainer/LabelProfession"]
margin_top = 25.0
margin_right = 58.0
margin_bottom = 24.0
[node name="LabelStrength" type="Label" parent="HBoxContainer/VBoxContainer"]
margin_top = 102.0
margin_right = 105.0
margin_bottom = 133.0
text = "STRENGTH
"
[node name="LineEditStrength" type="LineEdit" parent="HBoxContainer/VBoxContainer/LabelStrength"]
margin_top = 25.0
margin_right = 58.0
margin_bottom = 24.0
[node name="LabelIntellect" type="Label" parent="HBoxContainer/VBoxContainer"]
margin_top = 153.0
margin_right = 105.0
margin_bottom = 184.0
text = "INTELLECT
"
[node name="LineEditIntel" type="LineEdit" parent="HBoxContainer/VBoxContainer/LabelIntellect"]
margin_top = 25.0
margin_right = 58.0
margin_bottom = 24.0
[node name="SaveButton" type="Button" parent="HBoxContainer/VBoxContainer"]
margin_top = 204.0
margin_right = 105.0
margin_bottom = 224.0
text = "Save Character"
[node name="VBoxContainer2" type="VBoxContainer" parent="HBoxContainer"]
margin_left = 145.0
margin_right = 224.0
margin_bottom = 358.0
custom_constants/separation = 30
[node name="LabelWillpower" type="Label" parent="HBoxContainer/VBoxContainer2"]
margin_right = 79.0
margin_bottom = 31.0
text = "WILLPOWER
"
[node name="LineEditWill" type="LineEdit" parent="HBoxContainer/VBoxContainer2/LabelWillpower"]
margin_top = 25.0
margin_right = 58.0
margin_bottom = 24.0
[node name="LabelCharm" type="Label" parent="HBoxContainer/VBoxContainer2"]
margin_top = 61.0
margin_right = 79.0
margin_bottom = 75.0
text = "CHARM"
[node name="LineEditCharm" type="LineEdit" parent="HBoxContainer/VBoxContainer2/LabelCharm"]
margin_top = 25.0
margin_right = 58.0
margin_bottom = 24.0
[node name="LabelWeapon" type="Label" parent="HBoxContainer/VBoxContainer2"]
margin_top = 105.0
margin_right = 79.0
margin_bottom = 136.0
text = "WEAPON
"
[node name="LineEditWeapon" type="LineEdit" parent="HBoxContainer/VBoxContainer2/LabelWeapon"]
margin_top = 25.0
margin_right = 58.0
margin_bottom = 24.0
[node name="LabelArmor" type="Label" parent="HBoxContainer/VBoxContainer2"]
margin_top = 166.0
margin_right = 79.0
margin_bottom = 180.0
text = "ARMOR"
[node name="LineEditArmor" type="LineEdit" parent="HBoxContainer/VBoxContainer2/LabelArmor"]
margin_top = 25.0
margin_right = 58.0
margin_bottom = 24.0
[node name="LabelQuote" type="Label" parent="HBoxContainer/VBoxContainer2"]
margin_top = 210.0
margin_right = 79.0
margin_bottom = 224.0
text = "QUOTE"
[node name="LineEditQuote" type="LineEdit" parent="HBoxContainer/VBoxContainer2/LabelQuote"]
margin_top = 25.0
margin_right = 58.0
margin_bottom = 24.0
[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"]

@ -0,0 +1,24 @@
#CHARACTER_LOAD:
# Script for loading a character file into the character object from file
extends Control
onready var settings = get_node("/root/GlobalSaveInstance").settingsInstance
func _ready() -> void:
theme=load(settings.themeFile)
$Title/But_loadCharacter.grab_focus()
func _on_But_loadCharacter_pressed() -> void:
$LoadCharacter_FileDialog.popup()
#DKM TEMP: we need to load the character item, not display to field
func _on_LoadCharacter_FileDialog_file_selected(path: String) -> void:
print(path)
var charFile = File.new()
charFile.open(path, 1)
var pc = get_node("/root/PlayerCharacter")
pc.playerCharacterSingleton.pcText = charFile.get_as_text()
$TextEdit.text = pc.playerCharacterSingleton.pcText

@ -0,0 +1,72 @@
[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/Character_Load.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="TextEdit" type="TextEdit" parent="."]
margin_left = 189.0
margin_top = 18.0
margin_right = 989.0
margin_bottom = 461.0
readonly = true
__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 = "Load Character (temp)"
[node name="But_loadCharacter" type="Button" parent="Title"]
margin_left = 22.0
margin_top = 34.0
margin_right = 155.0
margin_bottom = 54.0
text = "Load Character File"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="But_StartNewGame" parent="Title" instance=ExtResource( 2 )]
margin_left = 22.0
margin_top = 71.0
margin_right = 181.0
margin_bottom = 95.0
text = "Temp: Start New Game"
[node name="But_ChangeScene" parent="Title" instance=ExtResource( 2 )]
margin_left = 21.0
margin_top = 109.0
margin_right = 164.0
margin_bottom = 133.0
text = "Temp: Main Menu "
[node name="LoadCharacter_FileDialog" type="FileDialog" parent="."]
margin_left = 193.0
margin_top = 33.0
margin_right = 862.0
margin_bottom = 409.0
window_title = "Open a File"
mode = 0
access = 1
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="pressed" from="Title/But_loadCharacter" to="." method="_on_But_loadCharacter_pressed"]
[connection signal="file_selected" from="LoadCharacter_FileDialog" to="." method="_on_LoadCharacter_FileDialog_file_selected"]

@ -0,0 +1,49 @@
#HISTORY_VIEWER:
# Controls output space -- will display the appropriate history array page.
# DKM TEMP: 5/15/22: what's here is replicated from the Game script for starting
# purposes. I have this working in experimental version -- will add this back
# next.
extends Control
onready var settings = get_node("/root/GlobalSaveInstance").settingsInstance
onready var history_source = get_node("/root/History").historyScreensSingleton
onready var current_history = $Background/MarginContainer/Rows/GameInfo/CurrentHistory
#For zero-indexed array position:
onready var current_history_page_no = 0
onready var page_displayer = $Background/MarginContainer/Rows/ItemList/Page_Display
#Abstract class we instance when wanted in game as child of HistoryReference
const TextOutput = preload("res://UserInterface/Response.tscn")
const InputResponse = preload("res://UserInterface/InputResponse.tscn")
func _ready() -> void:
theme=load(settings.themeFile)
print("Loaded history array size is: " + str(history_source.output_history_array.size()))
update_pager()
#DKM TEMP:
# page_displayer.text = "1"
# if(current_history.get_child_count() > 0):
# current_history.remove_child(current_history.get_child(0))
# var opening_res = history_source.output_history_array[0]
# current_history.add_child(opening_res)
#Copies the response output to add to both current game output, and the
# history array.
func add_display_to_game(response: Control):
if(current_history.get_child_count() > 0):
current_history.remove_child(current_history.get_child(0))
current_history.add_child(response)
func update_pager():
if(current_history_page_no >= history_source.output_history_array.size()):
current_history_page_no = 0
print("Current page: " + str(current_history_page_no))
add_display_to_game(history_source.output_history_array[current_history_page_no])
current_history_page_no = current_history_page_no +1
page_displayer.text = str(current_history_page_no)

@ -0,0 +1,99 @@
[gd_scene load_steps=5 format=2]
[ext_resource path="res://screens/HistoryViewer.gd" type="Script" id=1]
[ext_resource path="res://userInterface/But_ChangeScene.tscn" type="PackedScene" id=2]
[ext_resource path="res://assets/ui_controlNode_dark_theme.tres" type="Theme" id=3]
[ext_resource path="res://screens/But_HistoryPager.gd" type="Script" id=4]
[node name="HistoryViewer" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
theme = ExtResource( 3 )
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Background" type="PanelContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="MarginContainer" type="MarginContainer" parent="Background"]
margin_left = 1.0
margin_top = 1.0
margin_right = 1023.0
margin_bottom = 599.0
custom_constants/margin_right = 20
custom_constants/margin_top = 10
custom_constants/margin_left = 20
custom_constants/margin_bottom = 20
[node name="Rows" type="VBoxContainer" parent="Background/MarginContainer"]
margin_left = 20.0
margin_top = 10.0
margin_right = 1002.0
margin_bottom = 578.0
custom_constants/separation = 10
[node name="ItemList" type="ItemList" parent="Background/MarginContainer/Rows"]
margin_right = 982.0
margin_bottom = 40.0
rect_min_size = Vector2( 0, 40 )
[node name="But_ChangeScene" parent="Background/MarginContainer/Rows/ItemList" instance=ExtResource( 2 )]
margin_right = 200.0
margin_bottom = 36.0
text = "More Options"
[node name="But_HistoryPager" type="Button" parent="Background/MarginContainer/Rows/ItemList"]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -84.0
margin_right = 115.0
margin_bottom = 36.0
text = "History Pager"
script = ExtResource( 4 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="Background/MarginContainer/Rows/ItemList"]
anchor_left = 1.0
anchor_right = 1.0
margin_left = -194.94
margin_top = -1.12247
margin_right = -81.9397
margin_bottom = 23.8775
text = "History Page:"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Page_Display" type="Label" parent="Background/MarginContainer/Rows/ItemList"]
anchor_left = 1.0
anchor_right = 1.0
margin_left = -40.0
margin_bottom = 25.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="GameInfo" type="PanelContainer" parent="Background/MarginContainer/Rows"]
margin_top = 50.0
margin_right = 982.0
margin_bottom = 568.0
size_flags_vertical = 3
[node name="CurrentHistory" type="VBoxContainer" parent="Background/MarginContainer/Rows/GameInfo"]
margin_left = 1.0
margin_top = 1.0
margin_right = 981.0
margin_bottom = 517.0
size_flags_horizontal = 3
size_flags_vertical = 3
custom_constants/separation = 20
[connection signal="button_up" from="Background/MarginContainer/Rows/ItemList/But_HistoryPager" to="Background/MarginContainer/Rows/ItemList/But_HistoryPager" method="_on_But_HistoryPager_button_up"]

@ -0,0 +1,48 @@
#GRAB FOCUS: simple script for temp files to grab focus
# Expanded for Import Character option
extends Control
onready var settings = get_node("/root/GlobalSaveInstance").settingsInstance
onready var pSingleton = get_node("/root/PlayerCharacter").pc
var charFilePath
var a
func _ready() -> void:
theme=load(settings.themeFile)
func _on_Button_pressed():
$FileDialog.popup()
#this is going to take information from the file the player chose and put the individul parts into textboxes so it can be edited and then saved
func _on_FileDialog_file_selected(path):
var file = File.new()
#read the text in the file, save it in the variable a
file.open(path, File.READ)
#split by the spaces so the individual pieces can be separated into textboxes
while file.eof_reached() == false:
var csvStrArray = file.get_csv_line()
var i = 0
var isLabel = true
while i < csvStrArray.size():
var csvStr = csvStrArray[i]
if(isLabel):
#make a new textbox for each piece of information
var textLine = Label.new()
$ScrollContainer/VBoxContainer.add_child(textLine)
textLine.text = csvStr.to_upper()
isLabel = false
#DKM TEMP: save this unformatted to the singleton text string
pSingleton.pcText += csvStr.to_upper() + ": "
else:
isLabel = true
var textBox = LineEdit.new()
$ScrollContainer/VBoxContainer.add_child(textBox)
textBox.text = csvStr
#DKM TEMP: save this unformatted to the singleton text string
pSingleton.pcText += csvStr + "\n"
i += 1
file.close()

@ -0,0 +1,123 @@
[gd_scene load_steps=5 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/ImportCharacter.gd" type="Script" id=3]
[ext_resource path="res://userInterface/But_PlayButton.gd" type="Script" id=4]
[node name="Control" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="PopupDialog" type="PopupDialog" parent="."]
anchor_top = 0.5
anchor_bottom = 0.5
[node name="WarnText" type="Label" parent="PopupDialog"]
margin_right = 40.0
margin_bottom = 14.0
text = "Example"
[node name="Background" type="Panel" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="FileDialog" type="FileDialog" parent="."]
margin_left = 113.0
margin_top = 24.0
margin_right = 886.0
margin_bottom = 480.0
window_title = "Open a File"
mode = 0
access = 2
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Title" parent="." instance=ExtResource( 1 )]
margin_left = -164.0
margin_top = 0.0
margin_right = 164.0
margin_bottom = 14.0
text = "Import Character"
[node name="But_Play" parent="." instance=ExtResource( 2 )]
margin_left = 1.0
margin_top = 34.0
margin_right = 152.0
margin_bottom = 71.0
text = "Start Game"
script = ExtResource( 4 )
next_scene_path = "res://gamePlay/Game.tscn"
[node name="But_Cancel" parent="." instance=ExtResource( 2 )]
margin_left = 1.0
margin_top = 78.0
margin_right = 152.0
margin_bottom = 115.0
text = "Back"
[node name="VBoxContainer2" type="VBoxContainer" parent="."]
anchor_left = 0.0634766
anchor_top = 0.0583333
anchor_right = 0.103516
anchor_bottom = 0.0583333
margin_left = 107.0
margin_right = 435.0
margin_bottom = 44.0
alignment = 1
__meta__ = {
"_edit_use_anchors_": true
}
[node name="But_OpenFile" type="Button" parent="VBoxContainer2"]
margin_right = 369.0
margin_bottom = 20.0
text = "Open Character File"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Save_Button" type="Button" parent="VBoxContainer2"]
margin_top = 24.0
margin_right = 369.0
margin_bottom = 44.0
text = "Save"
[node name="ScrollContainer" type="ScrollContainer" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -341.0
margin_top = -175.0
margin_right = 427.0
margin_bottom = 284.0
follow_focus = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="VBoxContainer" parent="ScrollContainer"]
__meta__ = {
"_edit_use_anchors_": false
}
[node name="NameLabel" type="Label" parent="ScrollContainer/VBoxContainer"]
visible = false
margin_bottom = 14.0
[node name="LineEdit" type="LineEdit" parent="ScrollContainer/VBoxContainer"]
visible = false
margin_right = 58.0
margin_bottom = 24.0
[connection signal="file_selected" from="FileDialog" to="." method="_on_FileDialog_file_selected"]
[connection signal="pressed" from="VBoxContainer2/But_OpenFile" to="." method="_on_Button_pressed"]

@ -0,0 +1,26 @@
[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"

@ -0,0 +1,11 @@
#MENUSCREEN:
# Script purely to grab focus for tabbing control
extends Control
onready var settings = get_node("/root/GlobalSaveInstance").settingsInstance
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
theme=load(settings.themeFile)
$VBoxContainer/But_NewGame.grab_focus()

@ -0,0 +1,93 @@
[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
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Title" parent="." instance=ExtResource( 5 )]
margin_top = 51.8676
margin_bottom = 117.868
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 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="But_NewGame" parent="VBoxContainer" instance=ExtResource( 1 )]
margin_right = 238.0
margin_bottom = 40.0
[node name="But_LoadGame" parent="VBoxContainer" instance=ExtResource( 1 )]
margin_top = 44.0
margin_right = 238.0
margin_bottom = 85.0
text = "Load Game"
[node name="But_Multiplayer" parent="VBoxContainer" instance=ExtResource( 1 )]
margin_top = 89.0
margin_right = 238.0
margin_bottom = 130.0
text = "Multiplayer"
[node name="But_AddChar" parent="VBoxContainer" instance=ExtResource( 1 )]
margin_top = 134.0
margin_right = 238.0
margin_bottom = 174.0
text = "Add Character"
[node name="But_ImportChar2" parent="VBoxContainer" instance=ExtResource( 1 )]
margin_top = 178.0
margin_right = 238.0
margin_bottom = 219.0
text = "Import Character"
[node name="But_Settings" parent="VBoxContainer" instance=ExtResource( 1 )]
margin_top = 223.0
margin_right = 238.0
margin_bottom = 264.0
text = "Settings"
[node name="But_Quit" parent="VBoxContainer" instance=ExtResource( 10 )]
margin_top = 268.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 = -177.0
margin_top = -44.0
margin_right = -5.0
margin_bottom = -6.0
text = "Version: 0.0.0"
__meta__ = {
"_edit_use_anchors_": false
}

@ -0,0 +1,11 @@
#MOREOPTIONS:
# Script purely to grab focus for tabbing control
extends Control
onready var settings = get_node("/root/GlobalSaveInstance").settingsInstance
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
theme=load(settings.themeFile)
$VBoxContainer/But_ResumeGame.grab_focus()

@ -0,0 +1,79 @@
[gd_scene load_steps=5 format=2]
[ext_resource path="res://userInterface/But_ChangeScene.tscn" type="PackedScene" id=1]
[ext_resource path="res://screens/MoreOptions.gd" type="Script" id=2]
[ext_resource path="res://userInterface/But_ResumeGame.gd" type="Script" id=3]
[ext_resource path="res://assets/ui_controlNode_dark_theme.tres" type="Theme" id=6]
[node name="MoreOptions" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
theme = ExtResource( 6 )
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Background" type="Panel" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}
[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_ResumeGame" type="Button" parent="VBoxContainer"]
margin_right = 238.0
margin_bottom = 36.0
text = "Resume Game"
script = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="But_ShowHistory" parent="VBoxContainer" instance=ExtResource( 1 )]
margin_top = 40.0
margin_right = 238.0
margin_bottom = 125.0
text = "Show History"
[node name="But_Chat" parent="VBoxContainer" instance=ExtResource( 1 )]
margin_top = 129.0
margin_right = 238.0
margin_bottom = 214.0
text = "Chat"
[node name="But_MainMenu" parent="VBoxContainer" instance=ExtResource( 1 )]
margin_top = 218.0
margin_right = 238.0
margin_bottom = 304.0
text = "Main Menu"
[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
}
[connection signal="button_up" from="VBoxContainer/But_ResumeGame" to="VBoxContainer/But_ResumeGame" method="_on_But_ResumeGame_button_up"]

@ -0,0 +1,26 @@
[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"

@ -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"

@ -0,0 +1,11 @@
#PLAYERSELECTION:
# Script purely to grab focus for tabbing control
extends Control
onready var settings = get_node("/root/GlobalSaveInstance").settingsInstance
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
theme=load(settings.themeFile)
$VBoxContainer/But_ChoosePlayer.grab_focus()

@ -0,0 +1,66 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://userInterface/But_ChangeScene.tscn" type="PackedScene" id=1]
[ext_resource path="res://screens/PlayerSelection.gd" type="Script" id=2]
[ext_resource path="res://assets/ui_controlNode_dark_theme.tres" type="Theme" id=6]
[node name="PlayerSelection" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
theme = ExtResource( 6 )
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Background" type="Panel" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}
[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_ChoosePlayer" parent="VBoxContainer" instance=ExtResource( 1 )]
margin_right = 238.0
margin_bottom = 98.0
text = "Import Character"
[node name="But_AddChar" parent="VBoxContainer" instance=ExtResource( 1 )]
margin_top = 102.0
margin_right = 238.0
margin_bottom = 201.0
text = "Create Character"
[node name="But_MainMenu" parent="VBoxContainer" instance=ExtResource( 1 )]
margin_top = 205.0
margin_right = 238.0
margin_bottom = 304.0
text = "Main Menu"
[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
}

@ -0,0 +1,134 @@
extends Control
# https://stackoverflow.com/a/65774028
# Be Sure to make these Vars as OnReadys; you can read up on it here.
# Items to Fill the dropdown Lists
onready var keyboardContents = ["Qwerty", "Dvorak", "Alphabetical"]
onready var themeContents = ["White on Black", "Black on White"]
onready var saveObject = get_node('/root/GlobalSaveInstance')
#res://SettingsMenuControl.tscn
# Vars For UI Widgets
onready var NameVar = get_node('Panel/HBoxContainer/RootVboxPlayerPreferences/Label/VBoxPlayerPreferances/DisplayNameLineEdit')
onready var NRiskVar = get_node('Panel/HBoxContainer/RootVboxPlayerPreferences/Label/VBoxPlayerPreferances/VBoxRiskFactor/RiskSlider')
onready var FontVar = get_node("Panel/HBoxContainer/RootVboxVisualControls/VisualControlsLabel/VisualControlsVBox/FontSizeSlider")
onready var BrightnessVar = get_node('Panel/HBoxContainer/RootVboxVisualControls/VisualControlsLabel/VisualControlsVBox/BrightnessSlider')
onready var VolumeVar = get_node("Panel/HBoxContainer/RootVboxGeneralSettings/GeneralSettingsLabel/VBoxContainer/VolumeSlider")
onready var ClosedCaptionsVar = get_node('Panel/HBoxContainer/RootVboxGeneralSettings/GeneralSettingsLabel/VBoxContainer/HBoxClosedCaptions/ClosedCaptionsCheckBox')
onready var ConsoleCommandVar = get_node('Panel/HBoxContainer/RootVboxGeneralSettings/GeneralSettingsLabel/VBoxContainer/HBoxDevConsole/DevConsoleCheckbox')
onready var saveButton = get_node("Panel/HBoxBottomRow/SaveButton")
onready var bKeyboardEnabled = get_node("Panel/HBoxContainer/RootVboxVisualControls2/Label2/VBoxContainer/HBoxVirtualKeyboardEnabled/VisualKeyboardCheckBox")
onready var keyboardLayoutList = get_node('Panel/HBoxContainer/RootVboxVisualControls2/Label2/VBoxContainer/LayoutItemList')
onready var themeChoiceList = get_node('Panel/HBoxContainer/RootVboxVisualControls2/Label2/VBoxContainer/ThemeItemList')
var iniFile = ConfigFile.new()
func saveToInstance():
#Save to Singleton, so saveFile does not need to be constantly read
saveObject.settingsInstance.inputName = NameVar.text
saveObject.settingsInstance.riskFactor = NRiskVar.value
saveObject.settingsInstance.fontSize = FontVar.value
saveObject.settingsInstance.volume = VolumeVar.value
saveObject.settingsInstance.bClosedCaptions = ClosedCaptionsVar.is_pressed()
saveObject.settingsInstance.bdevConsole = ConsoleCommandVar.is_pressed()
saveObject.settingsInstance.bVirtualKeyboard = bKeyboardEnabled.is_pressed()
var savedKeyboardItems = keyboardLayoutList.get_selected_items()
var keyboardSelection = savedKeyboardItems[0]
saveObject.settingsInstance.visualKeyboardLayout = keyboardSelection
var savedThemeItems = themeChoiceList.get_selected_items()
var themeSelection = savedThemeItems[0]
saveObject.settingsInstance.themeChoiceInt = themeSelection
#Trigger re-load of the file name
saveObject.load_settings_file()
theme=load(saveObject.settingsInstance.themeFile)
func saveFile():
iniFile.set_value("player_preferences", "player_name", NameVar.text)
iniFile.set_value("player_preferences", "risk_threshold", NRiskVar.value)
iniFile.set_value("visual_controls", "font_size", FontVar.value)
iniFile.set_value("visual_controls", "brightness", BrightnessVar.value)
iniFile.set_value("general_settings", "volume", VolumeVar.value)
iniFile.set_value("general_settings", "closed_captions", ClosedCaptionsVar.is_pressed())
iniFile.set_value("general_settings", "dev_console", ConsoleCommandVar.is_pressed())
print(keyboardLayoutList.get_selected_items())
var savedKeyboardItems = keyboardLayoutList.get_selected_items()
var keyboardSelection = savedKeyboardItems[0]
var savedThemeItems = themeChoiceList.get_selected_items()
var themeSelection = savedThemeItems[0]
print(typeof(keyboardSelection))
iniFile.set_value("virtual_keyboard", "keyboard_layout", keyboardSelection)
iniFile.set_value("theme", "theme_selection", themeSelection)
iniFile.save("res://_userFiles/PlayerPreferences.cfg")
#DKM TEMP: can this be done at singleton, initial load level instead of here?
func loadFile():
pass
func _process(delta):
if saveButton.pressed == true:
if NameVar.text == "":
print("Please input a name")
if NameVar.text != "":
# Save to the template instance
saveToInstance()
saveFile()
print('saveFileRan')
func _ready():
#Get the singleton's values for initial settings:
NameVar.text = saveObject.settingsInstance.inputName
NRiskVar.value = saveObject.settingsInstance.riskFactor
FontVar.value = saveObject.settingsInstance.fontSize
ClosedCaptionsVar.pressed = saveObject.settingsInstance.bClosedCaptions
ConsoleCommandVar.pressed = saveObject.settingsInstance.bdevConsole
bKeyboardEnabled.pressed = saveObject.settingsInstance.bVirtualKeyboard
print(NameVar.get_path())
# Init Keyboard Layout List
for i in range(3):
keyboardLayoutList.add_item(keyboardContents[i],null,true)
keyboardLayoutList.select(0,true)
# Init Theme Choice List
for i in range(2):
themeChoiceList.add_item(themeContents[i],null,true)
keyboardLayoutList.select(saveObject.settingsInstance.visualKeyboardLayout,true)
themeChoiceList.select(saveObject.settingsInstance.themeChoiceInt,true)
#Load selected theme:
theme=load(saveObject.settingsInstance.themeFile)

@ -0,0 +1,321 @@
[gd_scene load_steps=5 format=2]
[ext_resource path="res://screens/SettingsMenuConfig.gd" type="Script" id=1]
[ext_resource path="res://assets/liberation_serif.tres" type="DynamicFont" id=2]
[ext_resource path="res://userInterface/But_ChangeScene.tscn" type="PackedScene" id=3]
[sub_resource type="Theme" id=1]
default_font = ExtResource( 2 )
[node name="Control" type="Control"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -512.0
margin_top = -300.0
margin_right = 512.0
margin_bottom = 300.0
theme = SubResource( 1 )
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Panel" type="Panel" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -512.0
margin_top = -302.0
margin_right = 512.0
margin_bottom = 298.0
rect_pivot_offset = Vector2( -276, 469 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="HBoxContainer" type="HBoxContainer" parent="Panel"]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -298.5
margin_right = 298.5
margin_bottom = 19.0
custom_constants/separation = 60
alignment = 1
[node name="RootVboxVisualControls" type="VBoxContainer" parent="Panel/HBoxContainer"]
margin_right = 98.0
margin_bottom = 19.0
[node name="VisualControlsLabel" type="Label" parent="Panel/HBoxContainer/RootVboxVisualControls"]
margin_right = 98.0
margin_bottom = 19.0
text = "Visual Controls"
[node name="VisualControlsVBox" type="VBoxContainer" parent="Panel/HBoxContainer/RootVboxVisualControls/VisualControlsLabel"]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -77.5
margin_top = 30.0
margin_right = 77.5
margin_bottom = 52.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="HBoxFontSize" type="HBoxContainer" parent="Panel/HBoxContainer/RootVboxVisualControls/VisualControlsLabel/VisualControlsVBox"]
margin_right = 155.0
margin_bottom = 19.0
[node name="FontLabel" type="Label" parent="Panel/HBoxContainer/RootVboxVisualControls/VisualControlsLabel/VisualControlsVBox/HBoxFontSize"]
margin_right = 64.0
margin_bottom = 19.0
text = "Font Size:"
[node name="FontSizeSlider" type="HSlider" parent="Panel/HBoxContainer/RootVboxVisualControls/VisualControlsLabel/VisualControlsVBox"]
margin_top = 23.0
margin_right = 155.0
margin_bottom = 39.0
min_value = 1.0
max_value = 5.0
value = 5.0
rounded = true
tick_count = 10
ticks_on_borders = true
[node name="BrightnessLabel" type="Label" parent="Panel/HBoxContainer/RootVboxVisualControls/VisualControlsLabel/VisualControlsVBox"]
margin_top = 43.0
margin_right = 155.0
margin_bottom = 62.0
text = "Brightness:"
[node name="BrightnessSlider" type="HSlider" parent="Panel/HBoxContainer/RootVboxVisualControls/VisualControlsLabel/VisualControlsVBox"]
margin_top = 66.0
margin_right = 155.0
margin_bottom = 82.0
min_value = 1.0
max_value = 5.0
value = 5.0
rounded = true
tick_count = 10
ticks_on_borders = true
[node name="RootVboxPlayerPreferences" type="VBoxContainer" parent="Panel/HBoxContainer"]
margin_left = 158.0
margin_right = 275.0
margin_bottom = 19.0
[node name="Label" type="Label" parent="Panel/HBoxContainer/RootVboxPlayerPreferences"]
margin_right = 117.0
margin_bottom = 19.0
text = "Player Preferances"
[node name="VBoxPlayerPreferances" type="VBoxContainer" parent="Panel/HBoxContainer/RootVboxPlayerPreferences/Label"]
margin_left = -18.5
margin_top = 30.0
margin_right = 126.5
margin_bottom = 125.0
[node name="HBoxDisplayName" type="HBoxContainer" parent="Panel/HBoxContainer/RootVboxPlayerPreferences/Label/VBoxPlayerPreferances"]
margin_right = 145.0
margin_bottom = 19.0
[node name="DisplayNameLabel" type="Label" parent="Panel/HBoxContainer/RootVboxPlayerPreferences/Label/VBoxPlayerPreferances/HBoxDisplayName"]
margin_right = 95.0
margin_bottom = 19.0
text = "Display Name:"
[node name="DisplayNameLineEdit" type="LineEdit" parent="Panel/HBoxContainer/RootVboxPlayerPreferences/Label/VBoxPlayerPreferances"]
margin_top = 23.0
margin_right = 145.0
margin_bottom = 52.0
[node name="VBoxRiskFactor" type="VBoxContainer" parent="Panel/HBoxContainer/RootVboxPlayerPreferences/Label/VBoxPlayerPreferances"]
margin_top = 56.0
margin_right = 145.0
margin_bottom = 95.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="HBoxRiskFactor" type="HBoxContainer" parent="Panel/HBoxContainer/RootVboxPlayerPreferences/Label/VBoxPlayerPreferances/VBoxRiskFactor"]
margin_right = 145.0
margin_bottom = 19.0
[node name="RiskFactorLabel" type="Label" parent="Panel/HBoxContainer/RootVboxPlayerPreferences/Label/VBoxPlayerPreferances/VBoxRiskFactor/HBoxRiskFactor"]
margin_right = 145.0
margin_bottom = 19.0
text = "Risk Factor Threshold:"
[node name="RiskSlider" type="HSlider" parent="Panel/HBoxContainer/RootVboxPlayerPreferences/Label/VBoxPlayerPreferances/VBoxRiskFactor"]
margin_top = 23.0
margin_right = 145.0
margin_bottom = 39.0
min_value = 1.0
max_value = 5.0
value = 5.0
rounded = true
tick_count = 10
ticks_on_borders = true
[node name="RootVboxGeneralSettings" type="VBoxContainer" parent="Panel/HBoxContainer"]
margin_left = 335.0
margin_right = 439.0
margin_bottom = 19.0
[node name="GeneralSettingsLabel" type="Label" parent="Panel/HBoxContainer/RootVboxGeneralSettings"]
margin_right = 104.0
margin_bottom = 19.0
text = "General Settings"
[node name="VBoxContainer" type="VBoxContainer" parent="Panel/HBoxContainer/RootVboxGeneralSettings/GeneralSettingsLabel"]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -77.5
margin_top = 30.0
margin_right = 77.5
margin_bottom = 120.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="Panel/HBoxContainer/RootVboxGeneralSettings/GeneralSettingsLabel/VBoxContainer"]
margin_right = 155.0
margin_bottom = 19.0
rect_pivot_offset = Vector2( 62, 14 )
text = "Volume:"
[node name="VolumeSlider" type="HSlider" parent="Panel/HBoxContainer/RootVboxGeneralSettings/GeneralSettingsLabel/VBoxContainer"]
margin_top = 23.0
margin_right = 155.0
margin_bottom = 39.0
max_value = 10.0
rounded = true
tick_count = 10
ticks_on_borders = true
[node name="HBoxClosedCaptions" type="HBoxContainer" parent="Panel/HBoxContainer/RootVboxGeneralSettings/GeneralSettingsLabel/VBoxContainer"]
margin_top = 43.0
margin_right = 155.0
margin_bottom = 70.0
[node name="ClosedCaptionsLabel" type="Label" parent="Panel/HBoxContainer/RootVboxGeneralSettings/GeneralSettingsLabel/VBoxContainer/HBoxClosedCaptions"]
margin_top = 4.0
margin_right = 108.0
margin_bottom = 23.0
text = "Closed Captions:"
[node name="ClosedCaptionsCheckBox" type="CheckBox" parent="Panel/HBoxContainer/RootVboxGeneralSettings/GeneralSettingsLabel/VBoxContainer/HBoxClosedCaptions"]
margin_left = 112.0
margin_right = 136.0
margin_bottom = 27.0
[node name="HBoxDevConsole" type="HBoxContainer" parent="Panel/HBoxContainer/RootVboxGeneralSettings/GeneralSettingsLabel/VBoxContainer"]
margin_top = 74.0
margin_right = 155.0
margin_bottom = 101.0
[node name="DevConsoleLabel" type="Label" parent="Panel/HBoxContainer/RootVboxGeneralSettings/GeneralSettingsLabel/VBoxContainer/HBoxDevConsole"]
margin_top = 4.0
margin_right = 126.0
margin_bottom = 23.0
text = "Developer Console:"
[node name="DevConsoleCheckbox" type="CheckBox" parent="Panel/HBoxContainer/RootVboxGeneralSettings/GeneralSettingsLabel/VBoxContainer/HBoxDevConsole"]
margin_left = 130.0
margin_right = 154.0
margin_bottom = 27.0
[node name="RootVboxVisualControls2" type="VBoxContainer" parent="Panel/HBoxContainer"]
margin_left = 499.0
margin_right = 597.0
margin_bottom = 19.0
[node name="Label2" type="Label" parent="Panel/HBoxContainer/RootVboxVisualControls2"]
margin_right = 98.0
margin_bottom = 19.0
text = "Visual Controls"
[node name="VBoxContainer" type="VBoxContainer" parent="Panel/HBoxContainer/RootVboxVisualControls2/Label2"]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -77.5
margin_top = 30.0
margin_right = 77.5
margin_bottom = 52.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="HBoxThemes" type="HBoxContainer" parent="Panel/HBoxContainer/RootVboxVisualControls2/Label2/VBoxContainer"]
margin_right = 155.0
margin_bottom = 19.0
[node name="ThemesLabel" type="Label" parent="Panel/HBoxContainer/RootVboxVisualControls2/Label2/VBoxContainer/HBoxThemes"]
margin_right = 119.0
margin_bottom = 19.0
text = "Theme Preference:"
[node name="ThemeItemList" type="ItemList" parent="Panel/HBoxContainer/RootVboxVisualControls2/Label2/VBoxContainer"]
margin_top = 23.0
margin_right = 155.0
margin_bottom = 32.0
auto_height = true
[node name="HBoxVirtualKeyboardEnabled" type="HBoxContainer" parent="Panel/HBoxContainer/RootVboxVisualControls2/Label2/VBoxContainer"]
margin_top = 36.0
margin_right = 155.0
margin_bottom = 63.0
[node name="VisualKeyBoardLabel" type="Label" parent="Panel/HBoxContainer/RootVboxVisualControls2/Label2/VBoxContainer/HBoxVirtualKeyboardEnabled"]
margin_top = 4.0
margin_right = 110.0
margin_bottom = 23.0
text = "Virtual Keyboard"
[node name="VisualKeyboardCheckBox" type="CheckBox" parent="Panel/HBoxContainer/RootVboxVisualControls2/Label2/VBoxContainer/HBoxVirtualKeyboardEnabled"]
margin_left = 114.0
margin_right = 138.0
margin_bottom = 27.0
[node name="HBoxKeyboardLayout" type="HBoxContainer" parent="Panel/HBoxContainer/RootVboxVisualControls2/Label2/VBoxContainer"]
margin_top = 67.0
margin_right = 155.0
margin_bottom = 86.0
[node name="LayoutLabel" type="Label" parent="Panel/HBoxContainer/RootVboxVisualControls2/Label2/VBoxContainer/HBoxKeyboardLayout"]
margin_right = 120.0
margin_bottom = 19.0
text = "Layout Preference:"
[node name="LayoutItemList" type="ItemList" parent="Panel/HBoxContainer/RootVboxVisualControls2/Label2/VBoxContainer"]
margin_top = 90.0
margin_right = 155.0
margin_bottom = 99.0
auto_height = true
[node name="HBoxBottomRow" type="HBoxContainer" parent="Panel"]
anchor_left = 0.500488
anchor_right = 0.595215
margin_left = -48.5
margin_top = 200.0
margin_right = 48.5
margin_bottom = 225.0
alignment = 1
__meta__ = {
"_edit_use_anchors_": true
}
[node name="SaveButton" type="Button" parent="Panel/HBoxBottomRow"]
margin_left = 24.0
margin_right = 121.0
margin_bottom = 25.0
text = "Save Settings"
[node name="But_ChangeScene" parent="Panel/HBoxBottomRow" instance=ExtResource( 3 )]
margin_left = 125.0
margin_right = 170.0
margin_bottom = 25.0
text = "Back"

@ -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

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