Sin descripción
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SelectTool.cs 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using UnityEngine;
  2. namespace UnityEditor.Tilemaps
  3. {
  4. /// <summary>
  5. /// Tool for doing a selection with the Tile Palette
  6. /// </summary>
  7. public sealed class SelectTool : TilemapEditorTool
  8. {
  9. private static class Styles
  10. {
  11. public static string tooltipStringFormat = "|Select an area of the grid ({0})";
  12. public static string shortcutId = GridPaintPaletteWindow.ShortcutIds.k_Select;
  13. public static GUIContent toolContent = EditorGUIUtility.IconContent("Grid.Default", GetTooltipText(tooltipStringFormat, shortcutId));
  14. }
  15. /// <summary>
  16. /// Tooltip String Format for the SelectTool
  17. /// </summary>
  18. protected override string tooltipStringFormat
  19. {
  20. get { return Styles.tooltipStringFormat; }
  21. }
  22. /// <summary>
  23. /// Shortcut Id for the SelectTool
  24. /// </summary>
  25. protected override string shortcutId
  26. {
  27. get { return Styles.shortcutId; }
  28. }
  29. /// <summary>
  30. /// Toolbar Icon for the SelectTool
  31. /// </summary>
  32. public override GUIContent toolbarIcon
  33. {
  34. get { return Styles.toolContent; }
  35. }
  36. }
  37. }