Added server options to ingame HUD, fixed ChatSpamSpeed timer reset
This commit is contained in:
@@ -105,6 +105,10 @@ namespace Barotrauma.Networking
|
|||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
GUIButton settingsButton = new GUIButton(new Rectangle(GameMain.GraphicsWidth - 170 - 170 - 170, 20, 150, 20), "Settings", Alignment.TopLeft, GUI.Style, inGameHUD);
|
||||||
|
settingsButton.OnClicked = ToggleSettingsFrame;
|
||||||
|
settingsButton.UserData = "settingsButton";
|
||||||
|
|
||||||
banList = new BanList();
|
banList = new BanList();
|
||||||
|
|
||||||
LoadSettings();
|
LoadSettings();
|
||||||
@@ -349,6 +353,7 @@ namespace Barotrauma.Networking
|
|||||||
|
|
||||||
//slowly reset spam timers
|
//slowly reset spam timers
|
||||||
c.ChatSpamTimer = Math.Max(0.0f, c.ChatSpamTimer - deltaTime);
|
c.ChatSpamTimer = Math.Max(0.0f, c.ChatSpamTimer - deltaTime);
|
||||||
|
c.ChatSpamSpeed = Math.Max(0.0f, c.ChatSpamSpeed - deltaTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
NetIncomingMessage inc = null;
|
NetIncomingMessage inc = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user