mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-06-28 02:45:35 +00:00
Core - Refactor ResourceLocation
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace PckStudio.Core.Extensions
|
||||
{
|
||||
@@ -15,6 +17,17 @@ namespace PckStudio.Core.Extensions
|
||||
yield break;
|
||||
}
|
||||
|
||||
public static ImageList ToImageList(this Image[] images)
|
||||
{
|
||||
ImageList imageList = new ImageList
|
||||
{
|
||||
ColorDepth = ColorDepth.Depth32Bit
|
||||
};
|
||||
imageList.Images.AddRange(images);
|
||||
|
||||
return imageList;
|
||||
}
|
||||
|
||||
public static bool EqualsAny<T>(this T type, params T[] items)
|
||||
{
|
||||
foreach (T item in items)
|
||||
|
||||
Reference in New Issue
Block a user