コード例 #1
0
        public void SetData(AdminPlayerEntry entry)
        {
            PlayerEntry = entry;

            mentorButtonText.text = entry.PlayerData.isMentor ? "REMOVE MENTOR" : "MAKE MENTOR";
            mentorToggle.gameObject.SetActive(entry.PlayerData.isMentor == false);
        }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
 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;
 }
コード例 #4
0
        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();
        }
コード例 #5
0
		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);
		}
コード例 #6
0
        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;
            }
        }
コード例 #7
0
 public void SetData(AdminPlayerEntry entry)
 {
     PlayerEntry = entry;
     deputiseBtn.interactable = !entry.PlayerData.isAdmin;
     // respawnBtn.interactable = !playerEntry.PlayerData.isAlive;
 }