Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.07 KB | None | 0 0
  1. GVar input = GlobalVariables.GetVariable(2);
  2. Menu PointClickIntMen = PlayerMenus.GetMenuWithName("Interaction");
  3. Menu DirectIntMen = PlayerMenus.GetMenuWithName("Interaction (Direct)");
  4. Menu DirectIntMenBackground = PlayerMenus.GetMenuWithName("Interaction background (Direct)");
  5. Vector2 DirectMenVec = new Vector2(-94.1f, 1);
  6.  
  7. switch (input.val)
  8. {
  9. case 0: // Point & Click
  10.  
  11.  
  12. AC.KickStarter.settingsManager.movementMethod = MovementMethod.PointAndClick;
  13. AC.KickStarter.settingsManager.inputMethod = InputMethod.MouseAndKeyboard;
  14. AC.KickStarter.menuManager.keyboardControlWhenDialogOptions = false;
  15. // Hotspot interaction Settings
  16. AC.KickStarter.settingsManager.interactionMethod = AC_InteractionMethod.ChooseInteractionThenHotspot;
  17. AC.KickStarter.settingsManager.hotspotDetection = HotspotDetection.MouseOver;
  18. // lock cursor in screen
  19. AC.KickStarter.settingsManager.lockCursorOnStart = false;
  20. AC.KickStarter.settingsManager.hideLockedCursor = false;
  21.  
  22. AC.KickStarter.cursorManager.cursorDisplay = CursorDisplay.Always;
  23. PointClickIntMen.positionType = AC_PositionType.Aligned;
  24. PointClickIntMen.alignment = TextAnchor.UpperRight;
  25.  
  26. DirectIntMen.TurnOff();
  27. DirectIntMenBackground.TurnOff();
  28.  
  29. break;
  30.  
  31. case 1: // Controller: RelativeToCamera
  32. // Control methods
  33. AC.KickStarter.settingsManager.movementMethod = MovementMethod.Direct;
  34. AC.KickStarter.settingsManager.inputMethod = InputMethod.KeyboardOrController;
  35. AC.KickStarter.settingsManager.directMovementType = DirectMovementType.RelativeToCamera;
  36. AC.KickStarter.menuManager.keyboardControlWhenDialogOptions = true;
  37. // Hotspot interaction settings
  38. AC.KickStarter.settingsManager.interactionMethod = AC_InteractionMethod.ChooseInteractionThenHotspot;
  39. AC.KickStarter.settingsManager.hotspotDetection = HotspotDetection.PlayerVicinity;
  40. AC.KickStarter.settingsManager.hotspotsInVicinity = HotspotsInVicinity.CycleMultiple;
  41. AC.KickStarter.settingsManager.playerFacesHotspots = true;
  42. AC.KickStarter.cursorManager.cursorDisplay = CursorDisplay.Never;
  43.  
  44.  
  45. //DirectIntMen.positionType = AC_PositionType.Manual;
  46. //DirectIntMen.SetCentre(DirectMenVec);
  47. PointClickIntMen.TurnOff();
  48. //DirectIntMen.TurnOn();
  49. AC.PlayerMenus.GetMenuWithName("Interaction").positionType = AC_PositionType.Aligned;
  50. AC.PlayerMenus.GetMenuWithName("Interaction").alignment = TextAnchor.UpperRight;
  51.  
  52. //DirectIntMenBackground.TurnOn();
  53. AC.PlayerMenus.GetMenuWithName("Interaction").Recalculate();
  54.  
  55. break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement