npyscreen-adventure-game #8
|
@ -9,11 +9,10 @@ class GameNavigator(npyscreen.Form):
|
||||||
self.parentApp.setNextForm(None) # Nothing to do after this but exit the game.
|
self.parentApp.setNextForm(None) # Nothing to do after this but exit the game.
|
||||||
|
|
||||||
def create(self):
|
def create(self):
|
||||||
self.artBox = self.add(npyscreen.BoxBasic, name='ArtBox', max_width=100, max_height=20, relx=2,)
|
self.artBox = self.add(npyscreen.BoxBasic, name='ArtBox', max_width=100, max_height=20, relx=21)
|
||||||
self.artBox.footer = 'Unknown Location'
|
self.artBox.footer = 'Unknown Location'
|
||||||
|
|
||||||
self.artBox = self.add(npyscreen.BoxBasic, name='ArtBox', max_width=100, max_height=20, relx=32, rely=2)
|
self.artBox = self.add(npyscreen.BoxBasic, name='Inventory', max_width=20, max_height=20, relx=1, rely=2)
|
||||||
self.artBox.footer = 'Unknown Location'
|
|
||||||
|
|
||||||
#self.myName = self.add(npyscreen.TitleText, name='Name')
|
#self.myName = self.add(npyscreen.TitleText, name='Name')
|
||||||
#self.myDepartment = self.add(npyscreen.TitleSelectOne, scroll_exit=True, max_height=3, name='Department',
|
#self.myDepartment = self.add(npyscreen.TitleSelectOne, scroll_exit=True, max_height=3, name='Department',
|
||||||
|
@ -44,7 +43,7 @@ class AlphaWarning(npyscreen.Popup):
|
||||||
class AdventureGame(npyscreen.NPSAppManaged):
|
class AdventureGame(npyscreen.NPSAppManaged):
|
||||||
# Do on creation
|
# Do on creation
|
||||||
def onStart(self):
|
def onStart(self):
|
||||||
# Setup some important 'globa' values we'll need later
|
# Setup some important 'global' values we'll need later
|
||||||
self.gamelib = parse(
|
self.gamelib = parse(
|
||||||
'gamedata/gamelib.yaml') # parse this data first (since it includes graphics for the main menu
|
'gamedata/gamelib.yaml') # parse this data first (since it includes graphics for the main menu
|
||||||
self.playerSaveLocation = None # We'll load the save location after the player gets to the save select screen
|
self.playerSaveLocation = None # We'll load the save location after the player gets to the save select screen
|
||||||
|
|
Loading…
Reference in New Issue