Adds an option to the "Settings" charm.


GML Code Example

win8_settingscharm_add_entry(name, callback);

Argument Description
str The name of the option to add to the charm.
callback The script (or URL) to run if pressed.

Returns: N/A


When you move your mouse to the top right, or bottom right, corner of the screen in Windows 8 you get a slide-out menu of "charms". These are special global icons that reference certain aspects of the OS. This function can be used to add your own options to the "charm" labelled as "Settings".

The first argument is the name of the option you are adding as a string, and the second argument is the script from your game that you wish the new option to access, or a URL that you wish the charm to open. If you choose a URL then it should be a string and start with http://, for example "".


GML Code Example

win8_settingscharm_add_entry("Controls", scr_GameControls);

The above code will add an option to the Settings "charm" called "Controls", and when it is selected it will run the script "scr_GameControls".

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