Nenhuma descrição
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using UnityEditor.EditorTools;
  2. using UnityEngine;
  3. namespace UnityEditor.Tilemaps
  4. {
  5. /// <summary>
  6. /// Tool for doing a box fill with the Tile Palette
  7. /// </summary>
  8. //[EditorTool("Box Tool", typeof(GridLayout))]
  9. public sealed class BoxTool : TilemapEditorTool
  10. {
  11. private static class Styles
  12. {
  13. public static string tooltipStringFormat = "|Paint a filled box with active brush ({0})";
  14. public static string shortcutId = "Grid Painting/Rectangle";
  15. public static GUIContent toolContent = EditorGUIUtility.IconContent("Grid.BoxTool", GetTooltipText(tooltipStringFormat, shortcutId));
  16. }
  17. /// <summary>
  18. /// Tooltip String Format for the BoxTool
  19. /// </summary>
  20. protected override string tooltipStringFormat
  21. {
  22. get { return Styles.tooltipStringFormat; }
  23. }
  24. /// <summary>
  25. /// Shortcut Id for the BoxTool
  26. /// </summary>
  27. protected override string shortcutId
  28. {
  29. get { return Styles.shortcutId; }
  30. }
  31. /// <summary>
  32. /// Toolbar Icon for the BoxTool
  33. /// </summary>
  34. public override GUIContent toolbarIcon
  35. {
  36. get { return Styles.toolContent; }
  37. }
  38. }
  39. }