PDA

View Full Version : Stuck Hiding and Showing Elements in Extension



Tielc
June 1st, 2018, 19:09
I'm running into an issue in an Extension that I've about wrapped up. I'm adding a new field and label to the Client Combat Tracker. I'm utilizing the same hide / show functionality that the current Wounds, Temp and HP labels and text fields use within updateHealthDisplay. This functionality works on a fresh load, but it's not being taken into consideration whenever I change factions, which itself calls a loop to run updateHealthDisplay. I've attached two videos. The first shows my work and an explanation of what I'm trying to do, whereas the second shows how the extension works, and a way around this issue that I've found for the time being. I'm wondering if anyone might have any insight as to why this is happening and what I could possibly do to remedy the issue.


https://youtu.be/BVq70FaSVqU

https://youtu.be/VuvWESLwH8U

Tielc
June 1st, 2018, 19:17
https://www.youtube.com/watch?v=BVq70FaSVqU&feature=youtu.be

Tielc
June 1st, 2018, 19:18
https://www.youtube.com/watch?v=VuvWESLwH8U&feature=youtu.be

Tielc
June 1st, 2018, 22:55
I've dug into this more. And I'm running into cases where my Extension is sometimes using my override functions, and sometimes it's falling back on the ruleset implementation. I'm not sure what to do here. Here's a video where I try to explain what I see happening using the Debug.console.

https://www.youtube.com/watch?v=erHM4HbKsC4&feature=youtu.be

Trenloe
June 4th, 2018, 04:10
You can't override individual script functions within windowclass or control <script> entries. You need to replace the original <script> entry within the XML with the whole new LUA code including any original LUA you're not changing, or replace the whole LUA script file being referenced in the XML.