FloatMods
This commit is contained in:
parent
540c6c8f2f
commit
5d8e45469d
10 changed files with 255 additions and 0 deletions
23
addons/floatmodifiers/FlatModsInspector.cs
Normal file
23
addons/floatmodifiers/FlatModsInspector.cs
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue