Page 1 of 1

Adding the DebugConsole to the example module

Posted: Sun Aug 29, 2010 5:53 am
by yufra
The sole purpose (IMO) of the example module is to serve as a template for module developers. For this reason I think it would be beneficial for the DebugConsole to be supported by default in the example module. The following code in the Game.lua should do the trick since the module is already loaded:

Code: Select all

		-- Lua console
		LUA_CONSOLE = function()
			self:registerDialog(DebugConsole.new())
		end,