Ejemplo n.º 1
0
 public void MapInterfaceOnGUI_AfterMainTabs()
 {
     if (Find.VisibleMap != null && !WorldRendererUtility.WorldRenderedNow)
     {
         ScreenshotModeHandler screenshotMode = Find.UIRoot.screenshotMode;
         if (!screenshotMode.FiltersCurrentEvent)
         {
             this.mouseoverReadout.MouseoverReadoutOnGUI();
             EnvironmentInspectDrawer.EnvironmentInspectOnGUI();
             Find.VisibleMap.debugDrawer.DebugDrawerOnGUI();
         }
     }
 }
Ejemplo n.º 2
0
 public void MapInterfaceOnGUI_AfterMainTabs()
 {
     if (Find.CurrentMap == null)
     {
         return;
     }
     if (!WorldRendererUtility.WorldRenderedNow)
     {
         ScreenshotModeHandler screenshotMode = Find.UIRoot.screenshotMode;
         if (!screenshotMode.FiltersCurrentEvent)
         {
             this.mouseoverReadout.MouseoverReadoutOnGUI();
             EnvironmentStatsDrawer.EnvironmentStatsOnGUI();
             Find.CurrentMap.debugDrawer.DebugDrawerOnGUI();
         }
     }
 }
Ejemplo n.º 3
0
        public void WorldInterfaceOnGUI()
        {
            bool worldRenderedNow = WorldRendererUtility.WorldRenderedNow;

            Profiler.BeginSample("CheckOpenOrCloseInspectPane()");
            this.CheckOpenOrCloseInspectPane();
            Profiler.EndSample();
            if (worldRenderedNow)
            {
                ScreenshotModeHandler screenshotMode = Find.UIRoot.screenshotMode;
                Profiler.BeginSample("ExpandableWorldObjectsOnGUI()");
                ExpandableWorldObjectsUtility.ExpandableWorldObjectsOnGUI();
                Profiler.EndSample();
                Profiler.BeginSample("WorldSelectionDrawer.SelectionOverlaysOnGUI()");
                WorldSelectionDrawer.SelectionOverlaysOnGUI();
                Profiler.EndSample();
                Profiler.BeginSample("WorldRoutePlannerOnGUI()");
                this.routePlanner.WorldRoutePlannerOnGUI();
                Profiler.EndSample();
                if (!screenshotMode.FiltersCurrentEvent && Current.ProgramState == ProgramState.Playing)
                {
                    Profiler.BeginSample("ColonistBarOnGUI()");
                    Find.ColonistBar.ColonistBarOnGUI();
                    Profiler.EndSample();
                }
                Profiler.BeginSample("selector.dragBox.DragBoxOnGUI()");
                this.selector.dragBox.DragBoxOnGUI();
                Profiler.EndSample();
                Profiler.BeginSample("TargeterOnGUI()");
                this.targeter.TargeterOnGUI();
                Profiler.EndSample();
                if (!screenshotMode.FiltersCurrentEvent)
                {
                    Profiler.BeginSample("globalControls.WorldGlobalControlsOnGUI()");
                    this.globalControls.WorldGlobalControlsOnGUI();
                    Profiler.EndSample();
                }
                Profiler.BeginSample("WorldDebugDrawerOnGUI()");
                Find.WorldDebugDrawer.WorldDebugDrawerOnGUI();
                Profiler.EndSample();
            }
        }
Ejemplo n.º 4
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.º 5
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();
         }
     }
 }