Fix scoreboard being shown in GUI on tab key
This commit is contained in:
@@ -23,6 +23,7 @@ bindEventHandler("OnResourceReady", thisResource, function(event, resource) {
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
addEventHandler("OnDrawnHUD", function (event) {
|
||||
if(localPlayer != null) {
|
||||
if(isKeyDown(SDLK_TAB)) {
|
||||
if(listFont != null && titleFont != null) {
|
||||
let scoreboardStart = (game.height/2)-(Math.floor(getClients().length/2)*20);
|
||||
@@ -80,4 +81,5 @@ addEventHandler("OnDrawnHUD", function (event) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user