Exemplo n.º 1
0
        public void OnOpen()
        {
            ComboGrid.Clear();

            TBARPlayer plr = TBARPlayer.Get();

            if (plr.IsStandUser)
            {
                DamageStat.DamageType = plr.PlayerStand.StandDamageType;

                DamageStat.DamageScaleText?.SetText(plr.PlayerStand.GetDamageScalingText);

                RangeStat.RangeText?.SetText(plr.PlayerStand.GetEffectiveRangeText);

                Card.SetStand(plr.PlayerStand);

                List <StandCombo> combos = new List <StandCombo>(plr.PlayerStand.GlobalCombos.Count + plr.PlayerStand.NormalCombos.Count);

                combos.AddRange(plr.PlayerStand.GlobalCombos);
                combos.AddRange(plr.PlayerStand.NormalCombos);

                combos.Reverse();

                foreach (StandCombo c in combos)
                {
                    ComboGrid.Add(new ComboPanel(c));
                }
            }

            Recalculate();
            RecalculateChildren();
        }
Exemplo n.º 2
0
	public void setCFunc(ComboGrid cGrid, Recipe rec, clickFunc func) {
		grid = cGrid;
		recipe = rec;
		onClick = func;
	}
Exemplo n.º 3
0
 public void setCFunc(ComboGrid cGrid, Recipe rec, clickFunc func)
 {
     grid    = cGrid;
     recipe  = rec;
     onClick = func;
 }