示例#1
0
        private float CalculateTextureOffsetY()
        {
            float spritePosition    = -this.frontPanel.Y;
            float textureMarginSize = this.Height * 0.25f;

            return(LiveScrollPanel.CalculateTextureOffset(spritePosition, this.Height, this.textureOffsetY, textureMarginSize, this.MaxTextureHeight, this.frontPanel.Height));
        }
示例#2
0
        private float CalculateTextureOffsetX()
        {
            float spritePosition    = -this.frontPanel.X;
            float textureMarginSize = this.Width * 0.25f;

            return(LiveScrollPanel.CalculateTextureOffset(spritePosition, this.Width, this.textureOffsetX, textureMarginSize, this.MaxTextureWidth, this.frontPanel.Width));
        }