Esempio n. 1
0
        protected UIButton SpawnSubEntry(UITabstrip strip, PositionData <ItemClass.Service> kService)
        {
            UIButton uIButton = strip.AddTab(kService.GetLocalizedName(), _templateButton, false);
            string   text     = kService.GetIconSpriteName();

            uIButton.normalFgSprite   = text;
            uIButton.focusedFgSprite  = text + "Focused";
            uIButton.hoveredFgSprite  = text + "Hovered";
            uIButton.pressedFgSprite  = text + "Pressed";
            uIButton.disabledFgSprite = text + "Disabled";
            uIButton.tooltip          = kService.GetLocalizedName();
            return(uIButton);
        }