Esempio n. 1
0
        public override void OnGUI()
        {
            if (WorldRendererUtility.WorldRenderedNow)
            {
                LabelPlacementHandler?.SetDirty();
            }

            base.OnGUI();
        }
Esempio n. 2
0
        public void Draw()
        {
            if (!IsModAcitve())
            {
                LabelPlacementHandler.SetDirty();
                return;
            }

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

            LabelPlacementHandler.RegenerateIfNeeded(_customRoomLabelManager);
            _labelDrawer.Draw();
        }
Esempio n. 3
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();
        }