diff --git a/Phase2/bcirpg_move/.import/.gdignore b/Phase2/bcirpg_move/.import/.gdignore new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Phase2/bcirpg_move/.import/.gdignore @@ -0,0 +1 @@ + diff --git a/Phase2/bcirpg_move/.import/Background_black.png-56039c85507f66e5b636dc3622fcd7f0.md5 b/Phase2/bcirpg_move/.import/Background_black.png-56039c85507f66e5b636dc3622fcd7f0.md5 new file mode 100644 index 0000000..0bf079d --- /dev/null +++ b/Phase2/bcirpg_move/.import/Background_black.png-56039c85507f66e5b636dc3622fcd7f0.md5 @@ -0,0 +1,3 @@ +source_md5="79d2b9a5284e50d91a97c2dd565f2fa4" +dest_md5="ab01d4eeab6e15a95fc10ee1b4e02967" + diff --git a/Phase2/bcirpg_move/.import/Background_black.png-56039c85507f66e5b636dc3622fcd7f0.stex b/Phase2/bcirpg_move/.import/Background_black.png-56039c85507f66e5b636dc3622fcd7f0.stex new file mode 100644 index 0000000..6865b26 Binary files /dev/null and b/Phase2/bcirpg_move/.import/Background_black.png-56039c85507f66e5b636dc3622fcd7f0.stex differ diff --git a/Phase2/bcirpg_move/.import/Background_black.png-5f076dc51f49c2d5a7007d49260388b4.md5 b/Phase2/bcirpg_move/.import/Background_black.png-5f076dc51f49c2d5a7007d49260388b4.md5 new file mode 100644 index 0000000..0bf079d --- /dev/null +++ b/Phase2/bcirpg_move/.import/Background_black.png-5f076dc51f49c2d5a7007d49260388b4.md5 @@ -0,0 +1,3 @@ +source_md5="79d2b9a5284e50d91a97c2dd565f2fa4" +dest_md5="ab01d4eeab6e15a95fc10ee1b4e02967" + diff --git a/Phase2/bcirpg_move/.import/Background_black.png-5f076dc51f49c2d5a7007d49260388b4.stex b/Phase2/bcirpg_move/.import/Background_black.png-5f076dc51f49c2d5a7007d49260388b4.stex new file mode 100644 index 0000000..6865b26 Binary files /dev/null and b/Phase2/bcirpg_move/.import/Background_black.png-5f076dc51f49c2d5a7007d49260388b4.stex differ diff --git a/Phase2/bcirpg_move/.import/Background_white.png-092c9ce605239bda8605597c05979c3a.md5 b/Phase2/bcirpg_move/.import/Background_white.png-092c9ce605239bda8605597c05979c3a.md5 new file mode 100644 index 0000000..1b48e5f --- /dev/null +++ b/Phase2/bcirpg_move/.import/Background_white.png-092c9ce605239bda8605597c05979c3a.md5 @@ -0,0 +1,3 @@ +source_md5="13a1e728def8fb06bd8e797fcc392604" +dest_md5="b396169339b2e8d769e9830c387050ad" + diff --git a/Phase2/bcirpg_move/.import/Background_white.png-092c9ce605239bda8605597c05979c3a.stex b/Phase2/bcirpg_move/.import/Background_white.png-092c9ce605239bda8605597c05979c3a.stex new file mode 100644 index 0000000..f33586d Binary files /dev/null and b/Phase2/bcirpg_move/.import/Background_white.png-092c9ce605239bda8605597c05979c3a.stex differ diff --git a/Phase2/bcirpg_move/.import/Background_white.png-90278c2837a8c1d366dff638eb6d5498.md5 b/Phase2/bcirpg_move/.import/Background_white.png-90278c2837a8c1d366dff638eb6d5498.md5 new file mode 100644 index 0000000..1b48e5f --- /dev/null +++ b/Phase2/bcirpg_move/.import/Background_white.png-90278c2837a8c1d366dff638eb6d5498.md5 @@ -0,0 +1,3 @@ +source_md5="13a1e728def8fb06bd8e797fcc392604" +dest_md5="b396169339b2e8d769e9830c387050ad" + diff --git a/Phase2/bcirpg_move/.import/Background_white.png-90278c2837a8c1d366dff638eb6d5498.stex b/Phase2/bcirpg_move/.import/Background_white.png-90278c2837a8c1d366dff638eb6d5498.stex new file mode 100644 index 0000000..f33586d Binary files /dev/null and b/Phase2/bcirpg_move/.import/Background_white.png-90278c2837a8c1d366dff638eb6d5498.stex differ diff --git a/Phase2/bcirpg_move/.import/background_demo.png-bf78baa5e40d24f1836aa08964398dec.md5 b/Phase2/bcirpg_move/.import/background_demo.png-bf78baa5e40d24f1836aa08964398dec.md5 new file mode 100644 index 0000000..5719088 --- /dev/null +++ b/Phase2/bcirpg_move/.import/background_demo.png-bf78baa5e40d24f1836aa08964398dec.md5 @@ -0,0 +1,3 @@ +source_md5="266f789a4e895911161321092c2c2429" +dest_md5="a08a6dcf169f683724bfd5cd82e23fe6" + diff --git a/Phase2/bcirpg_move/.import/background_demo.png-bf78baa5e40d24f1836aa08964398dec.stex b/Phase2/bcirpg_move/.import/background_demo.png-bf78baa5e40d24f1836aa08964398dec.stex new file mode 100644 index 0000000..fffc668 Binary files /dev/null and b/Phase2/bcirpg_move/.import/background_demo.png-bf78baa5e40d24f1836aa08964398dec.stex differ diff --git a/Phase2/bcirpg_move/.import/background_demo.png-e30ac367b3596013bad15f6d4bbea075.md5 b/Phase2/bcirpg_move/.import/background_demo.png-e30ac367b3596013bad15f6d4bbea075.md5 new file mode 100644 index 0000000..5719088 --- /dev/null +++ b/Phase2/bcirpg_move/.import/background_demo.png-e30ac367b3596013bad15f6d4bbea075.md5 @@ -0,0 +1,3 @@ +source_md5="266f789a4e895911161321092c2c2429" +dest_md5="a08a6dcf169f683724bfd5cd82e23fe6" + diff --git a/Phase2/bcirpg_move/.import/background_demo.png-e30ac367b3596013bad15f6d4bbea075.stex b/Phase2/bcirpg_move/.import/background_demo.png-e30ac367b3596013bad15f6d4bbea075.stex new file mode 100644 index 0000000..fffc668 Binary files /dev/null and b/Phase2/bcirpg_move/.import/background_demo.png-e30ac367b3596013bad15f6d4bbea075.stex differ diff --git a/Phase2/bcirpg_move/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.md5 b/Phase2/bcirpg_move/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.md5 new file mode 100644 index 0000000..7b61c3e --- /dev/null +++ b/Phase2/bcirpg_move/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.md5 @@ -0,0 +1,3 @@ +source_md5="47313fa4c47a9963fddd764e1ec6e4a8" +dest_md5="2ded9e7f9060e2b530aab678b135fc5b" + diff --git a/Phase2/bcirpg_move/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex b/Phase2/bcirpg_move/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex new file mode 100644 index 0000000..3ca6461 Binary files /dev/null and b/Phase2/bcirpg_move/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex differ diff --git a/Phase2/bcirpg_move/Control.tscn b/Phase2/bcirpg_move/Control.tscn new file mode 100644 index 0000000..00a6290 --- /dev/null +++ b/Phase2/bcirpg_move/Control.tscn @@ -0,0 +1,5 @@ +[gd_scene format=2] + +[node name="Control" type="Control"] +anchor_right = 1.0 +anchor_bottom = 1.0 diff --git a/Phase2/bcirpg_move/README.txt b/Phase2/bcirpg_move/README.txt new file mode 100644 index 0000000..ada7371 --- /dev/null +++ b/Phase2/bcirpg_move/README.txt @@ -0,0 +1,39 @@ +**************************** + README.TXT: +**************************** +Author: Doug McCord +Date: 20-Feb-2022 + +**************************** +Intro notes: + This menu was stripped down from the bigger game and settings testing + I was doing -- so there's a decent chance yet of something broken -- + please let me know if you encounter anything that's not linking up as + desired. Currently there are temp destinations loaded for each of the + menu options -- these are saved as scenes in the screens folder. + + Currently almost all the buttons are instances of the same source + button object -- linked to their destination using the 'Next Scene Path' + available in the inspector. + +**************************** +Project file structure: + Surface Layer: + Default Godot files remain at this level + + _toArchive: + Directory to serve as reference-only; precursor to trash + + assets: + Images, fonts, TRES text resource data files + + globalScripts: + For project-wide use, or scripts that are not either: + A. attached to a template scene, intended to go with all instances of that, or + B. unique, scene-specific scripts. + + screens: + Planned to include both .tscn scene files and their associated scripts. + + userInterface: (note misnomer for text-based game) + Re-useable UI elements and their scripts, such as change-scene, input-response diff --git a/Phase2/bcirpg_move/Settings.gd b/Phase2/bcirpg_move/Settings.gd new file mode 100644 index 0000000..8fe2b73 --- /dev/null +++ b/Phase2/bcirpg_move/Settings.gd @@ -0,0 +1,65 @@ +extends Node + + +var bIsDarkThemeOn = false +var settingsFile = "user://settings.cfg" +var playerSettingsSingleton = PlayerSettingsTemplate.new() + + + + +func make_settings_file(): + var config = ConfigFile.new() + + config.set_value("Player", "InputName", "Default Name") + config.set_value("Player", "riskFactor", 0) + config.set_value("Player", "brightness", 3) + config.set_value("Player", "fontSize", 11) + config.set_value("Player", "volume", 6) + var bClosedCaptions = config.set_value("player", "bClosedCaptions") + var bDevConsole = config.set_value("Player", "bDevConsole") + var bVirtualKeyboard = config.set_value("Player", "bVirtualKeyboard", false) + var preferredTheme = config.set_value("Player", "preferredTheme", PlayerSettingsTemplate.ThemeChoice.LIGHTHIGHCONTRAST) + var visualKeyboardLayout = config.set_value("Player", "visualKeyboardLayout", PlayerSettingsTemplate.KeyboardLayout.QWERTY) + + config.save("user://settings.cfg") + + + +#Config/ini: +func load_settings_file(): + var config = ConfigFile.new() + # Load data from a file. + var err = config.load(settingsFile) + # If the file didn't load, ignore it. + if err != OK: + return + for player in config.get_sections(): + var inputName = config.get_value(player, "InputSettings") + var riskFactor = config.get_value(player, "riskFactor") + var brightness = config.get_value(player, "brightness") + var fontSize = config.get_value(player, "fontSize") + var volume = config.get_value(player, "volume") + var bClosedCaptions = config.get_value(player, "bClosedCaptions") + var bDevConsole = config.get_value(player, "bDevConsole") + var bVirtualKeyboard = config.get_value(player, "bVirtualKeyboard") + var preferredTheme = config.get_value(player, "preferredTheme") + var visualKeyboardLayout = config.get_value(player, "visualKeyboardLayout") + + print("Input name loaded as: " + inputName) + + playerSettingsSingleton.inputName = inputName + playerSettingsSingleton.riskFactor = riskFactor + + + + +func EnableGlobalThemes(bDark): + if (bDark == true): + controlNode.theme=load("res://assets/ui_controlNode_dark_theme.tres") + + if (bDark == false): + controlNode.theme=load("res://assets/ui_controlNode_light_theme.tres") + +func _ready(): + pass # Replace with function body. diff --git a/Phase2/bcirpg_move/_toArchive/ui_gameplay_big_theme.tres b/Phase2/bcirpg_move/_toArchive/ui_gameplay_big_theme.tres new file mode 100644 index 0000000..e0452b5 --- /dev/null +++ b/Phase2/bcirpg_move/_toArchive/ui_gameplay_big_theme.tres @@ -0,0 +1,6 @@ +[gd_resource type="Theme" load_steps=2 format=2] + +[ext_resource path="res://assets/liberation_serif_20pt.tres" type="DynamicFont" id=1] + +[resource] +default_font = ExtResource( 1 ) diff --git a/Phase2/bcirpg_move/_toArchive/ui_gameplay_theme.tres b/Phase2/bcirpg_move/_toArchive/ui_gameplay_theme.tres new file mode 100644 index 0000000..e0452b5 --- /dev/null +++ b/Phase2/bcirpg_move/_toArchive/ui_gameplay_theme.tres @@ -0,0 +1,6 @@ +[gd_resource type="Theme" load_steps=2 format=2] + +[ext_resource path="res://assets/liberation_serif_20pt.tres" type="DynamicFont" id=1] + +[resource] +default_font = ExtResource( 1 ) diff --git a/Phase2/bcirpg_move/_toArchive/ui_highContrast_but_theme.tres b/Phase2/bcirpg_move/_toArchive/ui_highContrast_but_theme.tres new file mode 100644 index 0000000..36b0309 --- /dev/null +++ b/Phase2/bcirpg_move/_toArchive/ui_highContrast_but_theme.tres @@ -0,0 +1,25 @@ +[gd_resource type="Theme" load_steps=3 format=2] + +[ext_resource path="res://assets/liberation_serif_30pt.tres" type="DynamicFont" id=1] + +[sub_resource type="StyleBoxFlat" id=1] +bg_color = Color( 0, 0, 0, 1 ) +border_width_left = 1 +border_width_top = 1 +border_width_right = 1 +border_width_bottom = 1 +border_color = Color( 1, 1, 1, 1 ) + +[resource] +default_font = ExtResource( 1 ) +Button/colors/font_color = Color( 1, 1, 1, 1 ) +Button/colors/font_color_disabled = Color( 0.9, 0.9, 0.9, 0.2 ) +Button/colors/font_color_hover = Color( 0.94, 0.94, 0.94, 1 ) +Button/colors/font_color_pressed = Color( 1, 1, 1, 1 ) +Button/constants/hseparation = 2 +Button/fonts/font = null +Button/styles/disabled = null +Button/styles/focus = null +Button/styles/hover = null +Button/styles/normal = SubResource( 1 ) +Button/styles/pressed = null diff --git a/Phase2/bcirpg_move/_toArchive/ui_light_but_theme.tres b/Phase2/bcirpg_move/_toArchive/ui_light_but_theme.tres new file mode 100644 index 0000000..c3164c2 --- /dev/null +++ b/Phase2/bcirpg_move/_toArchive/ui_light_but_theme.tres @@ -0,0 +1,25 @@ +[gd_resource type="Theme" load_steps=3 format=2] + +[ext_resource path="res://assets/liberation_serif_30pt.tres" type="DynamicFont" id=1] + +[sub_resource type="StyleBoxFlat" id=1] +bg_color = Color( 0, 0, 0, 1 ) +border_width_left = 1 +border_width_top = 1 +border_width_right = 1 +border_width_bottom = 1 +border_color = Color( 1, 1, 1, 1 ) + +[resource] +default_font = ExtResource( 1 ) +Button/colors/font_color = Color( 0.00392157, 0.00392157, 0.00392157, 1 ) +Button/colors/font_color_disabled = Color( 0.9, 0.9, 0.9, 0.2 ) +Button/colors/font_color_hover = Color( 0.94, 0.94, 0.94, 1 ) +Button/colors/font_color_pressed = Color( 1, 1, 1, 1 ) +Button/constants/hseparation = 2 +Button/fonts/font = null +Button/styles/disabled = null +Button/styles/focus = null +Button/styles/hover = null +Button/styles/normal = SubResource( 1 ) +Button/styles/pressed = null diff --git a/Phase2/bcirpg_move/_toArchive/ui_theme.tres b/Phase2/bcirpg_move/_toArchive/ui_theme.tres new file mode 100644 index 0000000..b388b3e --- /dev/null +++ b/Phase2/bcirpg_move/_toArchive/ui_theme.tres @@ -0,0 +1,6 @@ +[gd_resource type="Theme" load_steps=2 format=2] + +[ext_resource path="res://assets/liberation_serif_30pt.tres" type="DynamicFont" id=1] + +[resource] +default_font = ExtResource( 1 ) diff --git a/Phase2/bcirpg_move/_toArchive/ui_title_theme.tres b/Phase2/bcirpg_move/_toArchive/ui_title_theme.tres new file mode 100644 index 0000000..a2584dc --- /dev/null +++ b/Phase2/bcirpg_move/_toArchive/ui_title_theme.tres @@ -0,0 +1,6 @@ +[gd_resource type="Theme" load_steps=2 format=2] + +[ext_resource path="res://assets/liberation_serif_40pt.tres" type="DynamicFont" id=1] + +[resource] +default_font = ExtResource( 1 ) diff --git a/Phase2/bcirpg_move/assets/Backgrounds/Background_black.png b/Phase2/bcirpg_move/assets/Backgrounds/Background_black.png new file mode 100644 index 0000000..85723f8 Binary files /dev/null and b/Phase2/bcirpg_move/assets/Backgrounds/Background_black.png differ diff --git a/Phase2/bcirpg_move/assets/Backgrounds/Background_black.png.import b/Phase2/bcirpg_move/assets/Backgrounds/Background_black.png.import new file mode 100644 index 0000000..a17e765 --- /dev/null +++ b/Phase2/bcirpg_move/assets/Backgrounds/Background_black.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/Background_black.png-56039c85507f66e5b636dc3622fcd7f0.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/Backgrounds/Background_black.png" +dest_files=[ "res://.import/Background_black.png-56039c85507f66e5b636dc3622fcd7f0.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/Phase2/bcirpg_move/assets/Backgrounds/Background_white.png b/Phase2/bcirpg_move/assets/Backgrounds/Background_white.png new file mode 100644 index 0000000..62c3a55 Binary files /dev/null and b/Phase2/bcirpg_move/assets/Backgrounds/Background_white.png differ diff --git a/Phase2/bcirpg_move/assets/Backgrounds/Background_white.png.import b/Phase2/bcirpg_move/assets/Backgrounds/Background_white.png.import new file mode 100644 index 0000000..dae0aeb --- /dev/null +++ b/Phase2/bcirpg_move/assets/Backgrounds/Background_white.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/Background_white.png-90278c2837a8c1d366dff638eb6d5498.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/Backgrounds/Background_white.png" +dest_files=[ "res://.import/Background_white.png-90278c2837a8c1d366dff638eb6d5498.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/Phase2/bcirpg_move/assets/Backgrounds/background_demo.png b/Phase2/bcirpg_move/assets/Backgrounds/background_demo.png new file mode 100644 index 0000000..1ac5ed2 Binary files /dev/null and b/Phase2/bcirpg_move/assets/Backgrounds/background_demo.png differ diff --git a/Phase2/bcirpg_move/assets/Backgrounds/background_demo.png.import b/Phase2/bcirpg_move/assets/Backgrounds/background_demo.png.import new file mode 100644 index 0000000..1e355e9 --- /dev/null +++ b/Phase2/bcirpg_move/assets/Backgrounds/background_demo.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/background_demo.png-e30ac367b3596013bad15f6d4bbea075.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/Backgrounds/background_demo.png" +dest_files=[ "res://.import/background_demo.png-e30ac367b3596013bad15f6d4bbea075.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/Phase2/bcirpg_move/assets/Fonts_source/LiberationSerif-Bold.ttf b/Phase2/bcirpg_move/assets/Fonts_source/LiberationSerif-Bold.ttf new file mode 100644 index 0000000..db3d6f3 Binary files /dev/null and b/Phase2/bcirpg_move/assets/Fonts_source/LiberationSerif-Bold.ttf differ diff --git a/Phase2/bcirpg_move/assets/Fonts_source/LiberationSerif-BoldItalic.ttf b/Phase2/bcirpg_move/assets/Fonts_source/LiberationSerif-BoldItalic.ttf new file mode 100644 index 0000000..8b21277 Binary files /dev/null and b/Phase2/bcirpg_move/assets/Fonts_source/LiberationSerif-BoldItalic.ttf differ diff --git a/Phase2/bcirpg_move/assets/Fonts_source/LiberationSerif-Italic.ttf b/Phase2/bcirpg_move/assets/Fonts_source/LiberationSerif-Italic.ttf new file mode 100644 index 0000000..768b833 Binary files /dev/null and b/Phase2/bcirpg_move/assets/Fonts_source/LiberationSerif-Italic.ttf differ diff --git a/Phase2/bcirpg_move/assets/Fonts_source/LiberationSerif-Regular.ttf b/Phase2/bcirpg_move/assets/Fonts_source/LiberationSerif-Regular.ttf new file mode 100644 index 0000000..6fa9a59 Binary files /dev/null and b/Phase2/bcirpg_move/assets/Fonts_source/LiberationSerif-Regular.ttf differ diff --git a/Phase2/bcirpg_move/assets/Fonts_source/l_10646.ttf b/Phase2/bcirpg_move/assets/Fonts_source/l_10646.ttf new file mode 100644 index 0000000..afb1c60 Binary files /dev/null and b/Phase2/bcirpg_move/assets/Fonts_source/l_10646.ttf differ diff --git a/Phase2/bcirpg_move/assets/background_demo.png b/Phase2/bcirpg_move/assets/background_demo.png new file mode 100644 index 0000000..1ac5ed2 Binary files /dev/null and b/Phase2/bcirpg_move/assets/background_demo.png differ diff --git a/Phase2/bcirpg_move/assets/background_demo.png.import b/Phase2/bcirpg_move/assets/background_demo.png.import new file mode 100644 index 0000000..13364f0 --- /dev/null +++ b/Phase2/bcirpg_move/assets/background_demo.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/background_demo.png-bf78baa5e40d24f1836aa08964398dec.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/background_demo.png" +dest_files=[ "res://.import/background_demo.png-bf78baa5e40d24f1836aa08964398dec.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/Phase2/bcirpg_move/assets/base_dynamicFont_BIG.tres b/Phase2/bcirpg_move/assets/base_dynamicFont_BIG.tres new file mode 100644 index 0000000..a2e2de7 --- /dev/null +++ b/Phase2/bcirpg_move/assets/base_dynamicFont_BIG.tres @@ -0,0 +1,7 @@ +[gd_resource type="DynamicFont" load_steps=2 format=2] + +[ext_resource path="res://assets/l_10646.ttf" type="DynamicFontData" id=1] + +[resource] +size = 42 +font_data = ExtResource( 1 ) diff --git a/Phase2/bcirpg_move/assets/base_dynamicfont.tres b/Phase2/bcirpg_move/assets/base_dynamicfont.tres new file mode 100644 index 0000000..63243b4 --- /dev/null +++ b/Phase2/bcirpg_move/assets/base_dynamicfont.tres @@ -0,0 +1,7 @@ +[gd_resource type="DynamicFont" load_steps=2 format=2] + +[ext_resource path="res://assets/l_10646.ttf" type="DynamicFontData" id=1] + +[resource] +size = 24 +font_data = ExtResource( 1 ) diff --git a/Phase2/bcirpg_move/assets/base_dynamicfont_16.tres b/Phase2/bcirpg_move/assets/base_dynamicfont_16.tres new file mode 100644 index 0000000..f9acb20 --- /dev/null +++ b/Phase2/bcirpg_move/assets/base_dynamicfont_16.tres @@ -0,0 +1,6 @@ +[gd_resource type="DynamicFont" load_steps=2 format=2] + +[ext_resource path="res://assets/l_10646.ttf" type="DynamicFontData" id=1] + +[resource] +font_data = ExtResource( 1 ) diff --git a/Phase2/bcirpg_move/assets/l_10646.ttf b/Phase2/bcirpg_move/assets/l_10646.ttf new file mode 100644 index 0000000..afb1c60 Binary files /dev/null and b/Phase2/bcirpg_move/assets/l_10646.ttf differ diff --git a/Phase2/bcirpg_move/assets/liberation_serif.tres b/Phase2/bcirpg_move/assets/liberation_serif.tres new file mode 100644 index 0000000..051bc09 --- /dev/null +++ b/Phase2/bcirpg_move/assets/liberation_serif.tres @@ -0,0 +1,6 @@ +[gd_resource type="DynamicFont" load_steps=2 format=2] + +[ext_resource path="res://assets/Fonts_source/LiberationSerif-Regular.ttf" type="DynamicFontData" id=1] + +[resource] +font_data = ExtResource( 1 ) diff --git a/Phase2/bcirpg_move/assets/liberation_serif_20pt.tres b/Phase2/bcirpg_move/assets/liberation_serif_20pt.tres new file mode 100644 index 0000000..2953618 --- /dev/null +++ b/Phase2/bcirpg_move/assets/liberation_serif_20pt.tres @@ -0,0 +1,7 @@ +[gd_resource type="DynamicFont" load_steps=2 format=2] + +[ext_resource path="res://assets/Fonts_source/LiberationSerif-Regular.ttf" type="DynamicFontData" id=1] + +[resource] +size = 20 +font_data = ExtResource( 1 ) diff --git a/Phase2/bcirpg_move/assets/liberation_serif_30pt.tres b/Phase2/bcirpg_move/assets/liberation_serif_30pt.tres new file mode 100644 index 0000000..6297862 --- /dev/null +++ b/Phase2/bcirpg_move/assets/liberation_serif_30pt.tres @@ -0,0 +1,7 @@ +[gd_resource type="DynamicFont" load_steps=2 format=2] + +[ext_resource path="res://assets/Fonts_source/LiberationSerif-Regular.ttf" type="DynamicFontData" id=1] + +[resource] +size = 30 +font_data = ExtResource( 1 ) diff --git a/Phase2/bcirpg_move/assets/liberation_serif_40pt.tres b/Phase2/bcirpg_move/assets/liberation_serif_40pt.tres new file mode 100644 index 0000000..229621e --- /dev/null +++ b/Phase2/bcirpg_move/assets/liberation_serif_40pt.tres @@ -0,0 +1,7 @@ +[gd_resource type="DynamicFont" load_steps=2 format=2] + +[ext_resource path="res://assets/Fonts_source/LiberationSerif-Regular.ttf" type="DynamicFontData" id=1] + +[resource] +size = 40 +font_data = ExtResource( 1 ) diff --git a/Phase2/bcirpg_move/assets/sbf_black.tres b/Phase2/bcirpg_move/assets/sbf_black.tres new file mode 100644 index 0000000..293918c --- /dev/null +++ b/Phase2/bcirpg_move/assets/sbf_black.tres @@ -0,0 +1,8 @@ +[gd_resource type="StyleBoxFlat" format=2] + +[resource] +bg_color = Color( 0, 0, 0, 1 ) +border_width_left = 1 +border_width_top = 1 +border_width_right = 1 +border_width_bottom = 1 diff --git a/Phase2/bcirpg_move/assets/sbf_white.tres b/Phase2/bcirpg_move/assets/sbf_white.tres new file mode 100644 index 0000000..41e0cea --- /dev/null +++ b/Phase2/bcirpg_move/assets/sbf_white.tres @@ -0,0 +1,9 @@ +[gd_resource type="StyleBoxFlat" format=2] + +[resource] +bg_color = Color( 1, 1, 1, 1 ) +border_width_left = 1 +border_width_top = 1 +border_width_right = 1 +border_width_bottom = 1 +border_color = Color( 0, 0, 0, 1 ) diff --git a/Phase2/bcirpg_move/assets/ui_controlNode_dark_theme.tres b/Phase2/bcirpg_move/assets/ui_controlNode_dark_theme.tres new file mode 100644 index 0000000..b606d40 --- /dev/null +++ b/Phase2/bcirpg_move/assets/ui_controlNode_dark_theme.tres @@ -0,0 +1,28 @@ +[gd_resource type="Theme" load_steps=3 format=2] + +[ext_resource path="res://assets/sbf_black.tres" type="StyleBox" id=1] +[ext_resource path="res://assets/liberation_serif_30pt.tres" type="DynamicFont" id=2] + +[resource] +Button/colors/font_color = Color( 0.878431, 0.878431, 0.878431, 1 ) +Button/colors/font_color_disabled = Color( 0.9, 0.9, 0.9, 0.2 ) +Button/colors/font_color_hover = Color( 0.94, 0.94, 0.94, 1 ) +Button/colors/font_color_pressed = Color( 1, 1, 1, 1 ) +Button/constants/hseparation = 2 +Button/fonts/font = ExtResource( 2 ) +Button/styles/disabled = null +Button/styles/focus = null +Button/styles/hover = null +Button/styles/normal = ExtResource( 1 ) +Button/styles/pressed = null +Label/colors/font_color = Color( 1, 1, 1, 1 ) +Label/colors/font_color_shadow = Color( 0, 0, 0, 0 ) +Label/colors/font_outline_modulate = Color( 1, 1, 1, 1 ) +Label/constants/line_spacing = 3 +Label/constants/shadow_as_outline = 0 +Label/constants/shadow_offset_x = 1 +Label/constants/shadow_offset_y = 1 +Label/fonts/font = null +Label/styles/normal = null +Panel/styles/panel = ExtResource( 1 ) +VBoxContainer/constants/separation = 4 diff --git a/Phase2/bcirpg_move/assets/ui_controlNode_light_theme.tres b/Phase2/bcirpg_move/assets/ui_controlNode_light_theme.tres new file mode 100644 index 0000000..56f546e --- /dev/null +++ b/Phase2/bcirpg_move/assets/ui_controlNode_light_theme.tres @@ -0,0 +1,28 @@ +[gd_resource type="Theme" load_steps=3 format=2] + +[ext_resource path="res://assets/sbf_white.tres" type="StyleBox" id=1] +[ext_resource path="res://assets/liberation_serif_30pt.tres" type="DynamicFont" id=2] + +[resource] +Button/colors/font_color = Color( 0, 0, 0, 1 ) +Button/colors/font_color_disabled = Color( 0.9, 0.9, 0.9, 0.2 ) +Button/colors/font_color_hover = Color( 0.94, 0.94, 0.94, 1 ) +Button/colors/font_color_pressed = Color( 1, 1, 1, 1 ) +Button/constants/hseparation = 2 +Button/fonts/font = ExtResource( 2 ) +Button/styles/disabled = null +Button/styles/focus = null +Button/styles/hover = null +Button/styles/normal = ExtResource( 1 ) +Button/styles/pressed = null +Label/colors/font_color = Color( 0, 0, 0, 1 ) +Label/colors/font_color_shadow = Color( 0, 0, 0, 0 ) +Label/colors/font_outline_modulate = Color( 1, 1, 1, 1 ) +Label/constants/line_spacing = 3 +Label/constants/shadow_as_outline = 0 +Label/constants/shadow_offset_x = 1 +Label/constants/shadow_offset_y = 1 +Label/fonts/font = null +Label/styles/normal = null +Panel/styles/panel = ExtResource( 1 ) +VBoxContainer/constants/separation = 4 diff --git a/Phase2/bcirpg_move/assets/ui_gameplay_big_theme.tres b/Phase2/bcirpg_move/assets/ui_gameplay_big_theme.tres new file mode 100644 index 0000000..e0452b5 --- /dev/null +++ b/Phase2/bcirpg_move/assets/ui_gameplay_big_theme.tres @@ -0,0 +1,6 @@ +[gd_resource type="Theme" load_steps=2 format=2] + +[ext_resource path="res://assets/liberation_serif_20pt.tres" type="DynamicFont" id=1] + +[resource] +default_font = ExtResource( 1 ) diff --git a/Phase2/bcirpg_move/assets/ui_gameplay_theme.tres b/Phase2/bcirpg_move/assets/ui_gameplay_theme.tres new file mode 100644 index 0000000..e0452b5 --- /dev/null +++ b/Phase2/bcirpg_move/assets/ui_gameplay_theme.tres @@ -0,0 +1,6 @@ +[gd_resource type="Theme" load_steps=2 format=2] + +[ext_resource path="res://assets/liberation_serif_20pt.tres" type="DynamicFont" id=1] + +[resource] +default_font = ExtResource( 1 ) diff --git a/Phase2/bcirpg_move/assets/ui_highContrast_but_theme.tres b/Phase2/bcirpg_move/assets/ui_highContrast_but_theme.tres new file mode 100644 index 0000000..36b0309 --- /dev/null +++ b/Phase2/bcirpg_move/assets/ui_highContrast_but_theme.tres @@ -0,0 +1,25 @@ +[gd_resource type="Theme" load_steps=3 format=2] + +[ext_resource path="res://assets/liberation_serif_30pt.tres" type="DynamicFont" id=1] + +[sub_resource type="StyleBoxFlat" id=1] +bg_color = Color( 0, 0, 0, 1 ) +border_width_left = 1 +border_width_top = 1 +border_width_right = 1 +border_width_bottom = 1 +border_color = Color( 1, 1, 1, 1 ) + +[resource] +default_font = ExtResource( 1 ) +Button/colors/font_color = Color( 1, 1, 1, 1 ) +Button/colors/font_color_disabled = Color( 0.9, 0.9, 0.9, 0.2 ) +Button/colors/font_color_hover = Color( 0.94, 0.94, 0.94, 1 ) +Button/colors/font_color_pressed = Color( 1, 1, 1, 1 ) +Button/constants/hseparation = 2 +Button/fonts/font = null +Button/styles/disabled = null +Button/styles/focus = null +Button/styles/hover = null +Button/styles/normal = SubResource( 1 ) +Button/styles/pressed = null diff --git a/Phase2/bcirpg_move/assets/ui_theme.tres b/Phase2/bcirpg_move/assets/ui_theme.tres new file mode 100644 index 0000000..b388b3e --- /dev/null +++ b/Phase2/bcirpg_move/assets/ui_theme.tres @@ -0,0 +1,6 @@ +[gd_resource type="Theme" load_steps=2 format=2] + +[ext_resource path="res://assets/liberation_serif_30pt.tres" type="DynamicFont" id=1] + +[resource] +default_font = ExtResource( 1 ) diff --git a/Phase2/bcirpg_move/assets/ui_title_theme.tres b/Phase2/bcirpg_move/assets/ui_title_theme.tres new file mode 100644 index 0000000..a2584dc --- /dev/null +++ b/Phase2/bcirpg_move/assets/ui_title_theme.tres @@ -0,0 +1,6 @@ +[gd_resource type="Theme" load_steps=2 format=2] + +[ext_resource path="res://assets/liberation_serif_40pt.tres" type="DynamicFont" id=1] + +[resource] +default_font = ExtResource( 1 ) diff --git a/Phase2/bcirpg_move/default_env.tres b/Phase2/bcirpg_move/default_env.tres new file mode 100644 index 0000000..20207a4 --- /dev/null +++ b/Phase2/bcirpg_move/default_env.tres @@ -0,0 +1,7 @@ +[gd_resource type="Environment" load_steps=2 format=2] + +[sub_resource type="ProceduralSky" id=1] + +[resource] +background_mode = 2 +background_sky = SubResource( 1 ) diff --git a/Phase2/bcirpg_move/icon.png b/Phase2/bcirpg_move/icon.png new file mode 100644 index 0000000..c98fbb6 Binary files /dev/null and b/Phase2/bcirpg_move/icon.png differ diff --git a/Phase2/bcirpg_move/icon.png.import b/Phase2/bcirpg_move/icon.png.import new file mode 100644 index 0000000..96cbf46 --- /dev/null +++ b/Phase2/bcirpg_move/icon.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://icon.png" +dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/Phase2/bcirpg_move/playerSettingsTemplate.gd b/Phase2/bcirpg_move/playerSettingsTemplate.gd new file mode 100644 index 0000000..21b9414 --- /dev/null +++ b/Phase2/bcirpg_move/playerSettingsTemplate.gd @@ -0,0 +1,40 @@ +extends Node + +class_name PlayerSettingsTemplate + +enum KeyboardLayout { + QWERTY, + ALPHABETICAL, + DVORAK +} + +enum ThemeChoice { + DARKHIGHCONTRAST, + LIGHTHIGHCONTRAST +} + +var inputName = "none" +var riskFactor = 0 +var brightness = 3 +var fontSize = 11 +var volume = 6 +var bClosedCaptions = true +var bdevConsole = false +var bVirtualKeyboard = false +var visualKeyboardLayout = KeyboardLayout.QWERTY +var preferredTheme = ThemeChoice.DARKHIGHCONTRAST + + +# Declare member variables here. Examples: +# var a = 2 +# var b = "text" + + +# 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/Phase2/bcirpg_move/project.godot b/Phase2/bcirpg_move/project.godot new file mode 100644 index 0000000..e726ad0 --- /dev/null +++ b/Phase2/bcirpg_move/project.godot @@ -0,0 +1,37 @@ +; Engine configuration file. +; It's best edited using the editor UI and not directly, +; since the parameters that go here are not all obvious. +; +; Format: +; [section] ; section goes between [] +; param=value ; assign values to parameters + +config_version=4 + +_global_script_classes=[ { +"base": "Node", +"class": "PlayerSettingsTemplate", +"language": "GDScript", +"path": "res://playerSettingsTemplate.gd" +} ] +_global_script_class_icons={ +"PlayerSettingsTemplate": "" +} + +[application] + +config/name="BCIRPGR_mainMenu" +run/main_scene="res://Screens/MenuScreen.tscn" +config/icon="res://icon.png" + +[autoload] + +Settings="*res://Settings.gd" + +[physics] + +common/enable_pause_aware_picking=true + +[rendering] + +environment/default_environment="res://default_env.tres" diff --git a/Phase2/bcirpg_move/screens/AddCharacter_temp.tscn b/Phase2/bcirpg_move/screens/AddCharacter_temp.tscn new file mode 100644 index 0000000..5032cb7 --- /dev/null +++ b/Phase2/bcirpg_move/screens/AddCharacter_temp.tscn @@ -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" diff --git a/Phase2/bcirpg_move/screens/LoadGame_temp.tscn b/Phase2/bcirpg_move/screens/LoadGame_temp.tscn new file mode 100644 index 0000000..c843e61 --- /dev/null +++ b/Phase2/bcirpg_move/screens/LoadGame_temp.tscn @@ -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" diff --git a/Phase2/bcirpg_move/screens/MenuScreen.gd b/Phase2/bcirpg_move/screens/MenuScreen.gd new file mode 100644 index 0000000..98fb1ca --- /dev/null +++ b/Phase2/bcirpg_move/screens/MenuScreen.gd @@ -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() diff --git a/Phase2/bcirpg_move/screens/MenuScreen.tscn b/Phase2/bcirpg_move/screens/MenuScreen.tscn new file mode 100644 index 0000000..a72376d --- /dev/null +++ b/Phase2/bcirpg_move/screens/MenuScreen.tscn @@ -0,0 +1,96 @@ +[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 ) +__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="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 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[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_temp.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 +} diff --git a/Phase2/bcirpg_move/screens/Multiplayer_temp.tscn b/Phase2/bcirpg_move/screens/Multiplayer_temp.tscn new file mode 100644 index 0000000..c843e61 --- /dev/null +++ b/Phase2/bcirpg_move/screens/Multiplayer_temp.tscn @@ -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" diff --git a/Phase2/bcirpg_move/screens/NewGame_temp.tscn b/Phase2/bcirpg_move/screens/NewGame_temp.tscn new file mode 100644 index 0000000..c843e61 --- /dev/null +++ b/Phase2/bcirpg_move/screens/NewGame_temp.tscn @@ -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" diff --git a/Phase2/bcirpg_move/screens/SettingsMenuScreen.tscn b/Phase2/bcirpg_move/screens/SettingsMenuScreen.tscn new file mode 100644 index 0000000..d765b9e --- /dev/null +++ b/Phase2/bcirpg_move/screens/SettingsMenuScreen.tscn @@ -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 )] diff --git a/Phase2/bcirpg_move/screens/Settings_temp.tscn b/Phase2/bcirpg_move/screens/Settings_temp.tscn new file mode 100644 index 0000000..c843e61 --- /dev/null +++ b/Phase2/bcirpg_move/screens/Settings_temp.tscn @@ -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" diff --git a/Phase2/bcirpg_move/screens/Temp_Button.gd b/Phase2/bcirpg_move/screens/Temp_Button.gd new file mode 100644 index 0000000..d5fbca5 --- /dev/null +++ b/Phase2/bcirpg_move/screens/Temp_Button.gd @@ -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 diff --git a/Phase2/bcirpg_move/screens/grabFocus.gd b/Phase2/bcirpg_move/screens/grabFocus.gd new file mode 100644 index 0000000..f3dcd9e --- /dev/null +++ b/Phase2/bcirpg_move/screens/grabFocus.gd @@ -0,0 +1,7 @@ +extends Control + +#GRAB FOCUS: simple script for temp files to grab focus + + +func _ready() -> void: + $Title/But_ChangeScene.grab_focus() diff --git a/Phase2/bcirpg_move/userInterface/But_ChangeScene.gd b/Phase2/bcirpg_move/userInterface/But_ChangeScene.gd new file mode 100644 index 0000000..f8a43ac --- /dev/null +++ b/Phase2/bcirpg_move/userInterface/But_ChangeScene.gd @@ -0,0 +1,18 @@ +#BUT_CHANGESCENE: +# Generic template script allowing GUI linking of scenes by button press. + +tool +extends Button + +#Creates param usable in the UI; and the params next to export make it string and file browser +export(String, FILE) var next_scene_path: = "" + +var tempToggle = 0 + +func _on_But_NewGame_button_up(): + get_tree().change_scene(next_scene_path) + + +func _get_configuration_warning() -> String: + return "next_scene_path must be set for this button to work" if next_scene_path == "" else "" + diff --git a/Phase2/bcirpg_move/userInterface/But_ChangeScene.tscn b/Phase2/bcirpg_move/userInterface/But_ChangeScene.tscn new file mode 100644 index 0000000..80849fc --- /dev/null +++ b/Phase2/bcirpg_move/userInterface/But_ChangeScene.tscn @@ -0,0 +1,15 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://UserInterface/But_ChangeScene.gd" type="Script" id=1] + +[node name="But_ChangeScene" type="Button"] +margin_right = 130.0 +margin_bottom = 24.0 +size_flags_vertical = 3 +text = "New Game" +script = ExtResource( 1 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[connection signal="button_up" from="." to="." method="_on_But_NewGame_button_up"] diff --git a/Phase2/bcirpg_move/userInterface/But_Quit.gd b/Phase2/bcirpg_move/userInterface/But_Quit.gd new file mode 100644 index 0000000..e33d9a7 --- /dev/null +++ b/Phase2/bcirpg_move/userInterface/But_Quit.gd @@ -0,0 +1,34 @@ +#BUT_QUIT: +# Unique script for ending a game. Will additionally perform or call needed +# shut down and close-out functionality. + +extends Button + +var history_JSON = "user://history.json" + + +#DKM TEMP: save history is only here temporarily -- needs to move upstream. +func _on_But_Quit_button_up(): + get_tree().quit() + + +#JSON: requires dictionaries: +#func _saveHistory_JSON() -> void: +# var history_screens_arr = get_node("/root/History").historyScreensSingleton.output_history_array +# var file = File.new() +# file.open(history_JSON, File.WRITE) +# file.store_string(to_json(history_screens_arr)) +# +# file.close() +# # #DKM TEMP: +# print("Saved history array size should be: " + str(history_screens_arr.size())) + + +#DKM TEMP: +#tres file: +#func _saveHistory() -> void: +# var history_screens = get_node("/root/History").historyScreensSingleton +# assert(ResourceSaver.save("user://history.tres", history_screens)==OK) +# #DKM TEMP: +# print("Saved history array size: " + str(history_screens.output_history_array.size())) + diff --git a/Phase2/bcirpg_move/userInterface/But_Quit.tscn b/Phase2/bcirpg_move/userInterface/But_Quit.tscn new file mode 100644 index 0000000..e52c053 --- /dev/null +++ b/Phase2/bcirpg_move/userInterface/But_Quit.tscn @@ -0,0 +1,15 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://UserInterface/But_Quit.gd" type="Script" id=1] + +[node name="But_Quit" type="Button"] +margin_top = 240.0 +margin_right = 179.0 +margin_bottom = 284.0 +text = "Quit" +script = ExtResource( 1 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[connection signal="button_up" from="." to="." method="_on_But_Quit_button_up"] diff --git a/Phase2/bcirpg_move/userInterface/But_SaveSettings.gd b/Phase2/bcirpg_move/userInterface/But_SaveSettings.gd new file mode 100644 index 0000000..0b09f53 --- /dev/null +++ b/Phase2/bcirpg_move/userInterface/But_SaveSettings.gd @@ -0,0 +1,80 @@ +#BUT_SAVESETTINGS: +# Unique script for saving settings on player settings scene. + + +#Tool lets you any code in editor, such as plugins +tool +extends Button + +#Creates param usable in the UI; and the params next to export make it string and file browser +export(String, FILE) var next_scene_path: = "" + +#Button response: save settings and move on. +func _on_But_NewGame_button_up(): + var inputName = get_node("../../VBoxContainer/HBoxContainer/input_name") + var inputRisk = get_node("../../VBoxContainer/HBoxContainer2/input_risk") + _saveSettings(inputName.text, inputRisk.text) + get_tree().change_scene(next_scene_path) + + +#HELPER FUNCTIONS: +func _get_configuration_warning() -> String: + return "next_scene_path must be set for this button to work" if next_scene_path == "" else "" + + +#CONFIG/INI SAVE: +func _saveSettings(inputSettings : String, riskFactor : String) -> void: + var player_settings = get_node("/root/PlayerSettings") + player_settings.playerSettingsSingleton.inputName = inputSettings + player_settings.playerSettingsSingleton.riskFactor = riskFactor + var config = ConfigFile.new() + + config.set_value("Temp player","InputSettings", inputSettings) + config.set_value("Temp player","RiskFactor", riskFactor) + + config.save("user://settings.cfg") + +#JSON SAVE: +#func _saveSettings(inputSettings : String, riskFactor : String) -> void: +# var player_settings = get_node("/root/PlayerSettings") +# player_settings.playerSettingsSingleton.inputName = inputSettings +# player_settings.playerSettingsSingleton.riskFactor = riskFactor +# #Temp: +# var temp_manual_JSON = { +# "playerSettingsTemplate": { +# "inputName": inputSettings, +# "riskFactor": riskFactor +# } +# } +# +# #Save to file (JSON for now) +# var settings_file = "user://testPlayerSettings.sav" +# var file = File.new() +# if file.open(settings_file, File.WRITE) != 0: +# print("Cannot write temporary file to: " + settings_file) +# else: +# file.store_line(to_json(temp_manual_JSON)) +# file.close() + + +#****This save Settings functions as designed; but modified to work with alternate approach of loading +#func _saveSettings(inputSettings : String, riskFactor : String) -> void: + #Debugging: +# print("Input name: " + inputSettings + "; and risk factor set to : " + riskFactor) +# var player_settings = get_node("/root/PlayerSettings") +# player_settings.playerSettingsSingleton.inputName = inputSettings +# player_settings.playerSettingsSingleton.riskFactor = riskFactor + + #Save to file (for now) +# if settings_save_file_name == "": +# settings_save_file_name = "settings.save" +# var settings_file = "user://" + settings_save_file_name +# var file = File.new() +# file.open(settings_file, File.WRITE) +# file.store_var(player_settings.playerSettingsSingleton.inputName) + #DKM TEMP: To save object; removed for testing + #file.store_var(player_settings.playerSettingsSingleton, true) +# file.close() + + + diff --git a/Phase2/bcirpg_move/userInterface/InputResponse.gd b/Phase2/bcirpg_move/userInterface/InputResponse.gd new file mode 100644 index 0000000..87f2395 --- /dev/null +++ b/Phase2/bcirpg_move/userInterface/InputResponse.gd @@ -0,0 +1,5 @@ +extends VBoxContainer + +func set_text(input: String, response: String): + $InputHistory.text = input + $Response.text = response diff --git a/Phase2/bcirpg_move/userInterface/InputResponse.tscn b/Phase2/bcirpg_move/userInterface/InputResponse.tscn new file mode 100644 index 0000000..a0cafa6 --- /dev/null +++ b/Phase2/bcirpg_move/userInterface/InputResponse.tscn @@ -0,0 +1,25 @@ +[gd_scene load_steps=4 format=2] + +[ext_resource path="res://assets/liberation_serif_20pt.tres" type="DynamicFont" id=1] +[ext_resource path="res://UserInterface/Response.tscn" type="PackedScene" id=2] +[ext_resource path="res://UserInterface/InputResponse.gd" type="Script" id=3] + +[node name="InputResponse" type="VBoxContainer"] +margin_right = 984.0 +margin_bottom = 68.0 +script = ExtResource( 3 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="InputHistory" type="Label" parent="."] +margin_right = 984.0 +margin_bottom = 23.0 +custom_fonts/font = ExtResource( 1 ) +custom_colors/font_color = Color( 0.686275, 0.658824, 0.658824, 1 ) +text = " > This is what user selected" +autowrap = true + +[node name="Response" parent="." instance=ExtResource( 2 )] +margin_top = 27.0 +margin_bottom = 61.0 diff --git a/Phase2/bcirpg_move/userInterface/Response.tscn b/Phase2/bcirpg_move/userInterface/Response.tscn new file mode 100644 index 0000000..fa0fe9c --- /dev/null +++ b/Phase2/bcirpg_move/userInterface/Response.tscn @@ -0,0 +1,16 @@ +[gd_scene load_steps=3 format=2] + +[ext_resource path="res://assets/liberation_serif_30pt.tres" type="DynamicFont" id=1] +[ext_resource path="res://assets/ui_theme.tres" type="Theme" id=2] + +[node name="Response" type="Label"] +margin_top = 30.0 +margin_right = 984.0 +margin_bottom = 68.0 +theme = ExtResource( 2 ) +custom_fonts/font = ExtResource( 1 ) +text = "Game text continues here... " +autowrap = true +__meta__ = { +"_edit_use_anchors_": false +} diff --git a/Phase2/bcirpg_move/userInterface/Title.tscn b/Phase2/bcirpg_move/userInterface/Title.tscn new file mode 100644 index 0000000..5b749bd --- /dev/null +++ b/Phase2/bcirpg_move/userInterface/Title.tscn @@ -0,0 +1,22 @@ +[gd_scene load_steps=4 format=2] + +[ext_resource path="res://assets/base_dynamicFont_BIG.tres" type="DynamicFont" id=1] +[ext_resource path="res://assets/liberation_serif_40pt.tres" type="DynamicFont" id=2] + +[sub_resource type="Theme" id=1] +default_font = ExtResource( 2 ) + +[node name="Title" type="Label"] +anchor_left = 0.5 +anchor_right = 0.5 +margin_left = -110.5 +margin_top = 114.422 +margin_right = 110.5 +margin_bottom = 180.422 +theme = SubResource( 1 ) +custom_fonts/font = ExtResource( 1 ) +text = "Main Menu" +align = 1 +__meta__ = { +"_edit_use_anchors_": false +}