25 [
Attribute(defvalue:
"0.761 0.386 0.08 0.059",
desc:
"Outline Graph Color")]
28 [
Attribute(defvalue:
"0.761 0.386 0.08 1",
desc:
"Outline Graph Color")]
31 [
Attribute(defvalue:
"0.761 0.571 0.347 0.059",
desc:
"Outline Graph Color for OLD stats")]
34 [
Attribute(defvalue:
"0.761 0.484 0.199 1",
desc:
"Outline Graph Color for OLD stats")]
37 [
Attribute(
"0.03",
"auto",
"Value to display when progress is 0")]
56 void SetSpPoints(array<float> specializations,
bool newStats =
true)
62 for (
int i = 0, count = specializations.Count(); i < count; i++)
70 for (
int i = 0, count = specializations.Count(); i < count; i++)
120 float angle, lengthToPoint, lengthToOldPoint, lengthToLegend;
138 lengthToOldPoint =
m_fRadius * oldPoints[i];
176 PolygonDrawCommand polygon =
new PolygonDrawCommand();
187 PolygonDrawCommand polygon =
new PolygonDrawCommand();
201 surface.m_fWidth = 4;
202 surface.m_fOutlineWidth = 6;
204 surface.m_bShouldEnclose =
true;
215 surface.m_fWidth = 4;
216 surface.m_fOutlineWidth = 6;
218 surface.m_bShouldEnclose =
true;
234 case 0: name =
"1";
break;
235 case 1: name =
"2";
break;
236 case 2: name =
"3";
break;
237 default: name =
"Undefined ID";
break;
245 protected void CreateLegend(
float positionX,
float positionY,
string title,
int id)
274 AdjustLegend(legendWidget, handler, positionX, positionY);
286 image.GetScreenSize(x, y);
287 if (x == 0 && y == 0)
289 GetGame().GetCallqueue().CallLater(
AdjustLegend, 10,
false, legendWidget, handler, positionX, positionY);
297 positionX = workspace.DPIUnscale(positionX - x/2);
298 positionY = workspace.DPIUnscale(positionY - y/2);
300 FrameSlot.SetPos(legendWidget, positionX, positionY);
ArmaReforgerScripted GetGame()
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
CanvasWidgetCommand OldInnerArea()
void OnButtonClick(SCR_ButtonLegendComponent buttonHandler)
void CalculateVertices(array< float > points, array< float > oldPoints)
void AdjustLegend(Widget legendWidget, SCR_ButtonLegendComponent handler, float positionX, float positionY)
ref Color m_iPolygonColor
ref array< float > m_aSpPoints
override bool OnUpdate(Widget w)
CanvasWidget m_wCanvasWidget
ImageWidget m_wbackgroundImage
ref array< float > m_aLegendPositions
void RegisterCareerProfileHandler(SCR_CareerSpecializationsUI instance)
ResourceName m_LegendLayout
ref array< float > m_aOldSpPoints
ref Color m_iOldStatsOutlineColor
CanvasWidgetCommand OuterArea()
CanvasWidgetCommand InnerArea()
float m_fMinRepresentativeValue
void OnMouseLeaveButton(SCR_ButtonLegendComponent buttonHandler)
ref Color m_iOutlineColor
override void HandlerAttached(Widget w)
CanvasWidgetCommand OldOuterArea()
ref array< ref CanvasWidgetCommand > m_aCanvasCommands
ref Color m_iOldStatsPolygonColor
ref array< float > m_aOldVertices
ref array< ref Widget > m_aLegends
ref array< float > m_aVertices
void SetSpPoints(array< float > specializations, bool newStats=true)
SCR_CareerSpecializationsUI m_CareerSpecializationsHandler
const float m_fLegendOffsetAsRadius
void OnMouseEnterButton(SCR_ButtonLegendComponent buttonHandler)
void CreateLegend(float positionX, float positionY, string title, int id)
void DrawVertices()
Create inner polygon.
SCR_FieldOfViewSettings Attribute