function cmp_rewards_init()
--Check to see if we want to crop to the cellphone... and change document depths...
local cell_foreground_doc_h = vint_document_find("cell_foreground")
if cell_foreground_doc_h ~= nil and cell_foreground_doc_h ~= 0 then
vint_document_set_depth(Reward_granted_doc, -125)
--local h = vint_object_find("phone_clip", 0, Reward_granted_doc)
--vint_set_property(h, "clip_enabled", true)
--vint_set_property(h, "visible", true)
end
-- Populate data and start screen...
vint_dataresponder_request("cmp_rewards_success", "cmp_rewards_populate", 0)
end
function cmp_rewards_cleanup()
end
-------------------------------------------------------------------------------
-- Populate function for rewards...
-------------------------------------------------------------------------------
function cmp_rewards_populate(unlockables_to_follow)
--Set rewards count so it knows how many screens to display...
reward_granted_set_reward_count(unlockables_to_follow)
--Set callback on the reward screen, so we know when it is over...
set_reward_granted_end_cb(cmp_rewards_end)
--Start reward screen...
reward_granted_start()
end
-------------------------------------------------------------------------------
-- Remove screen...
-------------------------------------------------------------------------------
function cmp_rewards_end()
pop_screen()
end