Scripting/Squirrel/Client Events/GUI::ElementDrag: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
Kennedyarz (talk | contribs) (Created page with ". == Syntax == <pre>player - The instance.</pre> == Arguments == * player * GUIButton == Example == <source lang=squirrel> Test<- { Hello = null } function Script::Scri...") |
Kennedyarz (talk | contribs) No edit summary |
||
Line 23: | Line 23: | ||
} | } | ||
function GUI:: | function GUI::ElementDrag(element, mouseX, mouseY) | ||
{ | { | ||
if (element == Test.Hello) | if (element == Test.Hello) |
Latest revision as of 22:38, 1 June 2017
.
Syntax
player - The instance.
Arguments
- player
- GUIButton
Example
Test<-
{
Hello = null
}
function Script::ScriptLoad()
{
Test.Hello = GUIButton(VectorScreen(400,380), VectorScreen(200, 22), Colour(75,75,75), "Press Here", GUI_FLAG_BORDER | GUI_FLAG_VISIBLE);
}
function GUI::ElementDrag(element, mouseX, mouseY)
{
if (element == Test.Hello)
{
Console.Print("Hello. welcome to VCMP")
}
}