npyscreen-adventure-game #8
|
@ -13,6 +13,21 @@ menu:
|
||||||
\____/_/ |_/_/ /_/_____/
|
\____/_/ |_/_/ /_/_____/
|
||||||
|
|
||||||
not_found: |
|
not_found: |
|
||||||
. / \
|
--------------------------------------------------------------------------------------------------
|
||||||
/ ! \
|
--------------------------------------------------------------------------------------------------
|
||||||
/ \
|
--------------------------------------------------------------------------------------------------
|
||||||
|
--------------------------------------------------------------------------------------------------
|
||||||
|
-----------------------------------------------/ \-----------------------------------------------
|
||||||
|
----------------------------------------------/ !! \----------------------------------------------
|
||||||
|
---------------------------------------------/ \---------------------------------------------
|
||||||
|
--------------------------------------No Art for this location------------------------------------
|
||||||
|
----------------------------------Consider making a pull request?---------------------------------
|
||||||
|
--------------------------------------------------------------------------------------------------
|
||||||
|
--------------------------------------------------------------------------------------------------
|
||||||
|
--------------------------------------------------------------------------------------------------
|
||||||
|
--------------------------------------------------------------------------------------------------
|
||||||
|
--------------------------------------------------------------------------------------------------
|
||||||
|
--------------------------------------------------------------------------------------------------
|
||||||
|
--------------------------------------------------------------------------------------------------
|
||||||
|
--------------------------------------------------------------------------------------------------
|
||||||
|
--------------------------------------------------------------------------------------------------
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
office:
|
||||||
|
grid: [0, 0]
|
||||||
|
upon_enter: "You are standing behind your desk, you see a |NAMEPLATE|, a |TAPE RECORDER| and your trusty |LOG VIEWER|"
|
||||||
|
look_around: "You look around the room, you see a |DESK|, a |BOOKSHELF| and the |DOOR|"
|
||||||
|
pick_up_logviewer: "You pick the *LOG VIEWER* up."
|
||||||
|
desk:
|
||||||
|
look_at: "You move to stand behind your desk. You see a |NAMEPLATE|, a |TAPE RECORDER| and your trusty |LOG VIEWER|"
|
||||||
|
inspect: "Desk, ornate, stuff"
|
||||||
|
log_viewer:
|
||||||
|
look_at: "logviewer looks like garbo"
|
||||||
|
inspect: "beep boop"
|
||||||
|
pick_up: "You pick up the *LOG VIEWER*."
|
|
@ -9,17 +9,46 @@ 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=21)
|
top_division_height = 20
|
||||||
|
inventory_width = 20
|
||||||
|
art_width = 100
|
||||||
|
|
||||||
|
self.artBox = self.add(npyscreen.BoxBasic,
|
||||||
|
name='ArtBox',
|
||||||
|
max_width=art_width,
|
||||||
|
max_height=top_division_height,
|
||||||
|
rely=2,
|
||||||
|
relx=inventory_width + 1,
|
||||||
|
editable=False)
|
||||||
|
self.artContent = self.add(npyscreen.MultiLineEdit,
|
||||||
|
rely=3,
|
||||||
|
relx=inventory_width + 2,
|
||||||
|
max_width=art_width - 2,
|
||||||
|
max_height=top_division_height - 2,
|
||||||
|
value=self.parentApp.gamelib['menu']['graphics']['not_found'],
|
||||||
|
editable=False)
|
||||||
self.artBox.footer = 'Unknown Location'
|
self.artBox.footer = 'Unknown Location'
|
||||||
|
|
||||||
self.artBox = self.add(npyscreen.BoxBasic, name='Inventory', max_width=20, max_height=20, relx=1, rely=2)
|
self.artBox = self.add(npyscreen.BoxBasic,
|
||||||
|
name='Inventory',
|
||||||
|
max_width=inventory_width,
|
||||||
|
max_height=top_division_height,
|
||||||
|
relx=1,
|
||||||
|
rely=2,
|
||||||
|
editable=False)
|
||||||
|
|
||||||
self.DialogueBox = self.add(npyscreen.BoxBasic, name='Type Here', max_width=20, max_height=20, relx=1, rely=2)
|
self.dialogueBoxOutline = self.add(npyscreen.BoxBasic,
|
||||||
|
max_width=inventory_width + art_width,
|
||||||
|
max_height=3,
|
||||||
|
relx=1,
|
||||||
|
rely=top_division_height + 2)
|
||||||
|
|
||||||
#self.myName = self.add(npyscreen.TitleText, name='Name')
|
self.dialogueBox = self.add(npyscreen.Textfield,
|
||||||
#self.myDepartment = self.add(npyscreen.TitleSelectOne, scroll_exit=True, max_height=3, name='Department',
|
name='Type Here',
|
||||||
# values=['Department 1', 'Department 2', 'Department 3'])
|
max_width=inventory_width + art_width - 2,
|
||||||
#self.myDate = self.add(npyscreen.TitleDateCombo, name='Date Employed')
|
max_height=1,
|
||||||
|
relx=2,
|
||||||
|
rely=top_division_height + 3)
|
||||||
|
|
||||||
|
|
||||||
class MainMenu(npyscreen.Form):
|
class MainMenu(npyscreen.Form):
|
||||||
|
|
Loading…
Reference in New Issue