Files

29 lines
737 B
Markdown

# UIClickComponent — giriş
[← UIClickComponent](index.md) · [← Master](../../wiki.md)
Parça 2/2 · [önceki](_giris.md)
var button = Math.floor(list.getFloat(4));
// Draw random rectangle on the back drop
if (button === 0)
{
var backdrop = uiContext.get("backdrop");
backdrop.rect(x - 10, y - 10, 20, 20, 0xff000000 + Math.floor(Math.random() * 0xffffff));
}
}
}
Field Summary
Fields inherited from class mchorse.mappet.api.ui.components.UIComponent
changedProperties, context, DELAY, enabled, h, id, keybinds, marginBottom, marginLeft, marginRight, marginTop,
tooltip, tooltipDirection, updateDelay, visible, w, x, y
Constructor Summary
Constructors
Constructor and Description