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