public void DebugDrawMouseover() { int num = Mathf.RoundToInt(Time.realtimeSinceStartup * 2f) % 2; if (DebugViewSettings.drawRegions) { Color color; if (!this.valid) { color = Color.red; } else if (this.DebugIsNew) { color = Color.yellow; } else { color = Color.green; } GenDraw.DrawFieldEdges(this.Cells.ToList <IntVec3>(), color); foreach (Region current in this.Neighbors) { GenDraw.DrawFieldEdges(current.Cells.ToList <IntVec3>(), Color.grey); } } if (DebugViewSettings.drawRegionLinks) { foreach (RegionLink current2 in this.links) { if (num == 1) { foreach (IntVec3 current3 in current2.span.Cells) { CellRenderer.RenderCell(current3, DebugSolidColorMats.MaterialOf(Color.magenta)); } } } } if (DebugViewSettings.drawRegionThings) { foreach (Thing current4 in this.listerThings.AllThings) { CellRenderer.RenderSpot(current4.TrueCenter(), (float)(current4.thingIDNumber % 256) / 256f); } } }
public static void RenderSpot(Vector3 loc, float colorPct = 0.5f) { CellRenderer.RenderSpot(loc, CellRenderer.MatFromColorPct(colorPct, false), 0.15f); }
public static void RenderCell(IntVec3 c, float colorPct = 0.5f) { CellRenderer.RenderCell(c, CellRenderer.MatFromColorPct(colorPct, true)); }