Welcome Guest [Log In] [Register]
Viewing Single Post From: Sprocket Configuration File
Alan
Administrator
[ *  *  * ]
<Button>

This denote the engine should create a new button with the following attributes

Attributes


Required

name
name of the Image in the render list quotes are required around the name
example
name="button"

x
x location of the image
example
x=20

y
y location of the image
example
y=30

z
z location of the image -z is behind the viewer +z is in front of the viewer
example
z=3

Note:
If no filename is specified the height and width attributes are required
If a filename is specified then the height and width attributes are ignored, and the height and width of the file are used instead


filename
name of the file to load quotes are required around the file name
example
filename="test.bmp"

height
the height of the inviable clickable area
example
height=100

width
the height of the inviable clickable area
example
width=100



Optional


renderlist
name of the renderlist to put the sprocket into. quotes are required around the name of the render list. The renderlist must exist in code first before loading of the config file.
defaults to Current renderlist
example
renderlist="Default"

active
defines whether or not the button can be clicked
defaults to true
example
active=false

transparency
enables or disables Key Color transparency
defaults to false
example
transparency=true

example of button tag
with file name
<button name="button" x=20 y=30 z=3 filename="test.bmp" renderlist="Default" active=false transparency=true><button>

with out file name
<button name="button" x=20 y=30 z=3 renderlist="Default" height=100 width=100 active=false><button>
Offline Profile Quote Post
Sprocket Configuration File · Documentation