Author Topic: Double Click a Server in the Server List to Join  (Read 680 times)

When you open the server list and you're uberlazy and like to just double click a server, this.

Code: [Select]
//Origonal Function by Nexus
//From http://forum.blockland.us/index.php?topic=186479.msg4930918#msg4930918
//Edited for Join Server GUI Double Click Join

function JS_serverlist::onselect()
{
if(getsimtime() - $serverList_click < 500)
{
JoinServerGui.join();
$serverList_click = 0;
return 1;
}
$serverList_click = getsimtime();
return 0;
}

Code: [Select]
//Origonal Function by Nexus
//From http://forum.blockland.us/index.php?topic=186479.msg4930918#msg4930918
//Edited for Join Server GUI Double Click Join

function JS_serverlist::onselect()
{
if(getsimtime() - $serverList_click < 500)
{
JoinServerGui.join();
$serverList_click = 0;
return 1;
}
$serverList_click = getsimtime();
return 0;
}
Not completely fool proof.

EDIT: I made it a better way.

http://www.mediafire.com/?09vxcakyygro7q2
« Last Edit: July 16, 2012, 09:19:21 AM by jes00 »

Yay.

Welp jes, a deal's a deal. On your topic tell me which two others you want madel, Already got the carrot down.

Locking.

Edit: holy stuff i love this
« Last Edit: July 16, 2012, 10:10:35 AM by Uxie² »