Scripting/Squirrel/Client Events/GUI::WindowClose
Jump to navigation
Jump to search

This wiki is using an old backup from 2020
Some information may be old/missing
.
Syntax
player - The instance.
Arguments
- player
- GUIButton
Example
Test<-
{
window = null
}
function Script::ScriptLoad()
{
Test.window = GUIWindow(VectorScreen(sX * 0.20, sY * 0.65), VectorScreen(sX * 0.60, sY * 0.30), Colour(20, 20, 20, 400), "Welcome to This server", GUI_FLAG_TEXT_TAGS);
}
function GUI::WindowClose(window)
{
if ( window == Test.window) SetMouseEnabled(false);
}