예제 #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);
 }