养成基本完毕,新UI,修bug,装备初步,

This commit is contained in:
FloatGaming
2026-03-23 22:37:14 +08:00
parent 49e45ac464
commit dd205b6cb4
2349 changed files with 261722 additions and 283 deletions
@@ -364,6 +364,9 @@ namespace EasyChart.Layers
var labelColor = angleAxis.labelStyle != null ? angleAxis.labelStyle.color : angleAxis.labelColor;
float labelRadius = outerRadiusPx + Mathf.Max(6f, fontSize * 0.6f);
Vector2 axisOffset = angleAxis.labelStyle != null ? angleAxis.labelStyle.offset : angleAxis.labelOffset;
float labelRadialOffset = primarySerie.settings is RadarSettings radarSettings && radarSettings.radar != null && radarSettings.radar.plot != null
? radarSettings.radar.plot.labelRadialOffset
: 0f;
for (int i = 0; i < dimensionCount; i++)
{
@@ -371,7 +374,7 @@ namespace EasyChart.Layers
Vector2 dir = AngleToDir(angle);
string text = ResolveDimensionLabel(labels, primarySerie, i);
Vector2 pos = center + dir * labelRadius + axisOffset;
Vector2 pos = center + dir * (labelRadius + labelRadialOffset) + axisOffset;
float ax = Mathf.Abs(dir.x);
float ay = Mathf.Abs(dir.y);