1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
-- This allows us to make the same function in InGames and Pregame while changing exactly what it calls,
-- so shared code doesn't need to know which state it's in
end
MARKET_PRODUCT_DISPLAY_STATE_NOT_PURCHASED = 0
MARKET_PRODUCT_DISPLAY_STATE_PURCHASED = 1
MARKET_PRODUCT_DISPLAY_STATE_INELIGIBLE = 2
return MARKET_PRODUCT_DISPLAY_STATE_PURCHASED
end
if expectedClaimResult == MARKET_PURCHASE_RESULT_FAIL_INSTANT_UNLOCK_REQ_LIST
or expectedClaimResult == MARKET_PURCHASE_RESULT_TEMPORARY_HOTBAR_PROHIBITION then
return MARKET_PRODUCT_DISPLAY_STATE_INELIGIBLE
end
return MARKET_PRODUCT_DISPLAY_STATE_INELIGIBLE
end
return MARKET_PRODUCT_DISPLAY_STATE_NOT_PURCHASED
end
end
EVENT_MANAGER : RegisterForEvent ( "Globals_PublicAllIngame" , EVENT_PLAYER_DEACTIVATED , OnPlayerDeactivated ) |