/// <summary> /// this method can be used to process your rules /// </summary> public override void MapComponentTick() { if (map.IsPlayerHome) { if (notifyticks < 0) { if (!ASNotify.Notify(this, Rules, ref Notified)) { Notified = false; } notifyticks = 1800; //3600 } notifyticks--; } }
public ANWizDialog(Map map) { this.absorbInputAroundWindow = true; this.forcePause = true; this.map = map; CompBox = new ASListBox <TradeRequestComp>(25, 4, false, false); //get list of possible trade request quests Comps = ASNotify.GetRequests(); //populate ASListBox with trade comps, using custom label and suppressing any further label changes foreach (TradeRequestComp comp in Comps) { CompBox.Add(new SelectedItem <TradeRequestComp>() { Item = comp, label = comp.requestCount.ToString() + " " + comp.requestThingDef.LabelCap, surpresslabelupdate = true }); } }