Blockland Forums > Modification Help
Detect if window is active
Pages: (1/1)
DurkaDude:
How would I detect if the Blockland window is active and the user doesn't have the window minimized? I'm making a mod that adjusts the shader quality depending on the framerate and don't want the user clicking off the window to drop the shaders to 0.
mctwist:
There's a function that is called whenever you select the window again:
--- Code: ---onWindowReactivate()
--- End code ---
Sadly, I didn't see any function for deselecting the window.
Pages: (1/1)