willnationsdev / godot-inheritance-dock

A Godot Engine plugin for a dock that provides inheritance-based Scene/Script/Resource views into the resource folder.
MIT License
48 stars 3 forks source link

Fix 3.1 basic compatability #18

Open youreperfect opened 5 years ago

youreperfect commented 5 years ago

This plugin isn't out-of-the-box compatible with 3.1 but the fix is prety easy - its just updating the enums to have the enum type name. Here are ones I remember doing:

inheritance_dock.gd line 35

const ICONS = {
    Mode.RES_MODE: RES_ICON,
    Mode.SCRIPT_MODE: SCRIPT_ICON,
    Mode.SCENE_MODE: SCENE_ICON
}
const CACHE_MAP = {
    Mode.RES_MODE: Caches.CACHE_RES,
    Mode.SCENE_MODE: Caches.CACHE_SCENE,
    Mode.SCRIPT_MODE: Caches.CACHE_SCRIPT
}

line 270:

                    Mode.RES_MODE:

line 280:

Mode.SCENE_MODE, Mode.SCRIPT_MODE, _:

and so on. In general if you get an error then click the line and add Mode. before the enum value on that line. There are also errors reported for godot_inheritance_dock_plugin.gd but if I remember correctly they were just a side effect of the enum naming thing in inheritance_dock.gd

artism90 commented 1 year ago

This issue has been fixed by #22.