public void SetData(AdminPlayerEntry entry) { PlayerEntry = entry; mentorButtonText.text = entry.PlayerData.isMentor ? "REMOVE MENTOR" : "MAKE MENTOR"; mentorToggle.gameObject.SetActive(entry.PlayerData.isMentor == false); }
public void SelectPlayerInList(AdminPlayerEntry selectedEntry) { foreach (var p in playerEntries) { if (p != selectedEntry) { p.DeselectPlayer(); } else { p.SelectPlayer(); SelectedPlayer = selectedEntry.PlayerData.uid; } } SelectedPlayer = selectedEntry.PlayerData.uid; if (playerChatPage.activeInHierarchy) { playerChatPageScript.SetData(selectedEntry); } if (playerManagePage.activeInHierarchy) { playerManagePageScript.SetData(selectedEntry); } }
public void SetData(AdminPlayerEntry entry) { playerEntry = entry; deputiseBtn.interactable = !entry.PlayerData.isAdmin; respawnBtn.interactable = !playerEntry.PlayerData.isAlive; respawnAsBtn.interactable = !playerEntry.PlayerData.isAlive && adminJobsDropdown.value != 0; adminJobsDropdown.interactable = !playerEntry.PlayerData.isAlive; }
public void SetData(AdminPlayerEntry entry) { if (entry != null) { selectedPlayer = entry; } if (selectedPlayer == null) { return; } UIManager.IsInputFocus = true; UIManager.PreventChatInput = true; RefreshChatLog(selectedPlayer.PlayerData.uid); refreshClock = true; inputField.ActivateInputField(); }
void SelectPlayerInList(AdminPlayerEntry selectedEntry) { foreach (var p in playerEntries) { if (p != selectedEntry) { p.DeselectPlayer(); } else { p.SelectPlayer(); SelectedPlayer = selectedEntry; } } SelectedPlayer = selectedEntry; if(OnSelectPlayer != null) OnSelectPlayer.Invoke(selectedEntry.PlayerData); }
public void SetData(AdminPlayerEntry entry) { playerEntry = entry; if (entry.PlayerData.isAdmin) { deputiseBtn.interactable = false; } else { deputiseBtn.interactable = true; } if (playerEntry.PlayerData.isAlive) { respawnBtn.interactable = false; } else { respawnBtn.interactable = true; } }
public void SetData(AdminPlayerEntry entry) { PlayerEntry = entry; deputiseBtn.interactable = !entry.PlayerData.isAdmin; // respawnBtn.interactable = !playerEntry.PlayerData.isAlive; }