Ejemplo n.º 1
0
        internal void Awake()
        {
            Instance = this;

            new Harmony(GUID).PatchAll();

            StartKey     = Config.Bind(CTG_KEYBINDINGS, "Start key", KeyCode.F8);
            StopKey      = Config.Bind(CTG_KEYBINDINGS, "Stop key", KeyCode.F9);
            ConditionKey = Config.Bind(CTG_KEYBINDINGS, "Cycle auto-stop condition key", KeyCode.F10);

            m_currentStopCondition = 0;
        }
Ejemplo n.º 2
0
        internal void Awake()
        {
            Instance = this;

            var harmony = new Harmony(GUID);

            harmony.PatchAll();

            LoadSettings();

            m_currentStopCondition = 0;

            StartKey     = (KeyCode)Enum.Parse(typeof(KeyCode), settings.StartKey);
            StopKey      = (KeyCode)Enum.Parse(typeof(KeyCode), settings.StopKey);
            ConditionKey = (KeyCode)Enum.Parse(typeof(KeyCode), settings.ConditionKey);
        }
Ejemplo n.º 3
0
        internal void Awake()
        {
            Instance = this;

            new Harmony(GUID).PatchAll();

            StartKey     = Config.Bind(CTG_KEYBINDINGS, "Start key", KeyCode.F8);
            StopKey      = Config.Bind(CTG_KEYBINDINGS, "Stop key", KeyCode.F9);
            ConditionKey = Config.Bind(CTG_KEYBINDINGS, "Cycle auto-stop condition key", KeyCode.F10);

            m_currentStopCondition = 0;

            //StartKey = (KeyCode)Enum.Parse(typeof(KeyCode), settings.StartKey);
            //StopKey = (KeyCode)Enum.Parse(typeof(KeyCode), settings.StopKey);
            //ConditionKey = (KeyCode)Enum.Parse(typeof(KeyCode), settings.ConditionKey);
        }