Deprecated: str_replace(): Passing null to parameter #1 ($search) of type array|string is deprecated in /var/www/vhosts/gamedevstudiogame.com/httpdocs/classes/client.php on line 124

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/vhosts/gamedevstudiogame.com/httpdocs/classes/client.php on line 124
Game dev studio

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))