Clickables

Clickables are buttons that players can click for something to happen. They're served as a more generalized version of buyables, with the difference being them storing a number/string state instead of a  amount. Clickables also have less features than their counterparts and require smaller initial code. Clickables are arranged in a grid, with the use of custom layouts for arrangements of individual items.

Main object
All clickables of a layer are stored in an object, with  and   are the number of rows and column of the clickable grid, and each clickable is also an object with the ID determines the position of it in the clickable grid, where the first digit is the row and the second digit is the column:

Master button
A "master button" can be shown on the top of the clickable grid to serve for a more generalized use, for example setting the state of all clickables to their default values.

Built-in functions
TMT also includes some built-in functions for use:


 * : Gets the state of the clickable the player has
 * : Sets the state of the clickable the player has
 * : Returns the current effects of the clickable, if any.

Features
These features can be added to individual clickable objects: Additionally, these features can be added to the main  object: