コード例 #1
0
		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);
		}
コード例 #2
0
ファイル: Theme.cs プロジェクト: RobertCL/MissionPlanner
 public abstract void PaintDropListButton(DropListButton component);