using UnityEngine;
namespace UnityEditor.Tilemaps
{
///
/// Tool for doing a flood fill with the Tile Palette
///
public sealed class FillTool : TilemapEditorTool
{
private static class Styles
{
public static string tooltipStringFormat = "|Flood fill with active brush ({0})";
public static string shortcutId = GridPaintPaletteWindow.ShortcutIds.k_Fill;
public static GUIContent toolContent = EditorGUIUtility.IconContent("Grid.FillTool", GetTooltipText(tooltipStringFormat, shortcutId));
}
///
/// Tooltip String Format for the FillTool
///
protected override string tooltipStringFormat
{
get { return Styles.tooltipStringFormat; }
}
///
/// Shortcut Id for the FillTool
///
protected override string shortcutId
{
get { return Styles.shortcutId; }
}
///
/// Toolbar Icon for the FillTool
///
public override GUIContent toolbarIcon
{
get { return Styles.toolContent; }
}
}
}