Files
MovementTests/addons/forge/editor/attributes/AttributeEditorPlugin.cs
Minimata c4be97e0de
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 21s
Create tag and build when new code gets to main / Test (push) Successful in 6m56s
Create tag and build when new code gets to main / Export (push) Successful in 9m3s
added forge addon
2026-02-08 15:16:01 +01:00

35 lines
721 B
C#

// Copyright © Gamesmiths Guild.
#if TOOLS
using Godot;
namespace Gamesmiths.Forge.Godot.Editor.Attributes;
[Tool]
public partial class AttributeEditorPlugin : EditorInspectorPlugin
{
public override bool _CanHandle(GodotObject @object)
{
return @object is Resources.ForgeModifier || @object is Resources.ForgeCue;
}
public override bool _ParseProperty(
GodotObject @object,
Variant.Type type,
string name,
PropertyHint hintType,
string hintString,
PropertyUsageFlags usageFlags,
bool wide)
{
if (name == "Attribute" || name == "CapturedAttribute" || name == "MagnitudeAttribute")
{
AddPropertyEditor(name, new AttributeEditorProperty());
return true;
}
return false;
}
}
#endif