Beispiel #1
0
        private void InitUI()
        {
            InterfaceManager = new CDInterfaceManager();

            musicUI = new ConditionalInterface(() => CanShowMusicPlayUI);
            musicUI.SetState(new MusicPlayUI());

            floatingDisplayUI = new ConditionalInterface(() => true);
            floatingDisplayUI.SetState(new TransparentFloatingDisplayerUI());

            InterfaceManager.Add(musicUI);
            // InterfaceManager.Add(floatingDisplayUI);
        }
Beispiel #2
0
        public GUIManager(TemplateMod mod)
        {
            _mod = mod;

            _toolBarInterface = new UserInterface();
            _toolBarState     = new ToolBarState();
            _toolBarInterface.SetState(_toolBarState);

            foreach (var type in typeof(TemplateUIState).GetEnumValues())
            {
                _canShowUITable.Add((TemplateUIState)type, false);
            }

            _cdInterface = new CDInterfaceManager();
            SetWindows();
        }
        public GUIManager(ServerSideCharacter2 mod)
        {
            _mod = mod;

            _messageDisplayer = new MessageDisplayer();

            _toolBarInterface = new UserInterface();
            _toolBarState     = new ToolBarState();
            _toolBarInterface.SetState(_toolBarState);

            foreach (var type in typeof(SSCUIState).GetEnumValues())
            {
                _canShowUITable.Add((SSCUIState)type, false);
            }

            _cdInterface = new CDInterfaceManager();
            SetWindows();
        }