コード例 #1
0
ファイル: EIcon.cs プロジェクト: Zer0Ph34r/GUI_Branch
    public static void ProcessFIcon()
    {
        if (!processFIcon || dialogBubble)
        {
            return;
        }

        EventEngine instance1 = PersistenSingleton <EventEngine> .Instance; // Don't remove it!
        BubbleUI    instance2 = Singleton <BubbleUI> .Instance;

        if (instance2 == null)
        {
            return;
        }
        if (!instance2.gameObject.activeSelf)
        {
            instance2.gameObject.SetActive(true);
        }
        Int32 num = 0;

        if (!sFIconLastPolled && sFIconPolled)
        {
            num = 1;
        }
        else if (sFIconLastPolled && !sFIconPolled)
        {
            num = 2;
        }
        else if (sFIconLastPolled && sFIconPolled && !instance2.IsActive)
        {
            if (HideDelay > 0.0)
            {
                HideDelay -= Time.deltaTime;
            }
            else
            {
                num = 1;
            }
        }
        else if (!sFIconLastPolled && !sFIconPolled && (instance2.IsActive && !hereIconShow))
        {
            if (ShowDelay > 0.0)
            {
                ShowDelay -= Time.deltaTime;
            }
            else
            {
                num = 2;
            }
        }
        sFIconLastPolled = sFIconPolled;
        sFIconPolled     = false;
        if (num == 1)
        {
            ShowBubble();
        }
        else if (num == 2)
        {
            HideBubble();
        }
        else if (!hereIconShow && instance2.IsActive)
        {
            Boolean flag = sFIconType != sFIconLastType;
            if (flag)
            {
                HideBubble();
                sFIconPolled     = false;
                sFIconLastPolled = sFIconPolled;
            }
        }
        sFIconLastType = sFIconType;
    }
コード例 #2
0
ファイル: EIcon.cs プロジェクト: uzoko1/Memoria
    public static void ProcessFIcon()
    {
        if (!IsProcessingFIcon || IsDialogBubble)
        {
            return;
        }

        //EventEngine instance1 = PersistenSingleton<EventEngine>.Instance;
        BubbleUI instance2 = Singleton <BubbleUI> .Instance;

        if (instance2 == null)
        {
            return;
        }

        if (!instance2.gameObject.activeSelf)
        {
            instance2.gameObject.SetActive(true);
        }

        int num = 0;

        if (!s_FIconLastPolled && s_FIconPolled)
        {
            num = 1;
        }
        else if (s_FIconLastPolled && !s_FIconPolled)
        {
            num = 2;
        }
        else if (s_FIconLastPolled && s_FIconPolled && !instance2.IsActive)
        {
            if (HideDelay > 0.0)
            {
                HideDelay -= Time.deltaTime;
            }
            else
            {
                num = 1;
            }
        }
        else if (!s_FIconLastPolled && !s_FIconPolled && (instance2.IsActive && !s_hereIconShow))
        {
            if (ShowDelay > 0.0)
            {
                ShowDelay -= Time.deltaTime;
            }
            else
            {
                num = 2;
            }
        }

        s_FIconLastPolled = s_FIconPolled;
        s_FIconPolled     = false;

        if (num == 1)
        {
            ShowBubble();
        }
        else if (num == 2)
        {
            HideBubble();
        }
        else if (!s_hereIconShow && instance2.IsActive)
        {
            bool flag = s_FIconType != s_FIconLastType;
            if (flag)
            {
                HideBubble();
                s_FIconPolled     = false;
                s_FIconLastPolled = s_FIconPolled;
            }
        }

        s_FIconLastType = s_FIconType;
    }
コード例 #3
0
    public static void ProcessFIcon()
    {
        if (!EIcon.processFIcon)
        {
            return;
        }
        if (EIcon.dialogBubble)
        {
            return;
        }
        EventEngine instance  = PersistenSingleton <EventEngine> .Instance;
        BubbleUI    instance2 = Singleton <BubbleUI> .Instance;

        if (instance2 == (UnityEngine.Object)null)
        {
            return;
        }
        if (!instance2.gameObject.activeSelf)
        {
            instance2.gameObject.SetActive(true);
        }
        Int32 num = 0;

        if (!EIcon.sFIconLastPolled && EIcon.sFIconPolled)
        {
            num = 1;
        }
        else if (EIcon.sFIconLastPolled && !EIcon.sFIconPolled)
        {
            num = 2;
        }
        else if (EIcon.sFIconLastPolled && EIcon.sFIconPolled && !instance2.IsActive)
        {
            if (EIcon.HideDelay > 0f)
            {
                EIcon.HideDelay -= Time.deltaTime;
            }
            else
            {
                num = 1;
            }
        }
        else if (!EIcon.sFIconLastPolled && !EIcon.sFIconPolled && instance2.IsActive && !EIcon.hereIconShow)
        {
            if (EIcon.ShowDelay > 0f)
            {
                EIcon.ShowDelay -= Time.deltaTime;
            }
            else
            {
                num = 2;
            }
        }
        EIcon.sFIconLastPolled = EIcon.sFIconPolled;
        EIcon.sFIconPolled     = false;
        if (num == 1)
        {
            EIcon.ShowBubble();
        }
        else if (num == 2)
        {
            EIcon.HideBubble();
        }
        else if (!EIcon.hereIconShow && instance2.IsActive)
        {
            Boolean flag = false;
            if (EIcon.sFIconType != EIcon.sFIconLastType)
            {
                flag = true;
            }
            if (flag)
            {
                EIcon.HideBubble();
                EIcon.sFIconPolled     = false;
                EIcon.sFIconLastPolled = EIcon.sFIconPolled;
            }
        }
        EIcon.sFIconLastType = EIcon.sFIconType;
    }