Skip to content

Inspector Changes

Compare
Choose a tag to compare
@Nebby1999 Nebby1999 released this 08 Dec 16:25

0.2.2

Inspector Changes

This minor update to RoR2EditorKit brings QoL changes to the inspector system it has...

HGButton Inspector

Anreol, an user from the ror2 modding discord notified me that there was a Type used for UI controllers for the Buttons ingame. the type itself being HGButton. After talking with Ben from Hopoo Games, i've learned that the HGButtonInspector needs its own custom inspector for it to work properly, otherwise it would show the default ButtonEditor (The inspector used for the Button component).

After receiving an image detailing how the button looks on their end, i proceeded to create a new inspector for this type.

Inspector Changes

While working on the HGButton Inspector, i noticed that one of the key features of the Extended Inspector class (That is, enabling or disabling it via a toggle on the HeaderGUI) wouldn't work for Components.

As Such, i decided to extend further the ExtendedInspector class, and created the ComponentInspector and ScriptableObject Inspector.

As their names suggest, any component inspector should ideally inherit from ComponentInspector and any Scriptable Object inspector should inherit from the other one, Both inherit the framework for settings and utility methods the extended inspector has. While their main difference is how the toggle box is drawn.