|id||This is the badge id and can either be a number or an icon from the badge catalogue.|
This function will "push" a badge onto the Live Tile of your
game. The badge is a small square are on the bottom right of your
games Live Tile and can show either a number from 0 to 99 (any
value over 99 will be shown as "+99"), or a badge icon. Icons are
decided based on the icon string that you pass through the
function, which can be any of the following:
NOTE: The background colour for these icons will depend on what you have defined in the "Logos" part of the General section of the Windows 8 tab in the Global Game Settings.
|Icon String||Badge Catalogue Image|
No Badge Shown
global.Pause = false;
global.Pause = true;
The above code will check for the key "P" being pressed and if it is detected, it will toggle the global variable "Paused" to true or false and push a badge onto the Live Tile (or remove it again) based on the value of this variable.