Ejemplo n.º 1
0
        public override IEnumerable <Gizmo> GetGizmos()
        {
            map = this.Map;
            foreach (Gizmo g in base.GetGizmos())
            {
                yield return(g);
            }
            if (this.BeehouseIsExpectingBees)
            {
                Command_Action RB_Gizmo_Drones_Waiting = new Command_Action();
                RB_Gizmo_Drones_Waiting.action = delegate
                {
                };
                RB_Gizmo_Drones_Waiting.defaultLabel = "RB_InsertBees".Translate();
                RB_Gizmo_Drones_Waiting.defaultDesc  = "RB_InsertBeesDesc".Translate();
                RB_Gizmo_Drones_Waiting.icon         = ContentFinder <Texture2D> .Get("UI/RB_Drones_Waiting", true);

                yield return(RB_Gizmo_Drones_Waiting);
            }
            else if (innerContainerDrones.NullOrEmpty())
            {
                yield return(BeeListSetupUtility.SetBeeListCommand(this, map));
            }
            else
            {
                Command_Action RB_Gizmo_Empty_Drones = new Command_Action();
                RB_Gizmo_Empty_Drones.action = delegate
                {
                    this.EjectContents();
                };
                RB_Gizmo_Empty_Drones.defaultLabel = "RB_ExtractBees".Translate();
                RB_Gizmo_Empty_Drones.defaultDesc  = "RB_ExtractBeesDesc".Translate();
                RB_Gizmo_Empty_Drones.icon         = ContentFinder <Texture2D> .Get("UI/RB_ExtractDrones_FromBeehouse", true);

                yield return(RB_Gizmo_Empty_Drones);
            }

            if (this.BeehouseIsExpectingQueens)
            {
                Command_Action RB_Gizmo_Queens_Waiting = new Command_Action();
                RB_Gizmo_Queens_Waiting.action = delegate
                {
                };
                RB_Gizmo_Queens_Waiting.defaultLabel = "RB_InsertQueens".Translate();
                RB_Gizmo_Queens_Waiting.defaultDesc  = "RB_InsertQueensDesc".Translate();
                RB_Gizmo_Queens_Waiting.icon         = ContentFinder <Texture2D> .Get("UI/RB_Queens_Waiting", true);

                yield return(RB_Gizmo_Queens_Waiting);
            }
            else
            if (innerContainerQueens.NullOrEmpty())
            {
                yield return(BeeListSetupUtility.SetQueenListCommand(this, map));
            }
            else
            {
                Command_Action RB_Gizmo_Empty_Queens = new Command_Action();
                RB_Gizmo_Empty_Queens.action = delegate
                {
                    this.EjectContentsQueens();
                };
                RB_Gizmo_Empty_Queens.defaultLabel = "RB_ExtractQueens".Translate();
                RB_Gizmo_Empty_Queens.defaultDesc  = "RB_ExtractQueensDesc".Translate();
                RB_Gizmo_Empty_Queens.icon         = ContentFinder <Texture2D> .Get("UI/RB_ExtractQueens_FromBeehouse", true);

                yield return(RB_Gizmo_Empty_Queens);
            }
            if (DesignatorUtility.FindAllowedDesignator <Designator_ZoneAdd_Growing>() != null)
            {
                yield return(new Command_Action
                {
                    action = new Action(this.MakeMatchingGrowZone),
                    hotKey = KeyBindingDefOf.Misc2,
                    defaultDesc = "RB_CommandBeehouseMakeGrowingZoneDesc".Translate(),
                    icon = ContentFinder <Texture2D> .Get("UI/Designators/ZoneCreate_Growing", true),
                    defaultLabel = "CommandSunLampMakeGrowingZoneLabel".Translate()
                });
            }
        }
Ejemplo n.º 2
0
        public override IEnumerable <Gizmo> GetGizmos()
        {
            map = this.Map;
            foreach (Gizmo g in base.GetGizmos())
            {
                yield return(g);
            }
            if (this.BeehouseIsExpectingBees)
            {
                Command_Action RB_Gizmo_Drones_Waiting = new Command_Action();
                RB_Gizmo_Drones_Waiting.action = delegate
                {
                };
                RB_Gizmo_Drones_Waiting.defaultLabel = "RB_InsertBees".Translate();
                RB_Gizmo_Drones_Waiting.defaultDesc  = "RB_InsertBeesDesc".Translate();
                RB_Gizmo_Drones_Waiting.icon         = ContentFinder <Texture2D> .Get("UI/RB_Drones_Waiting", true);

                yield return(RB_Gizmo_Drones_Waiting);
            }
            else if (innerContainerDrones.NullOrEmpty())
            {
                yield return(BeeListSetupUtility.SetBeeListCommand(this, map));
            }
            else
            {
                Command_Action RB_Gizmo_Empty_Drones = new Command_Action();
                RB_Gizmo_Empty_Drones.action = delegate
                {
                    this.EjectContents();
                };
                RB_Gizmo_Empty_Drones.defaultLabel = "RB_ExtractBees".Translate();
                RB_Gizmo_Empty_Drones.defaultDesc  = "RB_ExtractBeesDesc".Translate();
                RB_Gizmo_Empty_Drones.icon         = ContentFinder <Texture2D> .Get("UI/RB_ExtractDrones_FromBeehouse", true);

                yield return(RB_Gizmo_Empty_Drones);
            }

            if (this.BeehouseIsExpectingBees)
            {
                Command_Action RB_Gizmo_Queens_Waiting = new Command_Action();
                RB_Gizmo_Queens_Waiting.action = delegate
                {
                };
                RB_Gizmo_Queens_Waiting.defaultLabel = "RB_InsertQueens".Translate();
                RB_Gizmo_Queens_Waiting.defaultDesc  = "RB_InsertQueensDesc".Translate();
                RB_Gizmo_Queens_Waiting.icon         = ContentFinder <Texture2D> .Get("UI/RB_Queens_Waiting", true);

                yield return(RB_Gizmo_Queens_Waiting);
            }
            else
            if (innerContainerQueens.NullOrEmpty())
            {
                yield return(BeeListSetupUtility.SetQueenListCommand(this, map));
            }
            else
            {
                Command_Action RB_Gizmo_Empty_Queens = new Command_Action();
                RB_Gizmo_Empty_Queens.action = delegate
                {
                    this.EjectContentsQueens();
                };
                RB_Gizmo_Empty_Queens.defaultLabel = "RB_ExtractQueens".Translate();
                RB_Gizmo_Empty_Queens.defaultDesc  = "RB_ExtractQueensDesc".Translate();
                RB_Gizmo_Empty_Queens.icon         = ContentFinder <Texture2D> .Get("UI/RB_ExtractQueens_FromBeehouse", true);

                yield return(RB_Gizmo_Empty_Queens);
            }
        }