private void OverlayHeader(Listing_Standard listing, MiniMap.MiniMapOverlay overlay) { var str = overlay.LabelCap; listing.DoLabel(str); listing.DoGap(6); listing.Indent(); }
private bool ShouldUpdateOverlay(MiniMapOverlay overlay) { return( (overlay.dirty) || ( (overlay.overlayDef.updateInterval > 0) && ((Time.frameCount + overlay.GetHashCode()) % overlay.overlayDef.updateInterval == 0) ) ); }
private void OverlayHeader(Listing_Standard listing, MiniMap.MiniMapOverlay overlay) { var str = overlay.LabelCap; if (!string.IsNullOrEmpty(str)) { listing.Label(str); listing.Gap(6); } listing.Indent(); }