Skip to content

Commit

Permalink
-normalize
Browse files Browse the repository at this point in the history
  • Loading branch information
aprius committed Oct 4, 2024
1 parent effcac5 commit e37ae6b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 81 deletions.
41 changes: 0 additions & 41 deletions Assets/Heart/Common/Editor/EditorResources.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,47 +30,6 @@ public static class EditorResources
public static Texture2D IconPopup => ProjectDatabase.FindAssetWithPath<Texture2D>("icon_popup.png", RELATIVE_PATH);
public static Texture2D IconYellowAudioSource => ProjectDatabase.FindAssetWithPath<Texture2D>("icon_yellow_audiosource.png", RELATIVE_PATH);

public static Texture2D BoxContentDark
{
get
{
TextureCached.TryGetValue(nameof(BoxContentDark), out var tex);

if (tex != null) return tex;
tex = Editor.ConvertToTexture(
"iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAD1BMVEVEREQlJSUmJiYtLS04ODhTxJsAAAAAJklEQVQI12NQYIAAGIMZxmBiEIAwGKnOQFhhDKaBlLOiIBAImQAAdGYChuP2NCcAAAAASUVORK5CYII=");
TextureCached[nameof(BoxContentDark)] = tex;
return tex;
}
}

public static Texture2D BoxBackgroundDark
{
get
{
TextureCached.TryGetValue(nameof(BoxBackgroundDark), out var tex);

if (tex != null) return tex;
tex = Editor.ConvertToTexture(
"iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAD1BMVEVEREQlJSUtLS0mJiY4ODhE6guiAAAAJ0lEQVQI12NwMhQEAmEVBiUGEABSBhAGM4MAhMFIdQbcCrilcGcAAP3gA3XIoRcnAAAAAElFTkSuQmCC");
TextureCached[nameof(BoxBackgroundDark)] = tex;
return tex;
}
}

public static Texture2D EvenBackground
{
get
{
TextureCached.TryGetValue(nameof(EvenBackground), out var tex);

if (tex != null) return tex;
tex = Editor.ConvertToTexture("iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFAQMAAAC3obSmAAAAA1BMVEVEREQ1TRdOAAAACklEQVQI12OAAwAACgABaQY5MgAAAABJRU5ErkJggg==");
TextureCached[nameof(EvenBackground)] = tex;
return tex;
}
}

public static Texture2D IconTreeMapCurrent
{
get
Expand Down
40 changes: 0 additions & 40 deletions Assets/Heart/Common/Editor/Uniform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.Linq;
using UnityEditor;
using UnityEngine;
using Object = UnityEngine.Object;

namespace PancakeEditor.Common
{
Expand Down Expand Up @@ -35,45 +34,6 @@ public struct Uniform

#region prop

public static GUIStyle ContentList
{
get
{
if (contentList != null) return contentList;
contentList = new GUIStyle {border = new RectOffset(2, 2, 2, 2), normal = {background = EditorResources.EvenBackground}};
return contentList;
}
}

public static GUIStyle BoxContent
{
get
{
if (contentBox != null) return contentBox;
contentBox = new GUIStyle
{
border = new RectOffset(2, 2, 2, 2),
normal = {background = EditorResources.BoxContentDark, scaledBackgrounds = new[] {EditorResources.BoxContentDark}}
};
return contentBox;
}
}

public static GUIStyle Box
{
get
{
if (box != null) return box;
box = new GUIStyle
{
border = new RectOffset(2, 2, 2, 2),
margin = new RectOffset(2, 2, 2, 2),
normal = {background = EditorResources.BoxBackgroundDark, scaledBackgrounds = new[] {EditorResources.BoxBackgroundDark}}
};
return box;
}
}

public static GUIStyle FoldoutButton
{
get
Expand Down

0 comments on commit e37ae6b

Please sign in to comment.