public PanelTarget(BattleHUD scene, GameObject obj)
                : base(obj)
            {
                Players     = new GOTable <GONavigationButton>(obj.GetChild(0));
                Enemies     = new GOTable <GONavigationButton>(obj.GetChild(1));
                Buttons     = new ButtonPair(obj.GetChild(2));
                PreventArea = new GOWidgetButton(obj.GetChild(3));
                Captions    = new CaptionBackground(obj.GetChild(4));

                foreach (GONavigationButton button in Players.Entries)
                {
                    button.EventListener.Click    += scene.onClick;
                    button.EventListener.Navigate += scene.OnTargetNavigate;
                }

                foreach (GONavigationButton button in Enemies.Entries)
                {
                    button.EventListener.Click    += scene.onClick;
                    button.EventListener.Navigate += scene.OnTargetNavigate;
                }

                Int32 index = 0;

                AllTargets = new GONavigationButton[Players.Count + Enemies.Count];
                foreach (GONavigationButton button in Players.Entries)
                {
                    AllTargets[index++] = button;
                }
                foreach (GONavigationButton button in Enemies.Entries)
                {
                    AllTargets[index++] = button;
                }
            }
Beispiel #2
0
 public PanelTarget(GameObject obj)
     : base(obj)
 {
     PlayerTable = new GOTable <GONavigationButton>(obj.GetChild(0));
     EnemyTable  = new GOTable <GONavigationButton>(obj.GetChild(1));
     Buttons     = new ButtonPair(obj.GetChild(2));
     PreventArea = new GOWidgetButton(obj.GetChild(3));
     Captions    = new CaptionBackground(obj.GetChild(4));
 }
Beispiel #3
0
 public PanelCommand(GameObject obj)
     : base(obj)
 {
     Attack  = new GONavigationButton(obj.GetChild(0));
     Defend  = new GONavigationButton(obj.GetChild(1));
     Skill1  = new GONavigationButton(obj.GetChild(2));
     Skill2  = new GONavigationButton(obj.GetChild(3));
     Item    = new GONavigationButton(obj.GetChild(4));
     Change  = new GONavigationButton(obj.GetChild(5));
     Caption = new CaptionBackground(obj.GetChild(6));
 }
            public PanelParty(BattleHUD scene, GameObject obj)
                : base(obj)
            {
                _scene = scene;

                Characters = new GOTable <Character>(obj.GetChild(0));
                Captions   = new CaptionBackground(obj.GetChild(1));

                foreach (Character character in Characters.Entries)
                {
                    character.EventListener.Click += OnCharacterClick;
                }
            }
            public PanelCommand(BattleHUD scene, GameObject obj)
                : base(obj)
            {
                _scene = scene;

                Attack  = new GONavigationButton(obj.GetChild(0));
                Defend  = new GONavigationButton(obj.GetChild(1));
                Skill1  = new GONavigationButton(obj.GetChild(2));
                Skill2  = new GONavigationButton(obj.GetChild(3));
                Item    = new GONavigationButton(obj.GetChild(4));
                Change  = new GONavigationButton(obj.GetChild(5));
                Caption = new CaptionBackground(obj.GetChild(6));

                SubscribeOnClick();
            }
Beispiel #6
0
 public PanelParty(GameObject obj)
     : base(obj)
 {
     Table    = new GOTable <Character>(obj.GetChild(0));
     Captions = new CaptionBackground(obj.GetChild(1));
 }
Beispiel #7
0
 public PanelDetail(GameObject obj)
     : base(obj)
 {
     Array   = new GOArray <T>(obj.GetChild(0));
     Caption = new CaptionBackground <GOLocalizableLabel>(obj.GetChild(1));
 }