public static void MapInterfaceUpdate_Postfix()
        {
            if (Find.CurrentMap == null || WorldRendererUtility.WorldRenderedNow)
            {
                return;
            }
            NaturalLightOverlay naturalLightMap = new NaturalLightOverlay();

            naturalLightMap.Update();
        }
Ejemplo n.º 2
0
        public static void Postfix()
        {
            if (Find.CurrentMap == null || RimWorld.Planet.WorldRendererUtility.WorldRenderedNow)
            {
                return;
            }

            NaturalLightOverlay naturalLightMap = new NaturalLightOverlay();

            naturalLightMap.Update();
        }
 public static void Postfix(WidgetRow row, bool worldView)
 {
     if (worldView)
     {
         return;
     }
     if (row == null || NaturalLightOverlay.Icon() == null)
     {
         return;
     }
     row.ToggleableIcon(ref NaturalLightOverlay.toggleShow, NaturalLightOverlay.Icon(), NaturalLightOverlay.IconTip(), null, null);
 }
Ejemplo n.º 4
0
 public MapComp_Windows(Map map) : base(map)
 {
     WindowCells  = new HashSet <IntVec3>();
     lightOverlay = new NaturalLightOverlay(this);
     if (DubsSkylights)
     {
         DubsSkylights_type             = AccessTools.TypeByName("Dubs_Skylight.MapComp_Skylights");
         DubsSkylights_skylightGridinfo = AccessTools.Field(DubsSkylights_type, "SkylightGrid");
         MapCompInfo = AccessTools.Method(typeof(Map), "GetComponent", new[] { typeof(Type) });
     }
     if (DubsSkylights || TransparentRoofs)
     {
         MapUpdateWatcher.MapUpdate += MapUpdated;
     }
 }