Adds an option to the "Settings" charm.


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


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

Back: Windows 8
Next: win8_settingscharm_add_html_entry
© Copyright YoYo Games Ltd. 2018 All Rights Reserved