Button * CreateButton
(
std::string _localfileName ,
std::string _localName,
int _localx,
int _localy,
int _localz,
bool _Transparency,
bool _localactive,
std::string _AddtoCurrentRenderlist
)
Public function of the Epee Engine Class
Description:
Creates a button that is attached to an image. the button is added to the rendable list _AddtoCurrentRenderlist.
Buttons shift two pixel down and to the right to denote that they have been clicked
Arguments:
Required:
std::string _localfileName
Name of image to load for the button
std::string _localName
Name of the button in the render list
int _localx
x location of the button
int _localy
y location of the button
int _localz
z location of the button
Optional:
bool _Transparency
does not draw pixel that matches the color of the top left pixel
defaults to false
bool _localactive
if true the Button can be clicked by the user
if false the Button can not be clicked by the user
defaults to true
std::string _AddtoCurrentRenderlist
render list to add the Button to
defaults to "Current" the current active render list
Return Value:
if successful returns a pointer to the newly created Button, otherwise returns a NULL pointer
Additional implementation of this function
Button * CreateButton
(
std::string _localName,
int _localx,
int _localy,
int _localz,
int _height,
int _width,
bool _Transparency,
bool _localactive,
std::string _AddtoCurrentRenderlist
)
Public function of the Epee Engine Class
Description:
Creates a button that is not attached to an image an is invsable to the user. this button is added to the rendable list but is not draw on the screen
Arguments:
Required:
std::string _localName
Name of the button in the render list
int _localx
x location of the button
int _localy
y location of the button
int _localz
z location of the button
int _height
the height in pixels of the invisible button
int _width
the width in pixels of the invisible button
Optional:
bool _Transparency
does not draw pixel that matches the color of the top left pixel
This is not really used when using this version of the CreateButton function
defaults to false
bool _localactive
if true the Button can be clicked by the user
if false the Button can not be clicked by the user
defaults to true
std::string _AddtoCurrentRenderlist
render list to add the Button to
defaults to "Current" the current active render list
Return Value:
if successful returns a pointer to the newly created Button, otherwise returns a NULL pointer