Ejemplo n.º 1
0
    public PartySelectGroup(Summary1 s1)
    {
        set1(s1);

        for (int t1 = 0; t1 < max1(); t1++)
        {
            party_select[t1] = new PartySelect(s1, t1);
        }

        party_camera_control = new PartyCameraControl(s1);



        {
            int length1 = 64;
            int length2 = 6;

            party_save = new int[length1][];

            for (int t1 = 0; t1 < length1; t1++)
            {
                party_save[t1] = new int[length2];

                for (int t2 = 0; t2 < length2; t2++)
                {
                    party_save[t1][t2] = s1.am1.character_null_num();
                }
            }

            //    m1.msbox();
        }
    }
Ejemplo n.º 2
0
        public ActionResult GetPartiesSelect()
        {
            List <PartySelect> partyDetails = new List <PartySelect>();
            var partSelectdetails           = masterDal.ReadPartyDetails();

            foreach (var data in partSelectdetails)
            {
                PartySelect psObj = new PartySelect();
                psObj.partyId   = data.partyId;
                psObj.partyName = data.partyName;
                partyDetails.Add(psObj);
            }
            return(Json(partyDetails, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 3
0
 public override Boolean OnKeyConfirm(GameObject go)
 {
     if (base.OnKeyConfirm(go))
     {
         if (ButtonGroupState.ActiveGroup == SelectCharGroupButton)
         {
             FF9Sfx.FF9SFX_Play(103);
             this.currentCharacterSelect = this.GetCurrentSelect(go);
             this.currentCharacterId     = this.GetCurrentId(go);
             ButtonGroupState.SetCursorStartSelect((this.currentCharacterSelect.Group != Mode.Menu) ? go.GetChild(0) : go.GetChild(2), MoveCharGroupButton);
             ButtonGroupState.RemoveCursorMemorize(MoveCharGroupButton);
             ButtonGroupState.ActiveGroup = MoveCharGroupButton;
             ButtonGroupState.HoldActiveStateOnGroup(SelectCharGroupButton);
             foreach (CharacterOutsidePartyHud current in this.outsidePartyHudList)
             {
                 ButtonGroupState.SetButtonEnable(current.MoveButton, this.currentCharacterId == FF9PARTY_NONE || !this.info.fix[this.currentCharacterId]);
             }
         }
         else if (ButtonGroupState.ActiveGroup == MoveCharGroupButton)
         {
             PartySelect currentSelect = this.GetCurrentSelect(go);
             Byte        currentId     = this.GetCurrentId(go);
             if (this.currentCharacterSelect.Group == Mode.Select && currentId != FF9PARTY_NONE && this.info.fix[currentId])
             {
                 FF9Sfx.FF9SFX_Play(102);
             }
             else
             {
                 FF9Sfx.FF9SFX_Play(103);
                 this.SwapCharacter(this.currentCharacterSelect, currentSelect);
                 this.DisplayCharacter();
                 this.DisplayCharacterInfo(this.currentCharacterId);
                 ButtonGroupState.SetCursorMemorize(go.transform.parent.gameObject, SelectCharGroupButton);
                 ButtonGroupState.ActiveGroup = SelectCharGroupButton;
             }
         }
     }
     return(true);
 }
Ejemplo n.º 4
0
    private void SwapCharacter(PartySelect oldSelect, PartySelect newSelect)
    {
        Byte b  = this.currentCharacterId;
        Byte b2 = FF9PARTY_NONE;

        if (newSelect.Group == Mode.Menu)
        {
            b2 = this.info.menu[newSelect.Index];
            this.info.menu[newSelect.Index] = b;
        }
        else if (newSelect.Group == Mode.Select)
        {
            b2 = this.info.select[newSelect.Index];
            this.info.select[newSelect.Index] = b;
        }
        if (oldSelect.Group == Mode.Menu)
        {
            this.info.menu[oldSelect.Index] = b2;
        }
        else if (oldSelect.Group == Mode.Select)
        {
            this.info.select[oldSelect.Index] = b2;
        }
    }