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