clickable_set_style

This function lets you set the CSS style properties for the given button via the key/value pairs in the provided DS Map. You need to have previously created the both the button element (using clickable_add()) and the DS Map and supply the stored indices to each as arguments.

 

Syntax:

clickable_set_style(index, map)

ArgumentTypeDescription
indexClickable IDThe index of the clickable icon to style.
mapDS MapThe index of the DS Map to set the style from.

 

Returns:

N/A

 

Example:

var map = ds_map_create();
ds_map_add(map, "opacity", "0.5");
clickable_set_style(button, map);
ds_map_destroy();

The above code will change the style of the clickable button with the index stored in the variable "button".