Skip to content

Commit

Permalink
Moved buttons from info tab to the top
Browse files Browse the repository at this point in the history
  • Loading branch information
rurre committed Feb 28, 2024
1 parent f100f04 commit b6ed066
Show file tree
Hide file tree
Showing 14 changed files with 571 additions and 141 deletions.
8 changes: 4 additions & 4 deletions Editor/Data/PumkinsDataStructures.cs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ static void Reload()
fixedWidth = 20f,
fixedHeight = 20f,
imagePosition = ImagePosition.ImageOnly,
padding = new RectOffset(0, 0, 0, 0),
padding = new RectOffset(2, 2, 2, 2),
};

BigIconButton = new GUIStyle(BigButton);
Expand Down Expand Up @@ -276,7 +276,7 @@ static void Reload()
public struct Icons
{
const string FinalIKIconsPath = "Assets/Plugins/RootMotion/FinalIK/Gizmos";

public static Texture2D Star { get; internal set; }
public static Texture2D CsScript { get; internal set; }
public static Texture2D Transform { get; internal set; }
Expand Down Expand Up @@ -319,7 +319,7 @@ public struct Icons

public static Texture2D LinkIcon { get; internal set; }
public static Texture2D Camera { get; internal set; }

public static Texture2D FinalIK_CCDIK { get; internal set; }
public static Texture2D FINALIK_LimbIK { get; internal set; }
public static Texture2D FinalIK_RotationLimits { get; internal set; }
Expand Down Expand Up @@ -366,7 +366,7 @@ static Icons()
Refresh = EditorGUIUtility.FindTexture("TreeEditor.Refresh");

#if PUMKIN_FINALIK

FinalIK_CCDIK = AssetDatabase.LoadAssetAtPath<Texture2D>($"{FinalIKIconsPath}/CCDIK Icon.png");
FINALIK_LimbIK = AssetDatabase.LoadAssetAtPath<Texture2D>($"{FinalIKIconsPath}/LimbIK Icon.png");
FinalIK_RotationLimits = AssetDatabase.LoadAssetAtPath<Texture2D>($"{FinalIKIconsPath}/RotationLimitAngle Icon.png");
Expand Down
18 changes: 13 additions & 5 deletions Editor/PumkinsAvatarTools_UI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ public void OnGUI()
{
EditorGUILayout.LabelField(Strings.Main.title, Styles.Label_mainTitle);

if(GUILayout.Button(Icons.KofiIcon, Styles.IconButton))
Application.OpenURL(Strings.LINK_DONATION);

if(GUILayout.Button(Icons.DiscordIcon, Styles.IconButton))
Application.OpenURL(Strings.LINK_DISCORD);

if(GUILayout.Button(Icons.GithubIcon, Styles.IconButton))
Application.OpenURL(Strings.LINK_GITHUB);

GUILayout.Space(4);

if(GUILayout.Button(Icons.Settings, Styles.IconButton))
Settings._openedSettings = !Settings._openedSettings;
}
Expand Down Expand Up @@ -169,7 +180,8 @@ void DrawMainGUI()

EditorGUILayout.Space();

DrawInfoMenuGUI();
// It's mostly useless so we're moving buttons to the top
//DrawInfoMenuGUI();

Helpers.DrawGUILine();
}
Expand Down Expand Up @@ -1597,10 +1609,6 @@ void DrawInfoMenuGUI()
{
Application.OpenURL(Strings.LINK_GITHUB);
}
if(GUILayout.Button(new GUIContent(Strings.Buttons.openHelpPage, Icons.Help)))
{
Application.OpenURL(Strings.LINK_GITHUB + "wiki");
}
}
GUILayout.EndHorizontal();

Expand Down
69 changes: 54 additions & 15 deletions Editor/Resources/Icons/bone-icon.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

69 changes: 54 additions & 15 deletions Editor/Resources/Icons/bonecollider-icon.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b6ed066

Please sign in to comment.