public override void DoDebugWindowContents(Rect innerRect, ref float curY)
 {
     if (base.State == QuestPartState.Enabled)
     {
         Rect rect = new Rect(innerRect.x, curY, 500f, 25f);
         if (Widgets.ButtonText(rect, "Log future incidents from " + GetType().Name))
         {
             StorytellerUtility.DebugLogTestFutureIncidents(currentMapOnly: false, null, this, 50);
         }
         curY += rect.height + 4f;
     }
 }
Esempio n. 2
0
        public static void ShowFutureIncidentsDebugLogFloatMenu(bool currentMapOnly)
        {
            List <FloatMenuOption> list = new List <FloatMenuOption>();

            list.Add(new FloatMenuOption("-All comps-", delegate
            {
                StorytellerUtility.DebugLogTestFutureIncidents(currentMapOnly, null);
            }, MenuOptionPriority.Default, null, null, 0f, null, null));
            List <StorytellerComp> storytellerComps = Find.Storyteller.storytellerComps;

            for (int i = 0; i < storytellerComps.Count; i++)
            {
                StorytellerComp comp = storytellerComps[i];
                list.Add(new FloatMenuOption(comp.ToString(), delegate
                {
                    StorytellerUtility.DebugLogTestFutureIncidents(currentMapOnly, comp);
                }, MenuOptionPriority.Default, null, null, 0f, null, null));
            }
            Find.WindowStack.Add(new FloatMenu(list));
        }
 internal void <> m__0()
 {
     StorytellerUtility.DebugLogTestFutureIncidents(this.currentMapOnly, null);
 }