コード例 #1
0
ファイル: Button.cs プロジェクト: eriksk/OGUI
 public override void Draw(SpriteBatch sb, Point position)
 {
     sb.Draw(GuiService.Pixel, new Rectangle(position.X + area.X, position.Y + area.X, area.Width, area.Height), Color.Black * 0.4f);
     sb.DrawBorder(GuiService.Pixel, new Rectangle(position.X + area.X, position.Y + area.X, area.Width, area.Height), Color.Black);
     sb.DrawString(GuiService.font, name, new Vector2(position.X + area.Center.X, position.Y + area.Center.Y), Color.White, 0f, textOrigin, 1f, SpriteEffects.None, 1f);
 }