win8_livetile_badge_clear

Clear the current badge from the Live Tile.

Syntax:

win8_livetile_badge_clear();


Returns: N/A


Description

This function clears the current badge from the Live Tile of your game.


Example:

if keyboard_check_pressed(ord("P"))
   {
   if global.Pause
      {
      global.Pause = false;
      win8_livetile_badge_clear();
      }
   else
      {
      global.Pause = true;
      win8_livetile_badge_notification("paused");
      }
   }

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.


Back: Windows 8
Next: win8_livetile_queue_enable
© Copyright YoYo Games Ltd. 2015 All Rights Reserved