Beispiel #1
0
 public static void ShowQuestToast(DelOnCloseQuestToast onClosedCallback, object callbackUserData, bool updateCacheValues, Achievement quest, bool fullscreenEffects)
 {
     quest.AckCurrentProgressAndRewardNotices();
     if (quest.ID != 0x38)
     {
         m_showFullscreenEffects = fullscreenEffects;
         m_questActive           = true;
         ToastCallbackData callbackData = new ToastCallbackData {
             m_toastRewards        = quest.Rewards,
             m_toastName           = quest.Name,
             m_toastDescription    = quest.Description,
             m_onCloseCallback     = onClosedCallback,
             m_onCloseCallbackData = callbackUserData,
             m_updateCacheValues   = updateCacheValues
         };
         AssetLoader.Get().LoadActor("QuestToast", true, new AssetLoader.GameObjectCallback(QuestToast.PositionActor), callbackData, false);
         SoundManager.Get().LoadAndPlay("Quest_Complete_Jingle");
         SoundManager.Get().LoadAndPlay("quest_complete_pop_up");
         SoundManager.Get().LoadAndPlay("tavern_crowd_play_reaction_positive_random");
     }
 }
Beispiel #2
0
    public static void ShowFixedRewardQuestToast(DelOnCloseQuestToast onClosedCallback, object callbackUserData, RewardData rewardData, string name, string description, bool fullscreenEffects)
    {
        m_showFullscreenEffects = fullscreenEffects;
        m_questActive           = true;
        List <RewardData> list = new List <RewardData> {
            rewardData
        };
        ToastCallbackData callbackData = new ToastCallbackData {
            m_toastRewards        = list,
            m_toastName           = name,
            m_toastDescription    = description,
            m_onCloseCallback     = onClosedCallback,
            m_onCloseCallbackData = callbackUserData,
            m_updateCacheValues   = true
        };

        AssetLoader.Get().LoadActor("QuestToast", true, new AssetLoader.GameObjectCallback(QuestToast.PositionActor), callbackData, false);
        SoundManager.Get().LoadAndPlay("Quest_Complete_Jingle");
        SoundManager.Get().LoadAndPlay("quest_complete_pop_up");
        SoundManager.Get().LoadAndPlay("tavern_crowd_play_reaction_positive_random");
    }
Beispiel #3
0
 public static void ShowQuestToast(DelOnCloseQuestToast onClosedCallback, object callbackUserData, bool updateCacheValues, Achievement quest)
 {
     ShowQuestToast(onClosedCallback, callbackUserData, updateCacheValues, quest, true);
 }
Beispiel #4
0
 public static void ShowQuestToast(DelOnCloseQuestToast onClosedCallback, bool updateCacheValues, Achievement quest, bool fullScreenEffects)
 {
     ShowQuestToast(onClosedCallback, null, updateCacheValues, quest, fullScreenEffects);
 }
Beispiel #5
0
 public static void ShowFixedRewardQuestToast(DelOnCloseQuestToast onClosedCallback, object callbackUserData, RewardData rewardData, string name, string description)
 {
     ShowFixedRewardQuestToast(onClosedCallback, null, rewardData, name, description, true);
 }
Beispiel #6
0
 public static void ShowFixedRewardQuestToast(DelOnCloseQuestToast onClosedCallback, RewardData rewardData, string name, string description, bool fullscreenEffects)
 {
     ShowFixedRewardQuestToast(onClosedCallback, null, rewardData, name, description, fullscreenEffects);
 }