public virtual void DrawGUIOverlay() { if (Find.CameraDriver.CurrentZoom == CameraZoomRange.Closest) { QualityCategory cat = default(QualityCategory); if (this.def.stackLimit > 1) { GenMapUI.DrawThingLabel(this, this.stackCount.ToStringCached()); } else if (this.TryGetQuality(out cat)) { GenMapUI.DrawThingLabel(this, cat.GetLabelShort()); } } }
public virtual void DrawGUIOverlay() { if (Find.CameraDriver.CurrentZoom == CameraZoomRange.Closest) { QualityCategory qc; if (def.stackLimit > 1) { GenMapUI.DrawThingLabel(this, stackCount.ToStringCached()); } else if (def.drawGUIOverlayQuality && this.TryGetQuality(out qc)) { GenMapUI.DrawThingLabel(this, qc.GetLabelShort()); } } }
public static void DrawBeautyAroundMouse() { BeautyUtility.FillBeautyRelevantCells(UI.MouseCell(), Find.VisibleMap); for (int i = 0; i < BeautyUtility.beautyRelevantCells.Count; i++) { IntVec3 intVec = BeautyUtility.beautyRelevantCells[i]; float num = BeautyUtility.CellBeauty(intVec, Find.VisibleMap, BeautyDrawer.beautyCountedThings); if (num != 0f) { Vector3 v = GenMapUI.LabelDrawPosFor(intVec); GenMapUI.DrawThingLabel(v, Mathf.RoundToInt(num).ToStringCached(), BeautyDrawer.BeautyColor(num, 8f)); } } BeautyDrawer.beautyCountedThings.Clear(); }
private static void DrawBeautyAroundMouse() { if (!Find.PlaySettings.showBeauty) { return; } BeautyUtility.FillBeautyRelevantCells(UI.MouseCell(), Find.CurrentMap); for (int i = 0; i < BeautyUtility.beautyRelevantCells.Count; i++) { IntVec3 intVec = BeautyUtility.beautyRelevantCells[i]; float num = BeautyUtility.CellBeauty(intVec, Find.CurrentMap, beautyCountedThings); if (num != 0f) { GenMapUI.DrawThingLabel((Vector3)GenMapUI.LabelDrawPosFor(intVec), Mathf.RoundToInt(num).ToStringCached(), BeautyColor(num, 8f)); } } beautyCountedThings.Clear(); }
public static void DrawThingLabel(Thing thing, string text, Color textColor) { GenMapUI.DrawThingLabel(GenMapUI.LabelDrawPosFor(thing, -0.4f), text, textColor); }
public static void DrawThingLabel(Thing thing, string text) { GenMapUI.DrawThingLabel(thing, text, GenMapUI.DefaultThingLabelColor); }