Minty23185Fresh
November 9th, 2017, 05:19
I'm working with masterindex in campaign_masterindex.xml.
As I had guessed, the number of custom filters for the NPC library editor is large. When the NPC editor opens for the first time the controls overlap each other. It would be amusing if it wasn't so ugly.
The window is spawned in the toggleIndex() function in the DesktopManager. If I put setSize() and setPosition() function calls in toggleIndex() I can easily resize the window to my desired height. But I'd prefer to place those functions within the script of masterindex (in masterindex_window.lua) because that is where all of my other code is already.
I have tried placing the setSize() and setPosition() function calls in the onInit() of masterindex_window.lua of my extension, in the onInit() of masterindex_window.lua of the ruleset, and I've tried calling those functions in the ruleset using super.setSize() from my extension. All without success. No errors are thrown. The window just doesn't refresh to the new size.
As a last resort I tried getting a handle on the window using the Interface.findwindow() function from the onInit() but that didn't work either.
Any other hints would be greatly appreciated. Thanks in advance.
As I had guessed, the number of custom filters for the NPC library editor is large. When the NPC editor opens for the first time the controls overlap each other. It would be amusing if it wasn't so ugly.
The window is spawned in the toggleIndex() function in the DesktopManager. If I put setSize() and setPosition() function calls in toggleIndex() I can easily resize the window to my desired height. But I'd prefer to place those functions within the script of masterindex (in masterindex_window.lua) because that is where all of my other code is already.
I have tried placing the setSize() and setPosition() function calls in the onInit() of masterindex_window.lua of my extension, in the onInit() of masterindex_window.lua of the ruleset, and I've tried calling those functions in the ruleset using super.setSize() from my extension. All without success. No errors are thrown. The window just doesn't refresh to the new size.
As a last resort I tried getting a handle on the window using the Interface.findwindow() function from the onInit() but that didn't work either.
Any other hints would be greatly appreciated. Thanks in advance.