FWCentral Posted September 21, 2011 Share Posted September 21, 2011 Hey all, if there any function that checks if ANY gui windows are open? Link to comment
qaisjp Posted September 21, 2011 Share Posted September 21, 2011 Nope. but you could loop all gui elements and do guigetvisible function isWindowShowing() local lol = false for i,v in pairs(getElementsByType("gui-window")) end if guiGetVisible(v)==true then lol = true end end end UNTESTED Link to comment
TAPL Posted September 21, 2011 Share Posted September 21, 2011 function isWindowShowing() lol = false for i,v in pairs(getElementsByType("gui-window")) do if (guiGetVisible(v) == true) then lol = true end end return lol end Link to comment
qaisjp Posted September 21, 2011 Share Posted September 21, 2011 Yeah! I forgot to put return. Stupidomeh thx for the fix TAPL and thanks you FWCentral Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now