Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

setClickIDs

Description

Set the list of unique UI element IDs that can be interacted with.

Arguments

1 table idList

the list of IDs that the player can interact 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:setClickIDs({"uniquePanelID"})