Exemple #1
0
 public CaptionBackground(GameObject obj)
     : base(obj)
 {
     TopBorder = new GOSprite(obj.GetChild(0));
     Border    = new GOSprite(obj.GetChild(1));
     Body      = new GOSprite(obj.GetChild(2));
     Content   = Create <T1>(obj.GetChild(3));
 }
Exemple #2
0
 public CaptionBackground(GameObject obj)
     : base(obj)
 {
     TopBorder = new GOSprite(obj.GetChild(0));
     Caption1  = new GOLocalizableLabel(obj.GetChild(1));
     Caption2  = new GOLocalizableLabel(obj.GetChild(2));
     Caption3  = new GOLocalizableLabel(obj.GetChild(3));
     Caption4  = new GOLocalizableLabel(obj.GetChild(4));
 }
Exemple #3
0
 public Character(GameObject obj)
     : base(obj)
 {
     Name      = new GOLabel(obj.GetChild(0));
     HP        = new GOLabel(obj.GetChild(1));
     MP        = new GOLabel(obj.GetChild(2));
     ATBBar    = new GOProgressBar(obj.GetChild(3));
     TranceBar = new GOProgressBar(obj.GetChild(4));
     Highlight = new GOSprite(obj.GetChild(5));
 }
Exemple #4
0
        public GONavigationButton(GameObject obj)
            : base(obj)
        {
            KeyNavigation = obj.GetExactComponent <UIKeyNavigation>();
            GroupState    = obj.GetExactComponent <ButtonGroupState>();

            Label      = new GOLabel(obj.GetChild(0));
            Highlight  = new GOSprite(obj.GetChild(1));
            Background = new GOThinBackground(obj.GetChild(2));
        }
Exemple #5
0
            public ButtonBack(GameObject obj)
                : base(obj)
            {
                Button         = obj.GetExactComponent <UIButton>();
                BoxCollider    = obj.GetExactComponent <BoxCollider>();
                OnScreenButton = obj.GetExactComponent <OnScreenButton>();

                Background = new GOThinSpriteBackground(obj.GetChild(0));
                Highlight  = new GOSprite(obj.GetChild(1));
                Icon       = new GOSprite(obj.GetChild(2));
            }
Exemple #6
0
            public ButtonRun(GameObject obj)
                : base(obj)
            {
                UIButton[] buttons = obj.GetExactComponents <UIButton>();
                Button1     = buttons[0];
                Button2     = buttons[1];
                BoxCollider = obj.GetExactComponent <BoxCollider>();

                Background = new GOThinSpriteBackground(obj.GetChild(0));
                Highlight  = new GOSprite(obj.GetChild(1));
                Icon       = new GOSprite(obj.GetChild(2));
            }
 public GOThinSpriteBackground(GameObject obj)
     : base(obj)
 {
     Body = new GOSprite(obj.GetChild(1));
 }
 public GOThinBackground(GameObject obj)
     : base(obj)
 {
     Border = new GOSprite(obj.GetChild(0));
 }
Exemple #9
0
 public GOForegroundWidget(GameObject obj)
     : base(obj)
 {
     Highlight  = new GOSprite(obj.GetChild(0));
     Foreground = new GOSprite(obj.GetChild(1));
 }