mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 11:39:45 +00:00
rename to palette
This commit is contained in:
1 parent
6de53fb761
commit
d0bbb191c5
3 files changed
+6
-6
No files matched your search
@@ -124,7 +124,7 @@ internal class MiraPluginManager
|
||||
{
|
||||
foreach (var type in assembly.GetTypes())
|
||||
{
|
||||
if (type.GetCustomAttribute<RegisterColorsAttribute>() == null)
|
||||
if (type.GetCustomAttribute<RegisterPalette>() == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
namespace MiraAPI.Utilities.Colors;
|
||||
public sealed class CustomColor
|
||||
{
|
||||
public Color32 MainColor { get; }
|
||||
public Color32 ShadowColor { get; }
|
||||
public StringNames Name { get; }
|
||||
|
||||
public CustomColor(Color32 mainColor, StringNames name)
|
||||
{
|
||||
MainColor = mainColor;
|
||||
@@ -16,8 +20,4 @@ public sealed class CustomColor
|
||||
ShadowColor = shadowColor;
|
||||
Name = name;
|
||||
}
|
||||
|
||||
public Color32 MainColor { get; }
|
||||
public Color32 ShadowColor { get; }
|
||||
public StringNames Name { get; }
|
||||
}
|
||||
+1
-1
@@ -3,4 +3,4 @@
|
||||
namespace MiraAPI.Utilities.Colors;
|
||||
|
||||
[AttributeUsage(AttributeTargets.Class)]
|
||||
public class RegisterColorsAttribute : Attribute;
|
||||
public class RegisterPalette : Attribute;
|
||||
Reference in new issue
Block a user