Slight alteration

This commit is contained in:
ZackRhodes 2022-12-10 13:42:58 -05:00
parent 3b303dc129
commit 0c55efcf0c
2 changed files with 5 additions and 5 deletions

View File

@ -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();
}
};

View File

@ -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"