Scripting/Squirrel/Client Events/GUI::ElementHoverOver

From Vice City Multiplayer
Revision as of 02:56, 16 June 2017 by Kennedyarz (talk | contribs) (Created page with ". == Syntax == <pre>player - The instance.</pre> == Arguments == * player == Example == <source lang=squirrel> Testing<- { Button = null } function Script::ScriptLoad()...")
(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

Example

Testing<-
{
Button = null
}

function Script::ScriptLoad()
{
Testing.Button <- GUIButton(VectorScreen(400,380), VectorScreen(200, 22), Colour(75,75,75), "Press Here", GUI_FLAG_BORDER | GUI_FLAG_VISIBLE);
}

function GUI::ElementHoverOver(element)
{
   switch( element )
   {
        case Testing.Button:
	Testing.Button.Size.X+=4;
	Testing.Button.Size.Y+=4;
        break;
    }
}

Notes

Performs the action that you implement on your client side for when the mouse is in the element (Buttons, Labers, etc.)