mirror of
https://github.com/AnnulusGames/Alchemy.git
synced 2025-01-22 08:18:51 -05:00
Add: support LabelText for Button in generic class too
This commit is contained in:
parent
33697c1a69
commit
fc33a6c261
@ -23,6 +23,9 @@ namespace Alchemy.Editor.Elements
|
||||
if (methodInfo.HasCustomAttribute<ButtonAttribute>())
|
||||
{
|
||||
var button = new MethodButton(target, methodInfo);
|
||||
if (methodInfo.TryGetCustomAttribute(out LabelTextAttribute labelText)) {
|
||||
button.SetLableText(labelText.Text);
|
||||
}
|
||||
Add(button);
|
||||
}
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user