LUA Script Blocking in 5.6.23 #491
Unanswered
spiffo-smith
asked this question in
Q&A
Replies: 2 comments 7 replies
-
Can you please post the link to the previous discussion/post in a comment below and click your reply as "Mark as answer"? thanks |
Beta Was this translation helpful? Give feedback.
2 replies
-
Hi Spiffo, If you implement my class blocking function as described here, you can just change your function to read: function isPanelReady() return myPanel:GetBootstrapState() end |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For a long time now I've been using this function for blocking scripts that are on 'luaModulatorValueChange' from running at Panel Startup:
function isPanelReady()
if panel:getBootstrapState() == false and bPanelTimedOut == 1
then return (true)
else return (false)
end
end
The bPanelTimedOut gets changed to 1 after a Timer runs that's triggered from an invisible modulator changing it's value when the panel starts. All this was extensively discussed on the previous Ctrlr website by dnaldoog and Goodweather, and in 5.3.201 this all works fine!
But after loading up my panels in 5.6.23 I found none of my LUA scripts were working off 'luaModulatorValueChange', after some digging looks like bPanelTimedOut was staying at 0 so the Timer isn't getting triggered from the invisible modulator at Panel Startup in 5.6.23 like it does in 5.3.201
Anyone else noticed this behaviour in 5.6.23 and what did they do about it?
I've just noticed that dnaldoog has posted some stuff on this very topic so I probably should have posted in there but now I can't delete this discussion!
Beta Was this translation helpful? Give feedback.
All reactions