microsoft / Xbox-GDK-Samples

Game development samples published by the Xbox Advanced Technology Group using the Microsoft GDK.
http://aka.ms/gamedevdocs
MIT License
218 stars 32 forks source link

InGameStore.cpp UI samples #35

Closed KyleBernelle closed 8 months ago

KyleBernelle commented 8 months ago

I'm in the middle of porting a game from the XDK to the GDK, and while working on the store functionality I noticed that the UIManager is included within the InGameStore samples. I also see XR-039 states "All purchases must use the Xbox console common purchase UI.".

Does the GDK handle the UI functionality in the use of the Xbox Series X store, or is this something that will actually need to be included within our own InGameStore files? Specifically, in UpdateProductList() I see some calls that use the UIManager, but in the MakePurchase() function there is the call to XStoreShowPurchaseUIResult, and ShowPopup. Which of these two are the aforementioned "Xbox console common purchase UI"?

timch-ms commented 8 months ago

UIManager is simply part of an internal UI framework we use for our samples. XStoreShowPurchaseUIAsync is what you will call to invoke the expected console purchase UI. This would be equivalent to the XDK's ShowPurchaseAsync. The XStore API demonstrated in the sample are the GDK API you are expected to use to implement Store functionality.

KyleBernelle commented 8 months ago

Thank you very much for the swift reply! That is good-to-hear info!