mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-11-25 05:32:17 +00:00
Slight alteration
This commit is contained in:
parent
3b303dc129
commit
0c55efcf0c
@ -181,7 +181,7 @@ const SteamFunctions = {
|
||||
})
|
||||
},
|
||||
PurchaseShopItem(itemCost,itemKey,itemConfig){
|
||||
console.log(itemCost,itemKey,itemConfig)
|
||||
//console.log(itemCost,itemKey,itemConfig)
|
||||
const itemPurchaseRequest = {
|
||||
ItemId: itemKey,
|
||||
Price: itemCost,
|
||||
@ -190,11 +190,12 @@ const SteamFunctions = {
|
||||
PlayFab.ClientApi.PurchaseItem(itemPurchaseRequest, (result, error) => {
|
||||
if (result !== null) {
|
||||
console.log(result);
|
||||
if (itemConfig.singleUse) itemConfig.onPurchase();
|
||||
SteamFunctions.SyncPlayFabSTD();
|
||||
} else if (error !== null) {
|
||||
console.log(error);
|
||||
GameUI.notify.error(error.errorMessage)
|
||||
}
|
||||
})
|
||||
if (itemConfig.singleUse) itemConfig.onPurchase();
|
||||
SteamFunctions.SyncPlayFabSTD();
|
||||
}
|
||||
};
|
@ -41,7 +41,7 @@ export default {
|
||||
player.IAP.disabled = newValue;
|
||||
},
|
||||
enableText() {
|
||||
return `In-app Purchases: ${this.IAPsEnabled ? "Enabled" : "Disabled"}`;
|
||||
return `In-app Purchases: ${player.IAP.enabled ? "Enabled" : "Disabled"}`;
|
||||
},
|
||||
respecText() {
|
||||
if (!this.loggedIn) return "Not logged in!";
|
||||
@ -111,7 +111,6 @@ export default {
|
||||
@click="toggleEnable()"
|
||||
>
|
||||
{{ enableText }}
|
||||
Disable in-app-purchases
|
||||
</PrimaryButton>
|
||||
<!--PrimaryButton
|
||||
v-tooltip="respecText"
|
||||
|
Loading…
Reference in New Issue
Block a user