Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_SpiderNet Class Reference
Inheritance diagram for SCR_SpiderNet:
ScriptedWidgetComponent

Protected Member Functions

override void HandlerAttached (Widget w)
void RegisterCareerProfileHandler (SCR_CareerSpecializationsUI instance)
void SetSpPoints (array< float > specializations, bool newStats=true)
void DrawSpiderNet ()
override bool OnUpdate (Widget w)
void CalculateVertices (array< float > points, array< float > oldPoints)
void DrawVertices ()
 Create inner polygon.
CanvasWidgetCommand InnerArea ()
CanvasWidgetCommand OldInnerArea ()
CanvasWidgetCommand OuterArea ()
CanvasWidgetCommand OldOuterArea ()
void DrawLegends ()
void CreateLegend (float positionX, float positionY, string title, int id)
void AdjustLegend (Widget legendWidget, SCR_ButtonLegendComponent handler, float positionX, float positionY)
void OnButtonClick (SCR_ButtonLegendComponent buttonHandler)
void OnMouseEnterButton (SCR_ButtonLegendComponent buttonHandler)
void OnMouseLeaveButton (SCR_ButtonLegendComponent buttonHandler)

Protected Attributes

CanvasWidget m_wCanvasWidget
vector m_vCenter
float m_fRadius
const float m_fLegendOffsetAsRadius = 0.2
ref array< ref CanvasWidgetCommand > m_aCanvasCommands
ref array< floatm_aVertices
ref array< floatm_aOldVertices
ref array< floatm_aLegendPositions
ImageWidget m_wbackgroundImage
ref array< ref Widgetm_aLegends
Widget m_wSpiderNetFrame
SCR_CareerSpecializationsUI m_CareerSpecializationsHandler = null
int m_iNumberOfPoints
ref array< floatm_aSpPoints
ref array< floatm_aOldSpPoints
ref Color m_iPolygonColor
ref Color m_iOutlineColor
ref Color m_iOldStatsPolygonColor
ref Color m_iOldStatsOutlineColor
float m_fMinRepresentativeValue
ResourceName m_LegendLayout

Detailed Description

Definition at line 2 of file SCR_SpiderNet.c.

Member Function Documentation

◆ AdjustLegend()

void SCR_SpiderNet::AdjustLegend ( Widget legendWidget,
SCR_ButtonLegendComponent handler,
float positionX,
float positionY )
inlineprotected

Definition at line 279 of file SCR_SpiderNet.c.

◆ CalculateVertices()

void SCR_SpiderNet::CalculateVertices ( array< float > points,
array< float > oldPoints )
inlineprotected

To navigate a CanvasWidget we do minus operation to move upwards on the vertical axis Because the CanvasWidget has the 0,0 coordinate at the top-left corner of the widget

That's why to calculate position we do x=center+h*cos(angle), y=center-h*sin(angle). Because the sin is inverted. So we need to invert the sum operation when working with sin if we want to invert the vertical direction and move upwards by decreasing on the y

Definition at line 113 of file SCR_SpiderNet.c.

◆ CreateLegend()

void SCR_SpiderNet::CreateLegend ( float positionX,
float positionY,
string title,
int id )
inlineprotected

Definition at line 245 of file SCR_SpiderNet.c.

◆ DrawLegends()

void SCR_SpiderNet::DrawLegends ( )
inlineprotected

Definition at line 224 of file SCR_SpiderNet.c.

◆ DrawSpiderNet()

void SCR_SpiderNet::DrawSpiderNet ( )
inlineprotected

Definition at line 75 of file SCR_SpiderNet.c.

◆ DrawVertices()

void SCR_SpiderNet::DrawVertices ( )
inlineprotected

Create inner polygon.

Definition at line 161 of file SCR_SpiderNet.c.

◆ HandlerAttached()

override void SCR_SpiderNet::HandlerAttached ( Widget w)
inlineprotected

Definition at line 44 of file SCR_SpiderNet.c.

◆ InnerArea()

CanvasWidgetCommand SCR_SpiderNet::InnerArea ( )
inlineprotected

Definition at line 174 of file SCR_SpiderNet.c.

◆ OldInnerArea()

CanvasWidgetCommand SCR_SpiderNet::OldInnerArea ( )
inlineprotected

Definition at line 185 of file SCR_SpiderNet.c.

◆ OldOuterArea()

CanvasWidgetCommand SCR_SpiderNet::OldOuterArea ( )
inlineprotected

Definition at line 210 of file SCR_SpiderNet.c.

◆ OnButtonClick()

void SCR_SpiderNet::OnButtonClick ( SCR_ButtonLegendComponent buttonHandler)
inlineprotected

Definition at line 310 of file SCR_SpiderNet.c.

◆ OnMouseEnterButton()

void SCR_SpiderNet::OnMouseEnterButton ( SCR_ButtonLegendComponent buttonHandler)
inlineprotected

