예제 #1
0
        public void Draw()
        {
            if (!IsModAcitve())
            {
                LabelPlacementHandler.SetDirty();
                return;
            }

            if (Find.CameraDriver.CurrentZoom > _maxAllowedZoom)
            {
                return;
            }

            LabelPlacementHandler.RegenerateIfNeeded(_customRoomLabelManager);
            _labelDrawer.Draw();
        }
예제 #2
0
        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();
        }