Why?
The current Windows 8 plugin which is included on Construct2 doesn't fit my needs so I decided to write one by myself. I'm new to this so don't expect a lot right now. I'll be updating and making it better through time.
Latest release
Check the latest release here
Docs
Conditions
On game blur
This is a triggered condition, it is fired once the Windows Store App losts its focus. For example: when your game is running in Split View you may want to pause it when the user clicks/taps outside your game screen.
On game focus
This is a triggered condition, it is fired once the Windows Store App gains focus. For example: when your game is running in Split View you may want to resume it when the user clicks/taps inside your game screen.
On window resized
This is a triggered condition, it is fired once the Windows Store App is resized by the user. For example: there may be some content thay you want to adjust when your app runs in different screen sizes.
Has aspect ratio
This conidition checks wheter your game is running in the specified aspect ratio. This condition recives two parameters the first one is a string with the format "Y:X", for example: "16:9", "4:3". The second parameter specifies the threshold to be considered.
On MessageDialog button 1 pressed
This is a triggered condition, it is fired when the user clicks the first button (or the only button) in a MessageDialog. For example: You may receive a confirmation from the user.
On MessageDialog button 2 pressed
This is a triggered condition, it is fired when the user clicks the second button in a MessageDialog.
On share
This action is triggered when the user invokes the ShareUI, usually this condition is used with Share text action.
Device has touch input
Is Windows device
Is Windows 8
Is Windows Phone 8
Actions
Show AppBar
If your app/game has an AppBar you can invoke it from yor game using this action. You must set the AppBar id in the properties of the plugin. Please note that when you export a project to a Windows Store App, Construct 2 does not include the default styles so you may want to add it. This feature won't work when exported to a Windows Phone app.
Show MessageDialog (One button)
Show a message using the MessageDialog API. This action receives three parameters: The title of the message, the content of the message and the text to show in the default button of the message.
Show MessageDialog (Two buttons)
Show a message using the MessageDialog API. This action receives four parameters: The title of the message, the content of the message, the text to show in the default button of the message and the text to show in the other button of the message.
Share text
Sets the text to be shared when the ShareUI is shown. This action receives three parameters: Title, Description and Text.
Show ShareUI
This action invokes the ShareUI programatically.
Show settings pane
This action invokes the Settings Pane in the Charm Bar. This feature won't work when exported to a Windows Phone app.
Update text tile
Sets or updates the text in the app's tile.
Clear tile
Clears the app's tile
Set number badge
Sets a number badge in the app's tile
Set glyph badge
Sets a glyph badge in the app's tile
Clear badge
Clears the current badge in the app's tile
Expressions
WindowWidth
The Width of the screen your game is running
WindowHeight
The Height of the screen your game is running