chaos.console: Types Modinfo Source  

ChaosConsole

Types Summary

TChaosConsole  

Types

Type TChaosConsole
Methods Summary
clear Clear all text from the console.
output Output a line.
registerFunction Register a function to use with the console.
registerObject Register an object for use with the console.
setBackgroundColor Set the background color.
setBackgroundImage Set an image to draw as console's background.
setDimensions Set console's dimensions.
setFont Sets a different font for display.
setFontColor Set a color for the font.
setLuaState Sets a custom lua state, e.g. when you use lua yourself in your application.
update Updates the console.
Functions Summary
getPerLuaState Returns an instance of TChaosConsole utilizing the given Lua state.
Method clear()
Returns-
DescriptionClear all text from the console.
Method output(line:String)
Returns-
DescriptionOutput a line.
Method registerFunction(name:String, argCount:Int, func:Int(ls:Byte Ptr))
Returns-
DescriptionRegister a function to use with the console.
InformationargCount defines how many arguments the function takes at least.
Method registerObject(name:String, obj:Object)
Returns-
DescriptionRegister an object for use with the console.
Method setBackgroundColor(r:Byte, g:Byte, b:Byte, a:Float)
Returns-
DescriptionSet the background color.
Method setBackgroundImage(img:TImage)
Returns-
DescriptionSet an image to draw as console's background.
Method setDimensions(w:Int, h:Int)
Returns-
DescriptionSet console's dimensions.
InformationSet width and height of the console.
Method setFont(imgFont:TImageFont)
Returns-
DescriptionSets a different font for display.
Method setFontColor(r:Byte, g:Byte, b:Byte)
Returns-
DescriptionSet a color for the font.
Method setLuaState(ls:Byte Ptr)
Returns-
DescriptionSets a custom lua state, e.g. when you use lua yourself in your application.
InformationSets a custom lua state, e.g. when you use lua yourself in your application. ChaosConsole will inject its functions and terminate the old state automatically.
Method update:Int(key:Int)
ReturnsTrue, if the console is active.
DescriptionUpdates the console.
InformationCall this in your main loop. key defines a key that should be used to toggle the console.
Function getPerLuaState:TChaosConsole(ls:Byte Ptr)
ReturnsTChaosConsole.
DescriptionReturns an instance of TChaosConsole utilizing the given Lua state.

Module Information

Version0.3-rel_1
AuthorhamZta
LicensePublic Domain
ContacthamZta@chaos-interactive.de
Homepagewww.chaos-interactive.de
History0.1-rel_1 Erster Release (19.07.2009)
History0.3-rel_1 Umstellung des Parsers auf Lua (19.07.2009)