testss
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
using System;
|
||||
|
||||
namespace UnityEditor.Tilemaps
|
||||
{
|
||||
internal class GridBrushesDropdown : FlexibleMenu
|
||||
{
|
||||
public GridBrushesDropdown(IFlexibleMenuItemProvider itemProvider, int selectionIndex, FlexibleMenuModifyItemUI modifyItemUi, Action<int, object> itemClickedCallback, float minWidth)
|
||||
: base(itemProvider, selectionIndex, modifyItemUi, itemClickedCallback)
|
||||
{
|
||||
minTextWidth = minWidth;
|
||||
}
|
||||
|
||||
internal class MenuItemProvider : IFlexibleMenuItemProvider
|
||||
{
|
||||
public int Count()
|
||||
{
|
||||
return GridPaletteBrushes.brushes.Count;
|
||||
}
|
||||
|
||||
public object GetItem(int index)
|
||||
{
|
||||
return GridPaletteBrushes.brushes[index];
|
||||
}
|
||||
|
||||
public int Add(object obj)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public void Replace(int index, object newPresetObject)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public void Remove(int index)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public object Create()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public void Move(int index, int destIndex, bool insertAfterDestIndex)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public string GetName(int index)
|
||||
{
|
||||
return GridPaletteBrushes.brushNames[index];
|
||||
}
|
||||
|
||||
public bool IsModificationAllowed(int index)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public int[] GetSeperatorIndices()
|
||||
{
|
||||
return new int[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user