Exemplo n.º 1
0
    private void OnGUI()
    {
        if (isDebugMenu)
        {
            _windowRect.x = Screen.width / 2 - _windowRect.width / 2;
            _windowRect.y = Screen.height / 2 - _windowRect.height / 2;
            GUILayout.Window(
                GetHashCode(), _windowRect, (id) =>
            {
                using (var v = new GUILayout.VerticalScope(GUILayout.MinWidth(300f)))
                {
                    blockManager.DebugMenu();
                    etherscan.DebugMenu();

                    bool isCalib = GUILayout.Toggle(isCalibrationpattern, "Disp CalibrationPattern");
                    if (isCalib != isCalibrationpattern)
                    {
                        UpdateCanvas(isCalib);
                    }
                }

                GUI.DragWindow();
            },
                "Settings");
        }
    }