Example #1
0
 protected virtual void Start()
 {
     defaultCameraSpeed = CameraMoveSpeed;
     lockOnHotkey       = new KeyboardShortcutHotkey(LockOnPluginCore.LockOnKey.Value, 0.4f);
     prevCharaHotkey    = new KeyboardShortcutHotkey(LockOnPluginCore.PrevCharaKey.Value);
     nextCharaHotkey    = new KeyboardShortcutHotkey(LockOnPluginCore.NextCharaKey.Value);
 }
Example #2
0
        protected virtual bool LoadSettings()
        {
            trackingSpeedNormal    = LockOnPlugin.TrackingSpeedNormal.Value;
            showInfoMsg            = LockOnPlugin.ShowInfoMsg.Value;
            manageCursorVisibility = true;
            CameraTargetTex        = false;
            scrollThroughMalesToo  = LockOnPlugin.ScrollThroughMalesToo.Value;
            breastCounterForce     = 0.07f;
            lockLeashLength        = LockOnPlugin.LockLeashLength.Value;
            autoSwitchLock         = LockOnPlugin.AutoSwitchLock.Value;
            unlockHSceneCam        = true;

            try
            {
                for (int i = 0; i < 4; i++)
                {
                    if (GamePad.GetState((PlayerIndex)i).IsConnected)
                    {
                        controllerIndex = (PlayerIndex)i;
                        break;
                    }
                }

                controllerEnabled    = true;
                controllerMoveSpeed  = 0.3f;
                controllerZoomSpeed  = 0.2f;
                controllerRotSpeed   = 0.4f;
                controllerInvertX    = false;
                controllerInvertY    = false;
                controllerSwapSticks = false;
            }
            catch (DllNotFoundException ex)
            {
                Console.WriteLine(ex);
                controllerEnabled = false;
            }

            lockOnHotkey    = new KeyboardShortcutHotkey(LockOnPlugin.LockOnKey.Value, 0.4f);
            lockOnGuiHotkey = new KeyboardShortcutHotkey(LockOnPlugin.GuiHotkey.Value);
            prevCharaHotkey = new KeyboardShortcutHotkey(LockOnPlugin.PrevCharaKey.Value);
            nextCharaHotkey = new KeyboardShortcutHotkey(LockOnPlugin.NextCharaKey.Value);

            return(true);
        }