Definition at line 321 of file SCR_SpiderNet.c.

◆ OnMouseLeaveButton()

void SCR_SpiderNet::OnMouseLeaveButton ( SCR_ButtonLegendComponent buttonHandler)
inlineprotected

Definition at line 332 of file SCR_SpiderNet.c.

◆ OnUpdate()

override bool SCR_SpiderNet::OnUpdate ( Widget w)
inlineprotected

Definition at line 101 of file SCR_SpiderNet.c.

◆ OuterArea()

CanvasWidgetCommand SCR_SpiderNet::OuterArea ( )
inlineprotected

Definition at line 196 of file SCR_SpiderNet.c.

◆ RegisterCareerProfileHandler()

void SCR_SpiderNet::RegisterCareerProfileHandler ( SCR_CareerSpecializationsUI instance)
inlineprotected

Definition at line 51 of file SCR_SpiderNet.c.

◆ SetSpPoints()

void SCR_SpiderNet::SetSpPoints ( array< float > specializations,
bool newStats = true )
inlineprotected

Definition at line 56 of file SCR_SpiderNet.c.

Member Data Documentation

◆ m_aCanvasCommands

ref array<ref CanvasWidgetCommand> SCR_SpiderNet::m_aCanvasCommands
protected

Definition at line 10 of file SCR_SpiderNet.c.

◆ m_aLegendPositions

ref array<float> SCR_SpiderNet::m_aLegendPositions
protected

Definition at line 13 of file SCR_SpiderNet.c.

◆ m_aLegends

ref array<ref Widget> SCR_SpiderNet::m_aLegends
protected

Definition at line 16 of file SCR_SpiderNet.c.

◆ m_aOldSpPoints

ref array<float> SCR_SpiderNet::m_aOldSpPoints
protected

Definition at line 23 of file SCR_SpiderNet.c.

◆ m_aOldVertices

ref array<float> SCR_SpiderNet::m_aOldVertices
protected

Definition at line 12 of file SCR_SpiderNet.c.

◆ m_aSpPoints

ref array<float> SCR_SpiderNet::m_aSpPoints
protected

Definition at line 23 of file SCR_SpiderNet.c.

◆ m_aVertices

ref array<float> SCR_SpiderNet::m_aVertices
protected

Definition at line 11 of file SCR_SpiderNet.c.

◆ m_CareerSpecializationsHandler

SCR_CareerSpecializationsUI SCR_SpiderNet::m_CareerSpecializationsHandler = null
protected

Definition at line 20 of file SCR_SpiderNet.c.

◆ m_fLegendOffsetAsRadius

const float SCR_SpiderNet::m_fLegendOffsetAsRadius = 0.2
protected

Definition at line 8 of file SCR_SpiderNet.c.

◆ m_fMinRepresentativeValue

float SCR_SpiderNet::m_fMinRepresentativeValue
protected

Definition at line 38 of file SCR_SpiderNet.c.

◆ m_fRadius

float SCR_SpiderNet::m_fRadius
protected

Definition at line 7 of file SCR_SpiderNet.c.

◆ m_iNumberOfPoints

int SCR_SpiderNet::m_iNumberOfPoints
protected

Definition at line 22 of file SCR_SpiderNet.c.

◆ m_iOldStatsOutlineColor

ref Color SCR_SpiderNet::m_iOldStatsOutlineColor
protected

Definition at line 35 of file SCR_SpiderNet.c.

◆ m_iOldStatsPolygonColor

ref Color SCR_SpiderNet::m_iOldStatsPolygonColor
protected

Definition at line 32 of file SCR_SpiderNet.c.

◆ m_iOutlineColor

ref Color SCR_SpiderNet::m_iOutlineColor
protected

Definition at line 29 of file SCR_SpiderNet.c.

◆ m_iPolygonColor

ref Color SCR_SpiderNet::m_iPolygonColor
protected

Definition at line 26 of file SCR_SpiderNet.c.

◆ m_LegendLayout

ResourceName SCR_SpiderNet::m_LegendLayout
protected

Definition at line 41 of file SCR_SpiderNet.c.

◆ m_vCenter

vector SCR_SpiderNet::m_vCenter
protected

Definition at line 6 of file SCR_SpiderNet.c.

◆ m_wbackgroundImage

ImageWidget SCR_SpiderNet::m_wbackgroundImage
protected

Definition at line 14 of file SCR_SpiderNet.c.

◆ m_wCanvasWidget

CanvasWidget SCR_SpiderNet::m_wCanvasWidget
protected

Definition at line 4 of file SCR_SpiderNet.c.

◆ m_wSpiderNetFrame

Widget SCR_SpiderNet::m_wSpiderNetFrame
protected

Definition at line 18 of file SCR_SpiderNet.c.


The documentation for this class was generated from the following file: