S3rgeus
Emperor
Currently, I'm wrestling with the notification system and I think I've got a starting point for how I can approach creating more flexible notifications that are more easily specified and can be called up nicely from either within the DLL or Lua. (I've seen Sneaks's Custom Notifications mod, but I believe that's limited by not being able to have notifications that open new Lua popups or notifications that prevent the player from ending their turn.)
One thing I would like to avoid is having to replace NotificationPanel.lua, which I believe I can work around doing if it's at all possible for me to access the "g_ActiveNotifications" table from another context aside from the one NotificationPanel itself is in. Is this possible?
I'm unfamiliar with the specifics of how Contextptr works, but I understand it can be used to call functions in other contexts. I'm hoping it can be used in a similar way to access (only actually need to write to) tables in a similar manner.
One thing I would like to avoid is having to replace NotificationPanel.lua, which I believe I can work around doing if it's at all possible for me to access the "g_ActiveNotifications" table from another context aside from the one NotificationPanel itself is in. Is this possible?
I'm unfamiliar with the specifics of how Contextptr works, but I understand it can be used to call functions in other contexts. I'm hoping it can be used in a similar way to access (only actually need to write to) tables in a similar manner.