PDA

View Full Version : Subwindows and Scripts



Blackfoot
February 2nd, 2025, 17:57
I'm trying to call a script in a subwindow from the window, works fine when the subwindow is open, but when the subwindow is closed, nada.
Is there a work-around?
Basically, the script is getting called on a variable change, when you click a toggle.

<script>
function onValueChanged()
window.onHoldChanged();
end
</script>

LordEntrails
February 2nd, 2025, 18:18
mod: moved to workshop

superteddy57
February 2nd, 2025, 18:25
Well if the code is in the subwindow's windowclass root then when it's 'closed' its not accessible. You would need to move the code higher. Placing it in the subwindow control itself would be better. If this seems off base, you might need to elaborate further and provide more code to examine. You can always come to the discord and reach out to me for one one one back and forth as well.