digitalhobbit
March 8th, 2020, 03:46
I'm building an extension to randomly generate characters (for the DCC ruleset, but I believe my issue applies to CoreRPG as well). This is triggered by either a slash command or a newly added button on the PC list.
Both work fine already, with one minor issue:
When triggering this on the host, the PC list shows the newly added character. But when triggering on a client, the PC list does not update. I have to manually close and re-open it.
Is there a way to force a refresh on the client? (I realize I might need to use OOB to notify the client that the character was successfully added. I'm already using OOB for the client to trigger character creation on the host, as clients can't add db nodes directly.)
Possibly related:
When my client starts up, it automatically shows a "Character Selection" window. I would expect this to be the "charselect_client" (or possibly "charselect_local") windowinstance, but when I try to locate this using Interface.findWindow(), it doesn't come up. However, after manually closing and re-opening the window (using the "PC" button in the right sidebar) and running Interface.findWindow() again, it now successfully comes up. If the initial visible windowinstance isn't "charselect_client", what is it? If I can get a handle to it, I assume I can force a refresh.
Thanks in advance!
Both work fine already, with one minor issue:
When triggering this on the host, the PC list shows the newly added character. But when triggering on a client, the PC list does not update. I have to manually close and re-open it.
Is there a way to force a refresh on the client? (I realize I might need to use OOB to notify the client that the character was successfully added. I'm already using OOB for the client to trigger character creation on the host, as clients can't add db nodes directly.)
Possibly related:
When my client starts up, it automatically shows a "Character Selection" window. I would expect this to be the "charselect_client" (or possibly "charselect_local") windowinstance, but when I try to locate this using Interface.findWindow(), it doesn't come up. However, after manually closing and re-opening the window (using the "PC" button in the right sidebar) and running Interface.findWindow() again, it now successfully comes up. If the initial visible windowinstance isn't "charselect_client", what is it? If I can get a handle to it, I assume I can force a refresh.
Thanks in advance!