Пример #1
0
 public void OpenClosePropPanel(bool IsOpen)
 {
     if (IsOpen == true)
     {
         p_testform.Hide();
     }
     else
     {
         p_testform.Show();
     }
 }
Пример #2
0
        public void LoadContent()
        {
            Debuging.UITesting.AddUI(this);

            Color color = Color.Black;

            color *= 0.25f;

            ConsoleWindow = new ConsoleWindow(new PanelProps {
                Size = new Vector2(0, p_ScreenHeight / 3), EntityAnchor = Anchor.TopLeft, Backgroundtexture = SpritesData.B_BGSprite, OverlayColor = color
            });

            Root.AddChild(ConsoleWindow);

            ConsoleTextWriter = new ConsoleTextWriter();

            LogHelper.Log(LogTarget.Console, LogLevel.Info, this + ": Initialize");
            LogHelper.Log(LogTarget.Console, LogLevel.Info, this + ": Initialize");
            LogHelper.Log(LogTarget.Console, LogLevel.Info, this + ": Initialize");
            LogHelper.Log(LogTarget.Console, LogLevel.Info, this + ": Initialize");
            LogHelper.Log(LogTarget.Console, LogLevel.Info, this + ": Initialize");
            LogHelper.Log(LogTarget.Console, LogLevel.Info, this + ": Initialize");
            LogHelper.Log(LogTarget.Console, LogLevel.Info, this + ": Initialize");
            LogHelper.Log(LogTarget.Console, LogLevel.Info, this + ": Initialize");
            LogHelper.Log(LogTarget.Console, LogLevel.Info, this + ": Initialize");
            LogHelper.Log(LogTarget.Console, LogLevel.Info, this + ": Initialize");
            LogHelper.Log(LogTarget.Console, LogLevel.Info, this + ": Initialize");
            LogHelper.Log(LogTarget.Console, LogLevel.Info, this + ": Initialize");
            LogHelper.Log(LogTarget.Console, LogLevel.Info, this + ": Initialize");
            LogHelper.Log(LogTarget.Console, LogLevel.Info, this + ": Initialize");
            LogHelper.Log(LogTarget.Console, LogLevel.Info, this + ": Initialize");
            LogHelper.Log(LogTarget.Console, LogLevel.Info, this + ": Initialize");
            LogHelper.Log(LogTarget.Console, LogLevel.Info, this + ": Initialize");
            LogHelper.Log(LogTarget.Console, LogLevel.Info, this + ": Initialize");
            LogHelper.Log(LogTarget.Console, LogLevel.Info, this + ": Initialize");
            LogHelper.Log(LogTarget.Console, LogLevel.Info, this + ": Initialize");
            LogHelper.Log(LogTarget.Console, LogLevel.Info, this + ": Initialize");
            LogHelper.Log(LogTarget.Console, LogLevel.Info, this + ": Initialize");
            LogHelper.Log(LogTarget.Console, LogLevel.Info, this + ": Initialize");
            LogHelper.Log(LogTarget.Console, LogLevel.Info, this + ": Initialize");
            LogHelper.Log(LogTarget.Console, LogLevel.Info, this + ": Initialize");
            LogHelper.Log(LogTarget.Console, LogLevel.Info, this + ": Initialize");

            drawUtils  = new DrawUtils();
            debugUtils = new DebugUtils();

            p_testform = new PropertiesPanel();

            p_testform.Init();

            p_testform.FormClosed += P_testform_FormClosed;

            p_Cursors[0] = p_ContentManager.Load <Texture2D>("Textures/Cursors/Default_Cursor");
            p_Cursors[1] = p_ContentManager.Load <Texture2D>("Textures/Cursors/Default_S_BL");
            p_Cursors[2] = p_ContentManager.Load <Texture2D>("Textures/Cursors/Default_S_BR");
            p_Cursors[3] = p_ContentManager.Load <Texture2D>("Textures/Cursors/Default_S_Horz");
            p_Cursors[4] = p_ContentManager.Load <Texture2D>("Textures/Cursors/Default_S_Vert");
            p_Cursors[5] = p_ContentManager.Load <Texture2D>("Textures/Cursors/Default_S_Dragging");

            p_CursorTexture = p_Cursors[0];

            p_Cursor = p_Cursors[0];

            p_testform.Hide();
        }