void OnEnable()
        {
            Mod.Debug(MethodBase.GetCurrentMethod());

            HotkeyHelper.Bind(HOTKEY_FOR_TOGGLE_ATTACK_INDICATOR, HandleToggleAttackIndicator);
            EventBus.Subscribe(this);
        }
예제 #2
0
        public void OnAreaDidLoad()
        {
            Mod.Debug(MethodBase.GetCurrentMethod());

            HotkeyHelper.Bind(HOTKEY_FOR_TOGGLE_HUD, HandleToggleHUD);
            HotkeyHelper.Bind(HOTKEY_FOR_TOGGLE_STEALTH, HandleToggleStealth);
            HotkeyHelper.Bind(HOTKEY_FOR_TOGGLE_AI, HandleToggleAI);
        }
        void OnEnable()
        {
            Mod.Debug(MethodBase.GetCurrentMethod());

            HotkeyHelper.Bind(HOTKEY_FOR_END_TURN, HandleClickEndTurn);
            HotkeyHelper.Bind(HOTKEY_FOR_DELAY, HandleClickDelay);
            HotkeyHelper.Bind(HOTKEY_FOR_FIVE_FOOT_STEP, HandleClickFiveFootStep);
            HotkeyHelper.Bind(HOTKEY_FOR_FULL_ATTACK, HandleClickFullAttack);
        }
예제 #4
0
        public void HandleModEnable()
        {
            Mod.Debug(MethodBase.GetCurrentMethod());

            if (!string.IsNullOrEmpty(LocalizationFileName))
            {
                Local.Import(LocalizationFileName, e => Mod.Error(e));
                LocalizationFileName = Local.FileName;
            }

            if (!Version.TryParse(Mod.Settings.lastModVersion, out Version version) || version < new Version(1, 2, 0))
                ResetSettings();
            else
                Mod.Settings.lastModVersion = Mod.Version.ToString();

            HotkeyHelper.Bind(HOTKEY_FOR_TOGGLE_HUD, HandleToggleHUD);
            HotkeyHelper.Bind(HOTKEY_FOR_TOGGLE_STEALTH, HandleToggleStealth);
            HotkeyHelper.Bind(HOTKEY_FOR_TOGGLE_AI, HandleToggleAI);
            EventBus.Subscribe(this);
        }
예제 #5
0
        void OnEnable()
        {
            Mod.Debug(MethodBase.GetCurrentMethod());

            HotkeyHelper.Bind(HOTKEY_FOR_TOGGLE_MOVEMENT_INDICATOR, HandleToggleMovementIndicator);
        }