nwnxee / unified

Binaries available under the Releases tab on Github
https://nwnxee.github.io/unified
GNU General Public License v3.0
129 stars 92 forks source link

Feature request: DM Chooser and Creator windows/data added to nwnx_events #1721

Open GMXanther opened 9 months ago

GMXanther commented 9 months ago

Something like these:

NWNX_ON_DM_CHOOSER_OPEN_BEFORE NWNX_ON_DM_CHOOSER_OPEN_AFTER NWNX_ON_DM_CREATOR_OPEN_BEFORE NWNX_ON_DM_CREATOR_OPEN_AFTER

The use case with SkipEvent would be similar to the other DM functions that are currently in the events, which can be helpful to allow/disallow certain features to DM clients such as NWNX_ON_DM_GIVE_ITEM_BEFORE or NWNX_ON_DM_SPAWN_OBJECT_BEFORE.

In this case, being able to block the palette windows would enable a module owner to have DMs that can't poke around in all the inner secrets of the module, or to have different DMs responsible for handling different sections of areas/items/creature factions etc.

It would also be helpful to be able to whitelist or blacklist specific areas and entities from the listings, or allow access to Limbo only but not other area locations, but that would be less important than just being able to block the listings when necessary.

Alternately, if it were to be a base game thing, blocking the windows individually with SetGuiPanelDisabled (or even disabling the entire DM button interface that sits at the top of the screen) would be another option for this if it seems better.