clickable_set_style


Description

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 previously and supply the stored indices as arguments.


Syntax:

clickable_set_style(index, map)

Argument Description
index The index of the clickable icon to style.
map The 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".