Example #1
0
        static void Paint(int StartPosX, int StartPosY, int Scale)
        {
            GraphicsWindow.Clear();
            for (int i = 0; i < bitPicture.GetLength(0); i++)
            {
                for (int j = 0; j < bitPicture.GetLength(1); j++)
                {
                    if (bitPicture[i, j] == -1)
                    {
                        GraphicsWindow.BrushColor = "Red";
                    }
                    else if (bitPicture[i, j] == 2)
                    {
                        GraphicsWindow.BrushColor = "Blue";
                    }
                    else if (bitPicture[i, j] == 0)
                    {
                        GraphicsWindow.BrushColor = "White";
                    }

                    GraphicsWindow.FillRectangle(
                        x: StartPosX + (j - Scale / 2) * Scale,
                        y: StartPosY + (i - Scale / 2) * Scale,
                        width: Scale,
                        height: Scale);
                }
            }
        }
Example #2
0
        public static void HideDisplayResults()
        {
            int    StackPointer  = Stack.Add("UI.HideDisplayResults()");
            string Default_Brush = GraphicsWindow.BrushColor;

            GraphicsWindow.BrushColor = "WHITE";
            GraphicsWindow.FillRectangle(GlobalStatic.UIx - 5, 45, 320, 350);
            GraphicsWindow.BrushColor = Default_Brush;
            for (int i = 0; i < _HideDisplay.Count; i++)
            {
                Controls.HideControl(_HideDisplay[i]);
            }
            Stack.Exit(StackPointer);
        }
Example #3
0
        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);
        }