Scripting/Squirrel/Client Events/GUI::WindowClose

From Vice City Multiplayer
Revision as of 22:41, 1 June 2017 by Kennedyarz (talk | contribs) (Created page with ". == Syntax == <pre>player - The instance.</pre> == Arguments == * player * GUIButton == Example == <source lang=squirrel> Test<- { window = null } function Script::Scr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Caution icon
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);
	}