protected override void LoadRenderers()
        {
            _default = LoadRenderer <SlidingDoorRenderer>(Skin, "button");
            _hover   = LoadRenderer <SlidingDoorRenderer>(Skin, "button_hover");
            _pressed = LoadRenderer <SlidingDoorRenderer>(Skin, "button_pushed");

            switch (OpenDirection)
            {
            case CardinalDirection.North: {
                _dropDownDark  = LoadRenderer <SlidingDoorRenderer>(Skin, "dark_drop_down_inverted");
                _dropDownLight = LoadRenderer <SlidingDoorRenderer>(Skin, "light_drop_down_inverted");
                _dropDownHover = LoadRenderer <SlidingDoorRenderer>(Skin, "hover_drop_down_inverted");
                break;
            }

            case CardinalDirection.South: {
                _dropDownDark  = LoadRenderer <SlidingDoorRenderer>(Skin, "dark_drop_down");
                _dropDownLight = LoadRenderer <SlidingDoorRenderer>(Skin, "light_drop_down");
                _dropDownHover = LoadRenderer <SlidingDoorRenderer>(Skin, "hover_drop_down");
                break;
            }
            }

            _dropDownRender = LoadRenderer <IconRenderer>(Skin, "drop_down");
            _textRenderer   = RenderManager.SpriteFonts[RenderManager.DefaultFontName];
        }
示例#2
0
        protected override void LoadRenderers()
        {
            _default = LoadRenderer <SlidingDoorRenderer>(Skin, "button");
            _hover   = LoadRenderer <SlidingDoorRenderer>(Skin, "button_hover");
            _pressed = LoadRenderer <SlidingDoorRenderer>(Skin, "button_pushed");

            _textRenderer = RenderManager.SpriteFonts[FontName];
        }
示例#3
0
 protected override void LoadRenderers()
 {
     _slider         = LoadRenderer <SlidingDoorRenderer>(Skin, "scrollbar_holder");
     _selectedSlider = LoadRenderer <SlidingDoorRenderer>(Skin, "scrollbar_bar");
     _grip           = LoadRenderer <IconRenderer>(Skin, "grip");
 }