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

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

setBlacklistedClickIDs

Description

Set a list of blacklisted click IDs. Allows the player to interact with any element that isn't on the list.

Arguments

1 table clickIDs

a list of IDs to disable interaction with.

Example

local panelOne = gui.create("Panel")
panelOne:setID("uniquePanelID")

local panelTwo = gui.create("Panel")
panelTwo:setID("uniquePanelIDTwo")

-- this will allow us to interact only with the panelOne object

gui:setBlacklistedClickIDs({"uniquePanelIDTwo"})