Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GVar input = GlobalVariables.GetVariable(2);
- Menu PointClickIntMen = PlayerMenus.GetMenuWithName("Interaction");
- Menu DirectIntMen = PlayerMenus.GetMenuWithName("Interaction (Direct)");
- Menu DirectIntMenBackground = PlayerMenus.GetMenuWithName("Interaction background (Direct)");
- Vector2 DirectMenVec = new Vector2(-94.1f, 1);
- switch (input.val)
- {
- case 0: // Point & Click
- AC.KickStarter.settingsManager.movementMethod = MovementMethod.PointAndClick;
- AC.KickStarter.settingsManager.inputMethod = InputMethod.MouseAndKeyboard;
- AC.KickStarter.menuManager.keyboardControlWhenDialogOptions = false;
- // Hotspot interaction Settings
- AC.KickStarter.settingsManager.interactionMethod = AC_InteractionMethod.ChooseInteractionThenHotspot;
- AC.KickStarter.settingsManager.hotspotDetection = HotspotDetection.MouseOver;
- // lock cursor in screen
- AC.KickStarter.settingsManager.lockCursorOnStart = false;
- AC.KickStarter.settingsManager.hideLockedCursor = false;
- AC.KickStarter.cursorManager.cursorDisplay = CursorDisplay.Always;
- PointClickIntMen.positionType = AC_PositionType.Aligned;
- PointClickIntMen.alignment = TextAnchor.UpperRight;
- DirectIntMen.TurnOff();
- DirectIntMenBackground.TurnOff();
- break;
- case 1: // Controller: RelativeToCamera
- // Control methods
- AC.KickStarter.settingsManager.movementMethod = MovementMethod.Direct;
- AC.KickStarter.settingsManager.inputMethod = InputMethod.KeyboardOrController;
- AC.KickStarter.settingsManager.directMovementType = DirectMovementType.RelativeToCamera;
- AC.KickStarter.menuManager.keyboardControlWhenDialogOptions = true;
- // Hotspot interaction settings
- AC.KickStarter.settingsManager.interactionMethod = AC_InteractionMethod.ChooseInteractionThenHotspot;
- AC.KickStarter.settingsManager.hotspotDetection = HotspotDetection.PlayerVicinity;
- AC.KickStarter.settingsManager.hotspotsInVicinity = HotspotsInVicinity.CycleMultiple;
- AC.KickStarter.settingsManager.playerFacesHotspots = true;
- AC.KickStarter.cursorManager.cursorDisplay = CursorDisplay.Never;
- //DirectIntMen.positionType = AC_PositionType.Manual;
- //DirectIntMen.SetCentre(DirectMenVec);
- PointClickIntMen.TurnOff();
- //DirectIntMen.TurnOn();
- AC.PlayerMenus.GetMenuWithName("Interaction").positionType = AC_PositionType.Aligned;
- AC.PlayerMenus.GetMenuWithName("Interaction").alignment = TextAnchor.UpperRight;
- //DirectIntMenBackground.TurnOn();
- AC.PlayerMenus.GetMenuWithName("Interaction").Recalculate();
- break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement