Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
SCR_SpiderNet Interface Reference
Inheritance diagram for SCR_SpiderNet:
[legend]

Public Member Functions

void RegisterCareerProfileHandler (SCR_CareerSpecializationsUI instance)
 
void SetSpPoints (array< float > specializations, bool newStats=true)
 
void DrawSpiderNet ()
 
override bool OnUpdate (Widget w)
 
void OnButtonClick (SCR_ButtonLegendComponent buttonHandler)
 
void OnMouseEnterButton (SCR_ButtonLegendComponent buttonHandler)
 
void OnMouseLeaveButton (SCR_ButtonLegendComponent buttonHandler)
 

Protected Member Functions

override void HandlerAttached (Widget w)
 
void CalculateVertices (array< float > points, array< float > oldPoints)
 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.
 
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)
 

Protected Attributes

CanvasWidget m_wCanvasWidget
 
vector m_vCenter
 
float m_fRadius
 
ref array< ref CanvasWidgetCommand > m_aCanvasCommands
 
ref array< float > m_aVertices
 
ref array< float > m_aOldVertices
 
ref array< float > m_aLegendPositions
 
ImageWidget m_wbackgroundImage
 
ref array< ref Widget > m_aLegends
 
Widget m_wSpiderNetFrame
 
SCR_CareerSpecializationsUI m_CareerSpecializationsHandler = null
 
int m_iNumberOfPoints
 
ref array< float > m_aSpPoints
 
ref array< float > m_aOldSpPoints
 
ref Color m_iPolygonColor
 
ref Color m_iOutlineColor
 
ref Color m_iOldStatsPolygonColor
 
ref Color m_iOldStatsOutlineColor
 
float m_fMinRepresentativeValue
 
ResourceName m_LegendLayout
 

Static Protected Attributes

const float m_fLegendOffsetAsRadius = 0.2
 

Member Function Documentation

◆ AdjustLegend()

void SCR_SpiderNet.AdjustLegend ( Widget  legendWidget,
SCR_ButtonLegendComponent  handler,
float  positionX,
float  positionY 
)
protected

◆ CalculateVertices()

void SCR_SpiderNet.CalculateVertices ( array< float >  points,
array< float >  oldPoints 
)
protected

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

◆ CreateLegend()

void SCR_SpiderNet.CreateLegend ( float  positionX,
float  positionY,
string  title,
int  id 
)
protected

◆ DrawLegends()

void SCR_SpiderNet.DrawLegends ( )
protected

◆ DrawSpiderNet()

void SCR_SpiderNet.DrawSpiderNet ( )

◆ DrawVertices()

void SCR_SpiderNet.DrawVertices ( )
protected

Create inner polygon.

◆ HandlerAttached()

override void SCR_SpiderNet.HandlerAttached ( Widget  w)
protected

◆ InnerArea()

CanvasWidgetCommand SCR_SpiderNet.InnerArea ( )
protected

◆ OldInnerArea()

CanvasWidgetCommand SCR_SpiderNet.OldInnerArea ( )
protected

◆ OldOuterArea()

CanvasWidgetCommand SCR_SpiderNet.OldOuterArea ( )
protected

◆ OnButtonClick()

void SCR_SpiderNet.OnButtonClick ( SCR_ButtonLegendComponent  buttonHandler)

◆ OnMouseEnterButton()

void SCR_SpiderNet.OnMouseEnterButton ( SCR_ButtonLegendComponent  buttonHandler)

◆ OnMouseLeaveButton()

void SCR_SpiderNet.OnMouseLeaveButton ( SCR_ButtonLegendComponent  buttonHandler)

◆ OnUpdate()

override bool SCR_SpiderNet.OnUpdate ( Widget  w)

◆ OuterArea()

CanvasWidgetCommand SCR_SpiderNet.OuterArea ( )
protected

◆ RegisterCareerProfileHandler()

void SCR_SpiderNet.RegisterCareerProfileHandler ( SCR_CareerSpecializationsUI  instance)

◆ SetSpPoints()

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

Member Data Documentation

◆ m_aCanvasCommands

ref array<ref CanvasWidgetCommand> SCR_SpiderNet.m_aCanvasCommands
protected

◆ m_aLegendPositions

ref array<float> SCR_SpiderNet.m_aLegendPositions
protected

◆ m_aLegends

ref array<ref Widget> SCR_SpiderNet.m_aLegends
protected

◆ m_aOldSpPoints

ref array<float> SCR_SpiderNet.m_aOldSpPoints
protected

◆ m_aOldVertices

ref array<float> SCR_SpiderNet.m_aOldVertices
protected

◆ m_aSpPoints

ref array<float> SCR_SpiderNet.m_aSpPoints
protected

◆ m_aVertices

ref array<float> SCR_SpiderNet.m_aVertices
protected

◆ m_CareerSpecializationsHandler

SCR_CareerSpecializationsUI SCR_SpiderNet.m_CareerSpecializationsHandler = null
protected

◆ m_fLegendOffsetAsRadius

const float SCR_SpiderNet.m_fLegendOffsetAsRadius = 0.2
staticprotected

◆ m_fMinRepresentativeValue

float SCR_SpiderNet.m_fMinRepresentativeValue
protected

◆ m_fRadius

float SCR_SpiderNet.m_fRadius
protected

◆ m_iNumberOfPoints

int SCR_SpiderNet.m_iNumberOfPoints
protected

◆ m_iOldStatsOutlineColor

ref Color SCR_SpiderNet.m_iOldStatsOutlineColor
protected

◆ m_iOldStatsPolygonColor

ref Color SCR_SpiderNet.m_iOldStatsPolygonColor
protected

◆ m_iOutlineColor

ref Color SCR_SpiderNet.m_iOutlineColor
protected

◆ m_iPolygonColor

ref Color SCR_SpiderNet.m_iPolygonColor
protected

◆ m_LegendLayout

ResourceName SCR_SpiderNet.m_LegendLayout
protected

◆ m_vCenter

vector SCR_SpiderNet.m_vCenter
protected

◆ m_wbackgroundImage

ImageWidget SCR_SpiderNet.m_wbackgroundImage
protected

◆ m_wCanvasWidget

CanvasWidget SCR_SpiderNet.m_wCanvasWidget
protected

◆ m_wSpiderNetFrame

Widget SCR_SpiderNet.m_wSpiderNetFrame
protected

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