Example #1
0
        /// <summary>
        ///  This method is used to draw the GUI.
        /// </summary>
        public override void Draw()
        {
            ImGui.GetStyle().WindowBorderSize = 0;

            if (drawNetworkDisconnected)
            {
                DrawConnectionErrorOverlay();
            }

            if (drawLogin)
            {
                loginView.Draw();
                DrawLoginOverlay();
            }

            if (drawAppSelectionView)
            {
                float overlayHeight = DrawMainOverlay();

                appSelectionView.Draw(overlayHeight);
            }

            if (drawApp)
            {
                float overlayHeight = DrawpAppOverlay();

                ImGui.SetNextWindowPos(new Vector2(ImGui.GetWindowPos().X, overlayHeight + 10 * PlatformFunctions.ScreenDensity()), ImGuiCond.Once);

                DrawApp();
            }
        }