/*--------------------------------------------------------------------------------------------*/ public virtual void Update() { vMainAlpha = UiItemSelectRenderer.GetArcAlpha(vMenuState); Color colBg = vSettings.BackgroundColor; colBg.a *= vMainAlpha; Materials.SetMeshColor(vBackgroundMesh, colBg); if (vSettings.TextSize != vLabel.FontSize) { const float scale = UiItemSelectRenderer.ArcCanvasScale; vLabel.SetSize(UiItemSelectRenderer.ArcCanvasThickness * scale, vSettings.TextSize * 1.5f * scale, vSettings.TextSize * 0.6f, scale); } vLabel.Alpha = vMainAlpha; vLabel.FontName = vSettings.TextFont; vLabel.FontSize = vSettings.TextSize; vLabel.Color = vSettings.TextColor; vLabel.Label = vMenuState.GetLevelTitle(); }