Ejemplo n.º 1
0
    private void Hide(BubbleUI.Flag target)
    {
        switch (target)
        {
        case BubbleUI.Flag.EXCLAMATION:
            this.suspectedButton.Hide();
            break;

        case BubbleUI.Flag.QUESTION:
            this.helpButton.Hide();
            break;

        case BubbleUI.Flag.DUEL:
            this.duelButton.Hide();
            break;

        case BubbleUI.Flag.CURSOR:
            this.cursor.Hide();
            break;

        case BubbleUI.Flag.BEACH:
            this.beachButton.Hide();
            break;
        }
    }
Ejemplo n.º 2
0
 public void Hide()
 {
     BubbleUI.Flag[] array = this.allFlag;
     for (Int32 i = 0; i < (Int32)array.Length; i++)
     {
         BubbleUI.Flag target = array[i];
         this.Hide(target);
     }
     this.HideAllHud();
     this.currentFlag.Clear();
 }
Ejemplo n.º 3
0
    private static void ShowHereIcon(PosObj po)
    {
        s_hereIconShow = true;
        ShowDelay      = 0.175f;
        BubbleUI.Flag flag = BubbleUI.Flag.CURSOR;
        Transform     bone;
        Vector3       offset;

        BubbleMappingInfo.GetActorInfo(po, out bone, out offset);
        Singleton <BubbleUI> .Instance.Show(bone, po, null, FieldMap, offset, new BubbleUI.Flag[1] {
            flag
        }, null);
    }
Ejemplo n.º 4
0
    public void ShowHud(BubbleUI.Flag flag)
    {
        if (FF9StateSystem.MobilePlatform)
        {
            switch (EventHUD.CurrentHUD)
            {
            case MinigameHUD.MogTutorial:
            case MinigameHUD.JumpingRope:
            case MinigameHUD.Telescope:
            case MinigameHUD.ChocoHot:
                return;
            }
            switch (flag)
            {
            case BubbleUI.Flag.EXCLAMATION:
                this.primaryButton.SetActive(true);
                this.primaryButtonSprite.spriteName       = "button_minigame";
                this.primaryButtonComponent.normalSprite  = "button_minigame";
                this.primaryButtonComponent.hoverSprite   = "button_minigame_act";
                this.primaryButtonComponent.pressedSprite = "button_minigame_act";
                break;

            case BubbleUI.Flag.QUESTION:
                this.primaryButton.SetActive(true);
                this.primaryButtonSprite.spriteName       = "button_bubble_question_idle";
                this.primaryButtonComponent.normalSprite  = "button_bubble_question_idle";
                this.primaryButtonComponent.hoverSprite   = "button_bubble_question_act";
                this.primaryButtonComponent.pressedSprite = "button_bubble_question_act";
                break;

            case BubbleUI.Flag.DUEL:
                this.secondaryButton.SetActive(true);
                this.secondaryButtonSprite.spriteName       = "button_card_idle";
                this.secondaryButtonComponent.normalSprite  = "button_card_idle";
                this.secondaryButtonComponent.hoverSprite   = "button_card_act";
                this.secondaryButtonComponent.pressedSprite = "button_card_act";
                this.secondaryOnScreenButton.KeyCommand     = Control.Special;
                break;

            case BubbleUI.Flag.BEACH:
                this.secondaryButton.SetActive(true);
                this.secondaryButtonSprite.spriteName       = "button_beach_idle";
                this.secondaryButtonComponent.normalSprite  = "button_beach_idle";
                this.secondaryButtonComponent.hoverSprite   = "button_beach_act";
                this.secondaryButtonComponent.pressedSprite = "button_beach_act";
                this.secondaryOnScreenButton.KeyCommand     = Control.Cancel;
                break;
            }
        }
    }
Ejemplo n.º 5
0
    private static void ShowHereIcon(PosObj po)
    {
        EIcon.hereIconShow = true;
        EIcon.ShowDelay    = 0.175f;
        BubbleUI.Flag flag = BubbleUI.Flag.CURSOR;
        Transform     target;
        Vector3       offset;

        BubbleMappingInfo.GetActorInfo(po, out target, out offset);
        Singleton <BubbleUI> .Instance.Show(target, po, (Obj)null, EIcon.FieldMap, offset, new BubbleUI.Flag[]
        {
            flag
        }, null);
    }
Ejemplo n.º 6
0
    private Int32 GetCursorFlagIndex(BubbleUI.Flag[] flags)
    {
        Int32 result = -1;
        Byte  b      = 0;

        for (Int32 i = 0; i < (Int32)flags.Length; i++)
        {
            BubbleUI.Flag flag = flags[i];
            if (flag == BubbleUI.Flag.CURSOR)
            {
                result = (Int32)b;
                break;
            }
            b = (Byte)(b + 1);
        }
        return(result);
    }
Ejemplo n.º 7
0
    private void InitialBubble(PosObj po, Obj coll, BubbleUI.Flag[] flags, Action <PosObj, Obj, UInt32>[] listener)
    {
        this.currentPo     = po;
        this.coll          = coll;
        this.inputListener = listener;
        this.currentFlag.Clear();
        this.HideAllHud();
        Byte        b    = 0;
        List <Byte> list = new List <Byte>();

        if (this.GetCursorFlagIndex(flags) != -1)
        {
            this.cursor.Show();
            flags = new BubbleUI.Flag[]
            {
                BubbleUI.Flag.CURSOR
            };
            list.Add(0);
        }
        else
        {
            BubbleUI.Flag[] array = flags;
            for (Int32 i = 0; i < (Int32)array.Length; i++)
            {
                BubbleUI.Flag flag = array[i];
                switch (flag)
                {
                case BubbleUI.Flag.EXCLAMATION:
                    this.ShowHud(flag);
                    this.suspectedButton.Show();
                    this.suspectedIndex = b;
                    list.Add(1);
                    break;

                case BubbleUI.Flag.QUESTION:
                    this.ShowHud(flag);
                    this.helpButton.Show();
                    this.helpIndex = b;
                    list.Add(2);
                    break;

                case BubbleUI.Flag.DUEL:
                    this.ShowHud(flag);
                    this.duelButton.Show();
                    this.duelIndex = b;
                    list.Add(3);
                    break;

                case BubbleUI.Flag.BEACH:
                    this.ShowHud(flag);
                    this.beachButton.Show();
                    this.beachIndex = b;
                    list.Add(4);
                    break;
                }
                b = (Byte)(b + 1);
                this.currentFlag.Add(flag);
            }
        }
        Boolean flag2 = false;

        BubbleUI.Flag[] array2 = this.allFlag;
        for (Int32 j = 0; j < (Int32)array2.Length; j++)
        {
            BubbleUI.Flag   flag3  = array2[j];
            BubbleUI.Flag[] array3 = flags;
            for (Int32 k = 0; k < (Int32)array3.Length; k++)
            {
                BubbleUI.Flag flag4 = array3[k];
                if (flag4 == flag3)
                {
                    flag2 = true;
                    break;
                }
            }
            if (!flag2)
            {
                this.Hide(flag3);
            }
            flag2 = false;
        }
        this.grid.Reposition(list.ToArray());
    }