public Command_SetHarvestProportion(Zone zone, HarvestManager_MapComponent manager) : base(zone, manager) { groupKey = 1123415; defaultLabel = "SetHarvestProportionLabel".Translate(ProportionNumber); defaultDesc = HarvestSetting.SyncHarvest.GetDescription(ProportionNumber); icon = TextureLoader.setHarvestProportionIcon; }
static void Postfix(ref IEnumerable <Gizmo> __result, Zone_Growing __instance) { HarvestManager_MapComponent manager = __instance.Map.GetComponent <HarvestManager_MapComponent>(); Gizmo setMode = new Command_SetHarvestMode(__instance, manager); Gizmo setProportion = new Command_SetHarvestProportion(__instance, manager); __result = AppendGizmoToEnumerable(__result, setMode); __result = AppendGizmoToEnumerable(__result, setProportion); }
public Command_SetHarvestSetting(Zone zone, HarvestManager_MapComponent manager) { growingZone = zone; harvestManager = manager; immatureIntended = zone.GetNumberImmaturePlants(); }
public Command_SetHarvestMode(Zone zone, HarvestManager_MapComponent manager) : base(zone, manager) { defaultLabel = "SetHarvestSettingRoot".Translate(ZoneSetting.Translate()); defaultDesc = ZoneSetting.GetDescription(ProportionNumber); icon = TexCommand.ForbidOff; }