Check if should render scoreboard
This commit is contained in:
@@ -23,6 +23,14 @@ bindEventHandler("OnResourceReady", thisResource, function(event, resource) {
|
|||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
addEventHandler("OnDrawnHUD", function (event) {
|
addEventHandler("OnDrawnHUD", function (event) {
|
||||||
|
if(!renderHUD) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!renderScoreboard) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if(localPlayer != null) {
|
if(localPlayer != null) {
|
||||||
if(isKeyDown(SDLK_TAB)) {
|
if(isKeyDown(SDLK_TAB)) {
|
||||||
if(listFont != null && titleFont != null) {
|
if(listFont != null && titleFont != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user