Text object creation
Object_Text

Creates a new Text object.

myObject = new Object_Text( Character_Map, Character_Order, Letter_Spacing, Line_Spacing )
myObject = new Object_Text( Character_Map, Character_Order )
myObject = new Object_Text( Character_Map )
myObject = new Object_Text( )

Return value
Newly created object.

Parameters
  • Character_Map
    Surface / name of image in bank / external image to use as a character map (Note: it is recommended to use FontMaker to make these character maps)
  • Character_Order
    The order of characters in the Character_Map. By default this is the order used by FontMaker.
  • Letter_Spacing
    Gap to use between letters
  • Line_Spacing
    Gap to use between lines
Adding to JAM

myInstance = myJAM.Create( myObject, X, Y, Width, Height, Text )
myInstance = myJAM.Create( myObject, X, Y, Width, Height )
myInstance = myJAM.CreateGUI( myObject, X, Y, Width, Height, Text )
myInstance = myJAM.CreateGUI( myObject, X, Y, Width, Height )

Parameters for adding to JAM
  • myObject
    Object returned by creation
  • X
    X coordinate to create at
  • Y
    Y coordinate to create at
  • Width
    If specified, the object will be stretched to this width
  • Height
    If specified, the object will be stretched to this height


  • Text
    If specified, the new instance will be set to the given text
Comments

Black (0x000000) areas of the character map are made transparent.



JAM © 2005 no one in particular
Project started by David Evans in 2005