public static void ShowWindow()
        {
            // Load isolation value:
            IsolatePowerUI = Symbols.IsSymbolDefined("IsolatePowerUI");

            // Load custom input value:
            CustomInput = Symbols.IsSymbolDefined("NoPowerUIInput");

            // Show existing window instance. If one doesn't exist, make one.
            EditorWindow window = EditorWindow.GetWindow(typeof(GeneralSettings));

            // Give it a title:
            window.title = "General Settings";
        }
예제 #2
0
        public static void ShowWindow()
        {
            // Load CompileAOT value:
            CompileAOT = Symbols.IsSymbolDefined("nitroAot");

            // Load No Runtime:
            NoRuntime = Symbols.IsSymbolDefined("NoNitroRuntime");

            // Show existing window instance. If one doesn't exist, make one.
            EditorWindow window = EditorWindow.GetWindow(typeof(NitroSettings));

            // Give it a title:
            window.title = "Nitro Settings";
        }
예제 #3
0
        // Called at 100fps.
        void Update()
        {
            UpdateTimer++;
            if (UpdateTimer < 200)
            {
                return;
            }
            UpdateTimer = 0;
            // Reduced now to once every 2 seconds.

            // Load CompileAOT value, just incase it changed in the actual defines window:
            CompileAOT = Symbols.IsSymbolDefined("nitroAot");
            // Load NoRuntime value, just incase it changed in the actual defines window:
            NoRuntime = Symbols.IsSymbolDefined("NoNitroRuntime");
        }
        // Called at 100fps.
        void Update()
        {
            UpdateTimer++;

            if (UpdateTimer < 200)
            {
                return;
            }

            UpdateTimer = 0;
            // Reduced now to once every 2 seconds.

            // Load isolation value, just incase it changed in the actual defines window:
            IsolatePowerUI = Symbols.IsSymbolDefined("IsolatePowerUI");

            // Load custom input value, just incase it changed in the actual defines window:
            CustomInput = Symbols.IsSymbolDefined("NoPowerUIInput");
        }
예제 #5
0
        public static void ShowWindow()
        {
            // Load CompileAOT value:
            CompileAOT = Symbols.IsSymbolDefined("nitroAot");

            // Load No Runtime:
            NoRuntime = Symbols.IsSymbolDefined("NoNitroRuntime");

            // Show existing window instance. If one doesn't exist, make one.
            EditorWindow window = EditorWindow.GetWindow(typeof(NitroSettings));

            // Give it a title:
                        #if PRE_UNITY5_3
            window.title = "Nitro Settings";
                        #else
            GUIContent title = new GUIContent();
            title.text          = "Nitro Settings";
            window.titleContent = title;
                        #endif
        }
예제 #6
0
 /// <summary>Checks if the symbol has been defined manually.</summary>
 public void Update()
 {
     Active = Symbols.IsSymbolDefined(DefinesSymbol);
 }