aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Client/mod/scripts/vscripts
diff options
context:
space:
mode:
authorF1F7Y <that.fifty@gmail.com>2022-01-19 18:05:45 +0100
committerBarichello <artur@barichello.me>2022-01-19 18:37:30 -0300
commit4d56ce9de9490bfe95e28f84eca6798a932dcc3b (patch)
tree7105467c54caae932b2336bbb6bd7053e99665b3 /Northstar.Client/mod/scripts/vscripts
parenta3225883dcf07392895885fb2210ebe43e5382d1 (diff)
downloadNorthstarMods-4d56ce9de9490bfe95e28f84eca6798a932dcc3b.tar.gz
NorthstarMods-4d56ce9de9490bfe95e28f84eca6798a932dcc3b.zip
Fix JOIN button
Diffstat (limited to 'Northstar.Client/mod/scripts/vscripts')
-rw-r--r--Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut4
1 files changed, 2 insertions, 2 deletions
diff --git a/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut b/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut
index 7c6c93fd..b0c56b65 100644
--- a/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut
+++ b/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut
@@ -8,7 +8,7 @@ global function ThreadedAuthAndConnectToServer
// Stop peeking
const int BUTTONS_PER_PAGE = 15
-const float DOUBLE_CLICK_TIME_MS = 0.3 // unsure what the ideal value is
+const float DOUBLE_CLICK_TIME_MS = 0.4 // unsure what the ideal value is
struct {
@@ -785,6 +785,7 @@ void function OnServerButtonFocused( var button )
{
int scriptID = int (Hud_GetScriptID(button))
file.serverButtonFocusedID = scriptID
+ file.focusedServerIndex = file.serversArrayFiltered[ file.scrollOffset + scriptID ].serverIndex
DisplayFocusedServerInfo(scriptID);
}
@@ -802,7 +803,6 @@ void function CheckDoubleClick(int scriptID, bool wasClickNav)
if ( NSGetServerCount() == 0 ) return
- file.focusedServerIndex = file.serversArrayFiltered[ file.scrollOffset + scriptID ].serverIndex
int serverIndex = file.scrollOffset + scriptID
bool sameServer = false