Ejemplo n.º 1
0
        public ImGuiManager(ImGuiOptions options = null)
        {
            if (options == null)
            {
                options = new ImGuiOptions();
            }

            _gameWindowFirstPosition = options._gameWindowFirstPosition;
            _gameWindowTitle         = options._gameWindowTitle;
            _gameWindowFlags         = options._gameWindowFlags;

            LoadSettings();
            _renderer = new ImGuiRenderer(Core.Instance);

            _renderer.RebuildFontAtlas(options);
            Core.Emitter.AddObserver(CoreEvents.SceneChanged, OnSceneChanged);
            NezImGuiThemes.DarkTheme1();

            // find all Scenes
            _sceneSubclasses = ReflectionUtils.GetAllSubclasses(typeof(Scene), true);

            // tone down indent
            ImGui.GetStyle().IndentSpacing = 12;

            // find all themes
            _themes = typeof(NezImGuiThemes).GetMethods(System.Reflection.BindingFlags.Static |
                                                        System.Reflection.BindingFlags.Public);
        }
Ejemplo n.º 2
0
        void applyTheme()
        {
            var style = ImGui.GetStyle();

            //style.Colors[(int)ImGuiCol.FrameBg] = new Num.Vector4( 0.45f, 0.51f, 0.57f, 0.54f );
            NezImGuiThemes.photoshopDark();
        }
Ejemplo n.º 3
0
        public ImGuiManager(ImGuiOptions options = null)
        {
            loadSettings();
            _renderer = new ImGuiRenderer(Core.instance);

            _renderer.rebuildFontAtlas(options);
            Core.emitter.addObserver(CoreEvents.SceneChanged, onSceneChanged);
            NezImGuiThemes.darkTheme1();

            // find all Scenes
            _sceneSubclasses = ReflectionUtils.getAllSubclasses(typeof(Scene), true);

            // tone down indent
            ImGui.GetStyle().IndentSpacing = 12;

            // find all themes
            _themes = typeof(NezImGuiThemes).GetMethods(System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.Public);
        }