Compare commits

..

No commits in common. "45801c53b05bc06980fda43291f772b17fdb002a" and "52d4f5bbfe4c8370257583806d9702c7305c6a4f" have entirely different histories.

4 changed files with 2 additions and 31 deletions

View File

@ -1,13 +0,0 @@
menu:
graphics:
logo: |
. __ __ __ ___ __ __
/ / / /___ ____ ____ _____ ___ ___ ____/ / / | ____/ / _____ ____ / /___ __________
/ / / / __ \/ __ \/ __ `/ __ `__ \/ _ \/ __ / / /| |/ __ / | / / _ \/ __ \/ __/ / / / ___/ _ \
/ /_/ / / / / / / / /_/ / / / / / / __/ /_/ / / ___ / /_/ /| |/ / __/ / / / /_/ /_/ / / / __/
\____/_/ /_/_/ /_/\__,_/_/ /_/ /_/\___/\__,_/ /_/ |_\__,_/ |___/\___/_/ /_/\__/\__,_/_/ \___/
_________ __ _________
/ ____/ | / |/ / ____/
/ / __/ /| | / /|_/ / __/
/ /_/ / ___ |/ / / / /___
\____/_/ |_/_/ /_/_____/

View File

@ -1,5 +1,4 @@
import npyscreen
from yaml_parser import parse_datafile as parse
class GameNavigator(npyscreen.Form):
@ -20,8 +19,8 @@ class MainMenu(npyscreen.Form):
self.parentApp.setNextForm('GAME')
def create(self):
self.add(npyscreen.MultiLineEdit, value='Test', editable=False)
self.playerSaveLocation = self.add(npyscreen.TitleFilenameCombo, name="Filename:")
self.add(npyscreen.MultiLineEdit, value=self.parentApp.gamelib['menu']['graphics']['logo'], editable=False)
class AlphaWarning(npyscreen.Popup):
@ -38,8 +37,6 @@ class AlphaWarning(npyscreen.Popup):
class AdventureGame(npyscreen.NPSAppManaged):
# Do on creation
def onStart(self):
self.gamelib = parse('gamedata/gamelib.yaml')
# Intalize a game renderer for most game windows
self.addForm('GAME', GameNavigator, name='Unnamed Adventure Game')

View File

@ -1,12 +0,0 @@
import yaml
def parse_datafile(file):
# With the file open
with open(file, 'r') as stream:
# Try to read it and return it
try:
content = yaml.safe_load(stream)
return content
except yaml.YAMLError as exc:
return exc

View File

@ -1,2 +1 @@
npyscreen~=4.10.5
PyYAML~=5.1.2
npyscreen~=4.10.5