Classes

Concepts

Libraries

Objects

contractor »

conversationAnswerData »

engineStatData »

issueData »

playerPlatformSpecialistData »

projectReviewConclusion »

projectReviewRemark »

randomEventData »

statusIcon »

getSide

Description

Returns the X/Y coordinates of the desired sides. It requires a bitmask to be passed into it. The side bitmask definition is:

gui.SIDES = {
	LEFT = 1,
	RIGHT = 2,
	TOP = 4,
	BOTTOM = 8
}

Arguments

1 number bitmask

the sides to retrieve the coordinates of.

Example

local panel = gui.create("Panel")
panel:setSize(300, 600)
panel:setPos(500, 300)

-- get the coordinates of the element to the right and bottom

print(panel:getSide(gui.SIDES.RIGHT + gui.SIDES.BOTTOM))