TC_GlobalSettings.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using UnityEngine;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System;
  5. namespace TerrainComposer2
  6. {
  7. [CreateAssetMenu(fileName = "TC_GlobalSettings", menuName = "TerrainComposer2/GlobalSettings")]
  8. public class TC_GlobalSettings : ScriptableObject
  9. {
  10. public bool tooltip;
  11. public Vector3 defaultTerrainSize = new Vector3(2048, 1000, 2048);
  12. public bool SavePreviewTextures = true;
  13. public Color[] previewColors = { Color.red, Color.blue, Color.green, Color.yellow, Color.magenta, Color.cyan, Color.white, Color.grey };
  14. public Color colLayerGroup;
  15. public Color colLayer;
  16. public Color colMaskNodeGroup;
  17. public Color colMaskNode;
  18. public Color colSelectNodeGroup;
  19. public Color colSelectNode;
  20. public Color colSelectItemGroup;
  21. public Color colSelectItem;
  22. public float shelveHeight = 428;
  23. public float shelveRightWidth = 18;
  24. public float outputVSpace;
  25. public float groupVSpace = 25;
  26. public float layerVSpace = 50;
  27. public float layerHSpace = 180;
  28. public float nodeHSpace = 5;
  29. public float bracketHSpace = 10;
  30. public bool showResolutionWarnings = true;
  31. public bool linkScaleToMaskDefault = true;
  32. public bool documentationClicked;
  33. public Rect rect, rect2, rect3, rect4, rect5, rect6, rect7, rect8;
  34. public KeyCode keyZoomIn = KeyCode.Plus;
  35. public KeyCode keyZoomOut = KeyCode.Minus;
  36. public Color GetVisualizeColor(int index)
  37. {
  38. return previewColors[(int)Mathf.Repeat(index, previewColors.Length)];
  39. }
  40. }
  41. }