public override void PaintDropListButton(DropListButton component)
		{
			SubImage button = null;

			switch(component.GetStatus())
			{
			case EButtonStatus.Normal:
				{
					button=scrollBarVerticalBottomNormal;
					break;
				}
			case EButtonStatus.Hover:
				{
					button=scrollBarVerticalBottomHover;
					break;
				}
			case EButtonStatus.Pressed:
				{
					button=scrollBarVerticalBottomNormal;
					break;
				}
			}
			Position origin= UI.Instance.GetOrigin();
            GL.Enable(EnableCap.Texture2D);
            GL.Color3(1f, 1f, 1f);
            button.Paint(origin.X + component.Position.X, 
                         origin.Y + component.Position.Y, 
                         origin.X + component.Position.X + component.Size.width,
                         origin.Y + component.Position.Y + component.Size.height);
		}
Beispiel #2
0
 public abstract void PaintDropListButton(DropListButton component);