I can’t answer all of these, but for #1, the emulator requires certain hardware features to run. This setting isn’t all that common to Windows machines. If your CPU doesn’t support this virtualization mode, then you will need a device to test on.
#2. We don’t support native.showPopUp() in CoronaCards, so you’re left to your own means to accomplish this. I don’t know if system.OpenURL will work or not. Since you’re compiling in native space, if there are native SDK calls to rate your app, you should be able to call them. See: https://msdn.microsoft.com/en-us/library/windows/apps/hh394030%28v=vs.105%29.aspx
#4, yes, you will have to convert to .wav or .oog.
#5, I opened several apps and backspaced my way out. I was never prompted for a “Are you sure you want to quit” type box.
It requires windows 8.1 PRO which I don’t have so I end up getting a nice new phone lumia 535 at sgd $199 abt S145 usd
I like to implement the Microsoft’s rate app component, how do I communicate with c+ language? Sorry I have no experience outside lua. After reading this page I still have no idea how to proceed, like where to put the C file in visual studio etc
Now the text is indeed a big problem on windows, so I have spent the past two days learning how to make bitmap font’s and implementing them with multi lines(I have a lot dialogue boxes in game).
If you want to do it the native way, its pretty easy. Add this to your MainPage.cs file near the bottom as a child function of MainPage():
/// \<summary\>Called by Lua when it is requesting a login popup to be shown.\</summary\> /// \<param name="sender"\>The CoronaRuntimeEnvironment that dispatched this event.\</param\> /// \<param name="e"\>Provides the Lua vent table's fields/properties.\</param\> /// \<returns\>Returns a boxed object to Lua.\</returns\> private CoronaLabs.Corona.WinRT.ICoronaBoxedData rateApp( CoronaLabs.Corona.WinRT.CoronaRuntimeEnvironment sender, CoronaLabs.Corona.WinRT.CoronaLuaEventArgs e) { MarketplaceReviewTask marketplaceReviewTask = new MarketplaceReviewTask(); marketplaceReviewTask.Show(); // This returns nil to Lua. return null; }
At the top, in the “using” area add this line:
using Microsoft.Phone.Tasks;
In the OnCoronaRuntimeLoaded function add:
private void OnCoronaRuntimeLoaded( object sender, CoronaLabs.Corona.WinRT.CoronaRuntimeEventArgs e) { // Keep a reference to the Corona runtime environment. // It's needed so that your login window's results can be dispatched to Corona. fCoronaRuntimeEnvironment = e.CoronaRuntimeEnvironment; fCoronaRuntimeEnvironment.AddEventListener("rateApp", rateApp); }
Then in your Lua code for the touch/tap handler for your Rate button do:
local requestRateApp = { name = "rateApp", } Runtime:dispatchEvent(requestRateApp)
I can’t answer all of these, but for #1, the emulator requires certain hardware features to run. This setting isn’t all that common to Windows machines. If your CPU doesn’t support this virtualization mode, then you will need a device to test on.
#2. We don’t support native.showPopUp() in CoronaCards, so you’re left to your own means to accomplish this. I don’t know if system.OpenURL will work or not. Since you’re compiling in native space, if there are native SDK calls to rate your app, you should be able to call them. See: https://msdn.microsoft.com/en-us/library/windows/apps/hh394030%28v=vs.105%29.aspx
#4, yes, you will have to convert to .wav or .oog.
#5, I opened several apps and backspaced my way out. I was never prompted for a “Are you sure you want to quit” type box.
It requires windows 8.1 PRO which I don’t have so I end up getting a nice new phone lumia 535 at sgd $199 abt S145 usd
I like to implement the Microsoft’s rate app component, how do I communicate with c+ language? Sorry I have no experience outside lua. After reading this page I still have no idea how to proceed, like where to put the C file in visual studio etc
Now the text is indeed a big problem on windows, so I have spent the past two days learning how to make bitmap font’s and implementing them with multi lines(I have a lot dialogue boxes in game).
If you want to do it the native way, its pretty easy. Add this to your MainPage.cs file near the bottom as a child function of MainPage():
/// \<summary\>Called by Lua when it is requesting a login popup to be shown.\</summary\> /// \<param name="sender"\>The CoronaRuntimeEnvironment that dispatched this event.\</param\> /// \<param name="e"\>Provides the Lua vent table's fields/properties.\</param\> /// \<returns\>Returns a boxed object to Lua.\</returns\> private CoronaLabs.Corona.WinRT.ICoronaBoxedData rateApp( CoronaLabs.Corona.WinRT.CoronaRuntimeEnvironment sender, CoronaLabs.Corona.WinRT.CoronaLuaEventArgs e) { MarketplaceReviewTask marketplaceReviewTask = new MarketplaceReviewTask(); marketplaceReviewTask.Show(); // This returns nil to Lua. return null; }
At the top, in the “using” area add this line:
using Microsoft.Phone.Tasks;
In the OnCoronaRuntimeLoaded function add:
private void OnCoronaRuntimeLoaded( object sender, CoronaLabs.Corona.WinRT.CoronaRuntimeEventArgs e) { // Keep a reference to the Corona runtime environment. // It's needed so that your login window's results can be dispatched to Corona. fCoronaRuntimeEnvironment = e.CoronaRuntimeEnvironment; fCoronaRuntimeEnvironment.AddEventListener("rateApp", rateApp); }
Then in your Lua code for the touch/tap handler for your Rate button do:
local requestRateApp = { name = "rateApp", } Runtime:dispatchEvent(requestRateApp)