clickable_set_style

Set the button style from a ds_map.

Syntax:

GML Code Example

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


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.


Example:

GML Code 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".


Back: HTML5



No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here