diff demos/rpg/scripts/rpg.py @ 510:cd959b05a262

There is now a main menu. You can also view the credits. Taking a screenshot and opening the console should also work.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Thu, 20 May 2010 21:12:23 +0000
parents 3951042a701e
children 6ddb1eb9dfa6
line wrap: on
line diff
--- a/demos/rpg/scripts/rpg.py	Thu May 20 19:55:19 2010 +0000
+++ b/demos/rpg/scripts/rpg.py	Thu May 20 21:12:23 2010 +0000
@@ -64,10 +64,10 @@
 			self.quit = True
 			evt.consume()
 		elif keyval == fife.Key.F10:
-			self.engine.getGuiManager().getConsole().toggleShowHide()
+			self._engine.getGuiManager().getConsole().toggleShowHide()
 			evt.consume()
 		elif keystr == 'p':
-			self.engine.getRenderBackend().captureScreen('screenshot.png')
+			self._engine.getRenderBackend().captureScreen('screenshot.png')
 			evt.consume()
 
 	def onCommand(self, command):
@@ -81,11 +81,11 @@
 			self.quit = True
 			result = 'quitting'
 		elif command.lower() in ( 'help', 'help()' ):
-			self.engine.getGuiManager().getConsole().println( open( 'misc/infotext.txt', 'r' ).read() )
+			self._engine.getGuiManager().getConsole().println( open( 'misc/infotext.txt', 'r' ).read() )
 			result = "-- End of help --"
 		else:
 			pass
-			#result = self.world.onConsoleCommand(command)
+			result = self._gamecontroller.onConsoleCommand(command)
 		if not result:
 			try:
 				result = str(eval(command))