Beispiel #1
0
        public Slider Slider(int x, int y,
                             int sizeX, int sizeY,
                             int sliderSizeX, int sliderSizeY,
                             SliderInfo sliderInfo,
                             Texture2D backgroundTexture,
                             Texture2D slider,
                             Texture2D filling,
                             Texture2D border,
                             ARenderStyle style)
        {
            float offSet = 3.0f;

            return(controlFactory.CreateSlider(sliderInfo,
                                               backgroundTexture,
                                               slider,
                                               filling,
                                               border,
                                               new Region(x - offSet, y - offSet, sizeX + offSet * 2, sizeY + offSet * 2),
                                               new Region(x, y, sizeX, sizeY),
                                               new Region(x, y, sliderSizeX, sliderSizeY),
                                               style));
        }