mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-12-11 20:15:10 +01:00
14 lines
563 B
C#
14 lines
563 B
C#
using QSB.Utility;
|
|
using UnityEngine;
|
|
|
|
namespace QSB.ServerSettings;
|
|
|
|
public class ServerSettingsManager : MonoBehaviour, IAddComponentOnStart
|
|
{
|
|
public static bool ServerShowPlayerNames;
|
|
public static bool ServerAlwaysShowPlanetIcons;
|
|
public static bool ShowPlayerNames => (ServerShowPlayerNames || QSBCore.IsHost) && QSBCore.ShowPlayerNames;
|
|
public static bool ShowExtraHUD => ShowPlayerNames && QSBCore.ShowExtraHUDElements;
|
|
public static bool AlwaysShowPlanetIcons => (ServerAlwaysShowPlanetIcons || QSBCore.IsHost) && QSBCore.AlwaysShowPlanetIcons;
|
|
}
|