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 move with the Tile Palette
8 /// </summary>
9 public sealed class MoveTool : TilemapEditorTool
10 {
11 private static class Styles
12 {
13 public static string tooltipStringFormat = "|Move selection with active brush ({0})";
14 public static string shortcutId = GridPaintPaletteWindow.ShortcutIds.k_Move;
15 public static GUIContent toolContent = EditorGUIUtility.IconContent("Grid.MoveTool", GetTooltipText(tooltipStringFormat, shortcutId));
16 }
17
18 /// <summary>
19 /// Tooltip String Format for the MoveTool
20 /// </summary>
21 protected override string tooltipStringFormat
22 {
23 get { return Styles.tooltipStringFormat; }
24 }
25
26 /// <summary>
27 /// Shortcut Id for the MoveTool
28 /// </summary>
29 protected override string shortcutId
30 {
31 get { return Styles.shortcutId; }
32 }
33
34 /// <summary>
35 /// Toolbar Icon for the MoveTool
36 /// </summary>
37 public override GUIContent toolbarIcon
38 {
39 get { return Styles.toolContent; }
40 }
41 }
42}