Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

addClickID

Description

Add an ID of a UI element that we can interact with. Elements that aren't on the list of clickable IDs will not be interactable.

Arguments

1 any id

the unique ID of the element we wish to restrict interaction to.

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

-- and with this call we will be able to interact with both elements

gui:addClickID("uniquePanelIDTwo")