Ejemplo n.º 1
0
 public void MapInterfaceOnGUI_BeforeMainTabs()
 {
     if (Find.CurrentMap == null)
     {
         return;
     }
     if (!WorldRendererUtility.WorldRenderedNow)
     {
         ScreenshotModeHandler screenshotMode = Find.UIRoot.screenshotMode;
         thingOverlays.ThingOverlaysOnGUI();
         MapComponentUtility.MapComponentOnGUI(Find.CurrentMap);
         BeautyDrawer.BeautyDrawerOnGUI();
         if (!screenshotMode.FiltersCurrentEvent)
         {
             colonistBar.ColonistBarOnGUI();
         }
         selector.dragBox.DragBoxOnGUI();
         designatorManager.DesignationManagerOnGUI();
         targeter.TargeterOnGUI();
         Find.CurrentMap.tooltipGiverList.DispenseAllThingTooltips();
         if (DebugViewSettings.drawFoodSearchFromMouse)
         {
             FoodUtility.DebugFoodSearchFromMouse_OnGUI();
         }
         if (DebugViewSettings.drawAttackTargetScores)
         {
             AttackTargetFinder.DebugDrawAttackTargetScores_OnGUI();
         }
         if (!screenshotMode.FiltersCurrentEvent)
         {
             mouseoverReadout.MouseoverReadoutOnGUI();
             globalControls.GlobalControlsOnGUI();
             resourceReadout.ResourceReadoutOnGUI();
         }
     }
     else
     {
         targeter.StopTargeting();
     }
 }
Ejemplo n.º 2
0
 public void MapInterfaceOnGUI_BeforeMainTabs()
 {
     if (Find.CurrentMap != null)
     {
         if (!WorldRendererUtility.WorldRenderedNow)
         {
             ScreenshotModeHandler screenshotMode = Find.UIRoot.screenshotMode;
             Profiler.BeginSample("ThingOverlaysOnGUI()");
             this.thingOverlays.ThingOverlaysOnGUI();
             Profiler.EndSample();
             Profiler.BeginSample("MapComponentOnGUI()");
             MapComponentUtility.MapComponentOnGUI(Find.CurrentMap);
             Profiler.EndSample();
             Profiler.BeginSample("BeautyDrawerOnGUI()");
             BeautyDrawer.BeautyDrawerOnGUI();
             Profiler.EndSample();
             if (!screenshotMode.FiltersCurrentEvent)
             {
                 Profiler.BeginSample("ColonistBarOnGUI()");
                 this.colonistBar.ColonistBarOnGUI();
                 Profiler.EndSample();
             }
             Profiler.BeginSample("DragBoxOnGUI()");
             this.selector.dragBox.DragBoxOnGUI();
             Profiler.EndSample();
             Profiler.BeginSample("DesignationManagerOnGUI()");
             this.designatorManager.DesignationManagerOnGUI();
             Profiler.EndSample();
             Profiler.BeginSample("TargeterOnGUI()");
             this.targeter.TargeterOnGUI();
             Profiler.EndSample();
             Profiler.BeginSample("DispenseAllThingTooltips()");
             Find.CurrentMap.tooltipGiverList.DispenseAllThingTooltips();
             Profiler.EndSample();
             if (DebugViewSettings.drawFoodSearchFromMouse)
             {
                 Profiler.BeginSample("FoodUtility.DebugFoodSearchFromMouse_OnGUI()");
                 FoodUtility.DebugFoodSearchFromMouse_OnGUI();
                 Profiler.EndSample();
             }
             if (DebugViewSettings.drawAttackTargetScores)
             {
                 Profiler.BeginSample("AttackTargetFinder.DebugDrawAttackTargetScores_OnGUI()");
                 AttackTargetFinder.DebugDrawAttackTargetScores_OnGUI();
                 Profiler.EndSample();
             }
             if (!screenshotMode.FiltersCurrentEvent)
             {
                 Profiler.BeginSample("GlobalControlsOnGUI()");
                 this.globalControls.GlobalControlsOnGUI();
                 Profiler.EndSample();
                 Profiler.BeginSample("ResourceReadoutOnGUI()");
                 this.resourceReadout.ResourceReadoutOnGUI();
                 Profiler.EndSample();
             }
         }
         else
         {
             this.targeter.StopTargeting();
         }
     }
 }