Skip to content

Commit

Permalink
Merge pull request #72 from Yusuke57/fix-typo-subtitle
Browse files Browse the repository at this point in the history
Fix: typo in subtitle
  • Loading branch information
AnnulusGames authored Mar 21, 2024
2 parents bcaeef5 + 59d77ac commit 9b53c07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Alchemy/Assets/Alchemy/Editor/BuiltinAttributeDrawers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,9 @@ public override void OnCreateElement()
};
parent.Insert(parent.IndexOf(TargetElement), title);

if (att.SubitleText != null)
if (att.SubtitleText != null)
{
var subtitle = new Label(att.SubitleText)
var subtitle = new Label(att.SubtitleText)
{
style = {
fontSize = 10f,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,18 +164,18 @@ public sealed class TitleAttribute : Attribute
public TitleAttribute(string titleText)
{
TitleText = titleText;
SubitleText = null;
SubtitleText = null;
}

public TitleAttribute(string titleText, string subtitle)
{
TitleText = titleText;
SubitleText = subtitle;
SubtitleText = subtitle;
}


public string TitleText { get; }
public string SubitleText { get; }
public string SubtitleText { get; }
}

[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method)]
Expand Down

0 comments on commit 9b53c07

Please sign in to comment.