コード例 #1
0
ファイル: UIOpener.cs プロジェクト: NACH0CHEE5E/ColonyManager
 public static void PlaceItem(Players.Player player, PlayerClickedData data)
 {
     if (data.TypeSelected != ItemTypes.GetType(itemName).ItemIndex)
     {
         return;
     }
     else if (data.TypeSelected == ItemTypes.GetType(itemName).ItemIndex)
     {
         if (data.ClickType == PlayerClickedData.EClickType.Left)
         {
             Dictionary <string, JobCounts> jobCounts = SendColonyUI.GetJobCounts(player.ActiveColony);
             NetworkMenuManager.SendServerPopup(player, SendColonyUI.BuildMenu(player, jobCounts, false, string.Empty, 0));
         }
     }
 }
コード例 #2
0
ファイル: UI.cs プロジェクト: NACH0CHEE5E/ColonyManager
        public bool TryDoCommand(Players.Player player, string chat, List <string> splits)
        {
            if (player == null)
            {
                return(false);
            }

            if (!chat.Equals("?nach0manager"))
            {
                return(false);
            }

            Dictionary <string, JobCounts> jobCounts = SendColonyUI.GetJobCounts(player.ActiveColony);

            NetworkMenuManager.SendServerPopup(player, SendColonyUI.BuildMenu(player, jobCounts, false, string.Empty, 0));

            return(true);
        }