コード例 #1
0
ファイル: DBM.cs プロジェクト: 65001/DBM-CSharp
        static void DisplayHelper()
        {
            int    StackPointer  = Stack.Add("UI.DisplayHelper");
            string Default_Brush = GraphicsWindow.BrushColor;

            GraphicsWindow.BrushColor = "WHITE";
            GraphicsWindow.FillRectangle(GlobalStatic.UIx - 5, 45, 320, 350);
            GraphicsWindow.BrushColor = Default_Brush;


            GraphicsWindow.DrawRectangle(GlobalStatic.UIx, 50, 310, 340);
            GraphicsWindow.FontSize = GlobalStatic.DefaultFontSize + 3;
            GraphicsWindow.DrawText(GlobalStatic.UIx + 100, 52, Language.Localization["Display Settings"]);
            GraphicsWindow.DrawText(GlobalStatic.UIx + 20, 78, Language.Localization["Sort by"]);
            GraphicsWindow.DrawText(GlobalStatic.UIx + 100, 150, Language.Localization["Search Settings"]);
            GraphicsWindow.DrawText(GlobalStatic.UIx + 20, 180, Language.Localization["Search in"]);
            GraphicsWindow.DrawText(GlobalStatic.UIx + 20, 210, Language.Localization["Search"] + ":");
            GraphicsWindow.DrawText(GlobalStatic.UIx + 127, 290, Language.Localization["Functions"] + ":");
            Stack.Exit(StackPointer);
        }
コード例 #2
0
 public void DrawPoint(int x, int y)
 {
     GraphicsWindow.PenColor = "DarkBlue";
     GraphicsWindow.PenWidth = 2;
     GraphicsWindow.DrawRectangle(x * SIZE, y * SIZE, SIZE, SIZE);
 }
コード例 #3
0
 public void HidePoint(int x, int y)
 {
     GraphicsWindow.PenColor = GraphicsWindow.BackgroundColor;
     GraphicsWindow.PenWidth = 3;
     GraphicsWindow.DrawRectangle(x * SIZE, y * SIZE, SIZE, SIZE);
 }
コード例 #4
0
ファイル: House.cs プロジェクト: xxxPVLxxxVV/Houses
 public void Draw()
 {
     GraphicsWindow.DrawRectangle(x, y, size, size);
     GraphicsWindow.DrawTriangle(x, y, x + size / 2, y - size / 2, x + size, y);
     GraphicsWindow.DrawRectangle(x + size / 4, y + size / 4, size / 2, size / 2);
 }