FreeFormButton

From Crumbled World Wiki

FreeFormButtonExampleCode

Inheritance

Panel

Constructor

function description
FreeFormButton(Vec2 centerPos, FreeFormButtonDesign design)
FreeFormButton(Vec2 centerPos, FreeFormButtonDesign design, Texture textureName, Vec2 minCoord, Vec2 maxCoord)

Functions

return function description
setColor(Vec3 innerRingColorTop, Vec3 innerRingColorBottom, Vec3 outerRingColorTop, Vec3 outerRingColorBottom) Set button color
setEnabled(bool enable) Set enabled
setButtonDesign(FreeFormButtonDesign design) Set button design
Sprite getImage() Return the image sprite
Sprite getSecondaryImage() Return the secondary image sprite
setSelected(bool selected) set if button is in selected
bool getSelected() get if selected