481 B
481 B
setPosition
Changes the position relative to its parent frame
Parameters:
numberx coordinatenumbery coordinatebooleanWhether it will add/remove to the current coordinates instead of setting them
Returns:
objectThe object in use
Usage:
- Sets the Buttons position to an x coordinate of 2 with a y coordinate of 3
local mainFrame = basalt.createFrame()
mainFrame:addButton():setPosition(2,3)
<button x="2" y="3" />