public override void OnApplicationStart() { Instance = this; PlayerListConfig.RegisterSettings(); EntryManager.Init(); ListPositionManager.Init(); MenuManager.Init(); EntrySortManager.Init(); PlayerEntry.EntryInit(); LocalPlayerEntry.EntryInit(); MelonCoroutines.Start(StartUiManagerInitIEnumerator()); }
public static void OnPlayerJoin(Player player) { if (playerEntries.ContainsKey(player.field_Private_APIUser_0.id)) { return; } if (player.field_Private_APIUser_0.IsSelf) { if (localPlayerEntry != null) { return; } localPlayerEntry = EntryBase.CreateInstance <LocalPlayerEntry>(Object.Instantiate(Constants.playerListLayout.transform.Find("Template").gameObject, Constants.playerListLayout.transform)); AddEntry(localPlayerEntry); localPlayerEntry.gameObject.SetActive(true); return; } AddPlayerEntry(EntryBase.CreateInstance <PlayerEntry>(Object.Instantiate(Constants.playerListLayout.transform.Find("Template").gameObject, Constants.playerListLayout.transform), new object[] { player })); }
public static void OnAddDisplayName(Player player, LocalPlayerEntry entry, ref StringBuilder tempString) { tempString.Append("<color=" + entry.playerColor + ">" + spoofedName + "</color>" + PlayerEntry.separator); }