Exemplo n.º 1
0
        public MenuHandler()
        {
            ScriptCommunicatorHelper = new ScriptCommunicatorHelper("Batman Script");
            ScriptCommunicatorHelper.Init("Batman Script", "Pre-Alpha");

            MainMenu = new UIMenu("Batman Script");
            MainMenu.CalculateMenuPositioning();

            MenuPool = new MenuPool();
            MenuPool.AddMenu(MainMenu);

            FindProfiles();
            BatmanProfile.ProfileActivated += OnProfileActivated;
        }
Exemplo n.º 2
0
        private void UpdateCommunityEvent()
        {
            if (ScriptCommunicatorHelper.IsEventTriggered())
            {
                ScriptCommunicatorHelper.BlockScriptCommunicatorModMenu();
                ScriptCommunicatorHelper.ResetEvent();
                WasEventTriggered = true;
                Script.Wait(100);
                MainMenu.IsVisible = true;
            }

            if (!MainMenu.IsVisible && WasEventTriggered)
            {
                ScriptCommunicatorHelper.UnblockScriptCommunicatorModMenu();
                WasEventTriggered = false;
            }
        }