ComNik.Zombie: Types Modinfo Source  

Zombie GUI

The Zombie GUI is a powerfull but simple
way to get your UI fast into your game.

Types Summary

TButton A classical button.
TGadget The Gadget class provides basic functionality.
TInput  
TWindow Windows.

Types

Type TButton Extends TGadget
DescriptionA classical button.
Methods Summary
InitButton Initialize a button.
SetAlign Set the align For the buttons caption.
SetOffset Sets the caption offset.
Functions Summary
CreateButton Creates a new Button.
Method InitButton(caption:String,hover:Byte=1,typ:Byte=10,align:Byte=CAPTION_CENTER)
DescriptionInitialize a button.
Method SetAlign(align:Byte)
DescriptionSet the align For the buttons caption.
Method SetOffset(x:Float,y:Float)
DescriptionSets the caption offset.
Function CreateButton:TButton(x:Float,y:Float,w:Float,h:Float,gfx:TImage=Null,parent:TGadget=Null)
DescriptionCreates a new Button.

Type TGadget
DescriptionThe Gadget class provides basic functionality.
Methods Summary
Draw Draws the gadget.
DrawGadget Draws the gadget.
InitGadget Initializes a gadget.
Move Adds the given x And y values To.
Resize Resize the gadget To the given values.
SetChild Sets the gadget child. (for tabbers)
SetEnabled Changes the visibility of an gadget.
SetParent Set the gadgets parent.
SetPostion Sets the position of an gadget.
SetTooltipp Sets the tooltipp for the gadget.
SetVisible Changes the visibility of an gadget.
SwapEnabled Enables Or disables an gadget.
SwapVisible Changes the visibility of an gadget.
Update Updates the Gadget.
UpdateGadget Updates the gadget.
Method Draw() Abstract
DescriptionDraws the gadget.
InformationIndividual for each gadget.
Method DrawGadget(frame:Int=0)
DescriptionDraws the gadget.
Method InitGadget:TGadget(x:Float,y:Float,w:Float,h:Float,gfx:TImage=Null,parent:TGadget=Null)
DescriptionInitializes a gadget.
Method Move(x:Float,y:Float)
DescriptionAdds the given x And y values To.
Method Resize(w:Float,h:Float)
DescriptionResize the gadget To the given values.
Method SetChild(child:TGadget)
DescriptionSets the gadget child. (for tabbers)
Method SetEnabled(value:Byte)
DescriptionChanges the visibility of an gadget.
Method SetParent(parent:TGadget)
DescriptionSet the gadgets parent.
Method SetPostion(x:Float,y:Float)
DescriptionSets the position of an gadget.
Method SetTooltipp(ttipp:String,ttippGfx:TImage=Null)
DescriptionSets the tooltipp for the gadget.
Method SetVisible(value:Byte)
DescriptionChanges the visibility of an gadget.
Method SwapEnabled()
DescriptionEnables Or disables an gadget.
Method SwapVisible()
DescriptionChanges the visibility of an gadget.
Method Update(mh:Int) Abstract
DescriptionUpdates the Gadget.
InformationIndividual for each gadget.
Method UpdateGadget(mh:Int)
DescriptionUpdates the gadget.

Type TInput Extends TGadget
Methods Summary
InitInput Initializes an existing input gadget.
SetFont Sets font to display caption in.
Functions Summary
CreateInput Creates a new Input Field.
Method InitInput(maxChars:Int,maxLines:Int)
DescriptionInitializes an existing input gadget.
Method SetFont(font:TImageFont)
DescriptionSets font to display caption in.
Function CreateInput:TInput(x:Float,y:Float,w:Float,h:Float,gfx:TImage=Null,parent:TGadget=Null)
DescriptionCreates a new Input Field.

Type TWindow Extends TGadget
DescriptionWindows.
Methods Summary
AddGadget Adds a existing gadget to the window.
InitWindow Initialize a window.
Functions Summary
CreateWindow Creates a new window.
Method AddGadget(gadget:TGadget)
DescriptionAdds a existing gadget to the window.
InformationFirst create and initialize a gadget, then add it to a window or menu.
Method InitWindow(name:String="",typ:Byte=TYP_CLOSE)
DescriptionInitialize a window.
Function CreateWindow:TWindow(x:Float,y:Float,w:Float,h:Float,gfx:TImage=Null,parent:TGadget=Null)
DescriptionCreates a new window.

Module Information

AuthorNikolas 'ComNik' Göbel
Version0.0.9