예제 #1
0
 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());
         }
     }
 }
예제 #2
0
 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());
         }
     }
 }
예제 #3
0
 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();
 }
예제 #4
0
 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();
 }
예제 #5
0
 public static void DrawThingLabel(Thing thing, string text, Color textColor)
 {
     GenMapUI.DrawThingLabel(GenMapUI.LabelDrawPosFor(thing, -0.4f), text, textColor);
 }
예제 #6
0
 public static void DrawThingLabel(Thing thing, string text)
 {
     GenMapUI.DrawThingLabel(thing, text, GenMapUI.DefaultThingLabelColor);
 }