FloatMods

This commit is contained in:
Rendo 2025-06-22 23:28:43 +05:00
commit 5d8e45469d
10 changed files with 255 additions and 0 deletions

View file

@ -0,0 +1,23 @@
#if TOOLS
using Godot;
public partial class FlatModsInspector : EditorInspectorPlugin
{
public override bool _CanHandle(GodotObject @object)
{
return true;
}
public override bool _ParseProperty(GodotObject @object, Variant.Type type, string name, PropertyHint hintType, string hintString, PropertyUsageFlags usageFlags, bool wide)
{
if (hintString == "FloatModifiers")
{
AddPropertyEditor(name, new FloatModsProperty());
return true;
}
return false;
}
}
#endif