mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-22 03:25:57 +00:00
Changed Visibility of Extension classes to internal
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
namespace PckStudio.Extensions
|
||||
{
|
||||
public enum BlendMode
|
||||
internal enum BlendMode
|
||||
{
|
||||
Add,
|
||||
Subtract,
|
||||
|
||||
@@ -7,7 +7,7 @@ using System.Text;
|
||||
|
||||
namespace PckStudio.Extensions
|
||||
{
|
||||
public struct GraphicsConfig
|
||||
internal struct GraphicsConfig
|
||||
{
|
||||
public GraphicsConfig()
|
||||
{
|
||||
|
||||
@@ -2,27 +2,27 @@
|
||||
|
||||
namespace PckStudio.Extensions
|
||||
{
|
||||
struct ImageSection
|
||||
internal struct ImageSection
|
||||
{
|
||||
public readonly Size Size;
|
||||
public readonly Point Point;
|
||||
public readonly Rectangle Area;
|
||||
|
||||
internal ImageSection(Size sectionSize, int index, ImageLayoutDirection layoutDirection)
|
||||
internal ImageSection(Size originalSize, int index, ImageLayoutDirection layoutDirection)
|
||||
{
|
||||
switch(layoutDirection)
|
||||
{
|
||||
case ImageLayoutDirection.Horizontal:
|
||||
{
|
||||
Size = new Size(sectionSize.Height, sectionSize.Height);
|
||||
Point = new Point(index * sectionSize.Height, 0);
|
||||
Size = new Size(originalSize.Height, originalSize.Height);
|
||||
Point = new Point(index * originalSize.Height, 0);
|
||||
}
|
||||
break;
|
||||
|
||||
case ImageLayoutDirection.Vertical:
|
||||
{
|
||||
Size = new Size(sectionSize.Width, sectionSize.Width);
|
||||
Point = new Point(0, index * sectionSize.Width);
|
||||
Size = new Size(originalSize.Width, originalSize.Width);
|
||||
Point = new Point(0, index * originalSize.Width);
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace PckStudio.Extensions
|
||||
{
|
||||
public static class ListExtensions
|
||||
internal static class ListExtensions
|
||||
{
|
||||
public static IList<T> Swap<T>(this IList<T> list, int index1, int index2)
|
||||
{
|
||||
|
||||
@@ -34,6 +34,5 @@ namespace PckStudio.Extensions
|
||||
string ext = Path.GetExtension(file.Filename);
|
||||
return file.Filename.Remove(file.Filename.Length - (MipMap.Length + 1) - ext.Length) + ext;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user