Small-Loan-Studio / TGO

0 stars 0 forks source link

Refactor addon detail panes to have each as a sub-scene #81

Open this-is-envy opened 1 month ago

this-is-envy commented 1 month ago

We currently have a lot of logic baked into ObjectsHelper.gd -- this worked okay initially when there was only one thing that were being added and its configuration was fairly simple.

Already though we've expanded to add: Moveable blocks, NPCs, Items, and Switches.

IMO we have two refactors to make this less prone to collapsing under its own weight:

  1. rework moveable blocks, NPCs, and Items to follow the model of Switches that uses a sub-scene for configuration
  2. rework the object addition path to be generic and uniform across each item being added

1 should be pretty straight forward and if we have to cut 2 in order to keep the PR reasonable that's fine but we should file a follow up issue in that case to handle wrapping it up.