public void Draw() { if (!IsModAcitve()) { LabelPlacementHandler.SetDirty(); return; } if (Find.CameraDriver.CurrentZoom > _maxAllowedZoom) { return; } LabelPlacementHandler.RegenerateIfNeeded(_customRoomLabelManager); _labelDrawer.Draw(); }
public void Draw() { if (!_enabled || Current.ProgramState != ProgramState.Playing || Find.VisibleMap == null || WorldRendererUtility.WorldRenderedNow) { LabelPlacementHandler.SetDirty(); return; } if (Find.CameraDriver.CurrentZoom > _maxAllowedZoom) { return; } LabelPlacementHandler.RegenerateIfNeeded(); _labelDrawer.Draw(); }