コード例 #1
0
ファイル: GuiWindow.cs プロジェクト: bsimser/CoM
 /** Override to draw windows title (outside of the content area) */
 public override void Draw()
 {
     if (Title != "")
     {
         TitleLabel.Update();
         TitleLabel.Caption = Title;
         int offset = (Width - (TitleLabel.Width)) / 2;
         TitleLabel.Y = Y - 34;
         TitleLabel.X = X + offset;
         TitleLabel.Draw();
     }
     base.Draw();
 }