Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_MapDrawingUI.c File Reference

Go to the source code of this file.

Data Structures

class  MapLine
 Map line. More...
 

Functions

class MapLine Attribute ("editor", UIWidgets.EditBox, desc:"Toolmenu imageset quad name")] string m_sToolMenuIconName
 Temporary drawing substitute so the protractor can be utilized properly. More...
 
void CreateLine (notnull Widget rootW, bool drawStart=false)
 
protected void OnButtonClick ()
 
protected void OnButtonFocus ()
 
protected void OnButtonFocusLost (Widget w)
 
protected void OnMouseEnter (Widget w)
 
protected void OnMouseLeave (Widget w)
 
void SetButtonVisible (bool target)
 
void DestroyLine (bool cacheDrawn=false)
 
void UpdateLine (bool updateEndPos)
 
void MapLine (SCR_MapEntity mapEnt, SCR_MapDrawingUI ownerComp)
 
protected void ToggleDrawMode ()
 Toggle draw mode. More...
 
protected void SetDrawMode (bool state, bool cacheDrawn=false)
 
void UpdateLineCount ()
 
protected void OnMapClick (float value, EActionTrigger reason)
 
protected void OnMapPan (float x, float y, bool adjustedPan)
 
protected void OnMapPanEnd (float x, float y)
 
protected void OnEntryToggled (SCR_MapToolEntry entry)
 
protected void OnInputQuickBind (float value, EActionTrigger reason)
 
override void OnMapOpen (MapConfiguration config)
 
override void OnMapClose (MapConfiguration config)
 
override void Update (float timeSlice)
 
override void Init ()
 initialization More...
 

Variables

bool m_bIsLineDrawn
 
bool m_bIsDrawMode
 
float m_fStartPointX
 
float m_fStartPointY
 
float m_fEndPointX
 
float m_fEndPointY
 
Widget m_wRootW
 
Widget m_wLine
 
ImageWidget m_wLineImage
 
Widget m_wDeleteButton
 
SCR_ButtonImageComponent m_DeleteButtonComp
 
SCR_MapEntity m_MapEntity
 
SCR_MapDrawingUI m_OwnerComponent
 
int m_iLineCount
 
bool m_bActivationThrottle
 
bool m_bIsDrawModeActive
 
bool m_bIsLineBeingDrawn
 
int m_iLinesDrawn
 
protected int m_iLineID
 
protected Widget m_wDrawingContainer
 
protected SCR_MapCursorModule m_CursorModule
 
protected SCR_MapToolEntry m_ToolMenuEntry
 
protected ref array< ref MapLinem_aLines = new array <ref MapLine>()
 
const protected string m_aDrawableElements [1] = {"RulerFrame"}
 

Function Documentation

◆ Attribute()

class MapLine Attribute ( "editor"  ,
UIWidgets.  EditBox,
desc:"Toolmenu imageset quad name"   
)

Temporary drawing substitute so the protractor can be utilized properly.

◆ CreateLine()

void Attribute::CreateLine ( notnull Widget  rootW,
bool  drawStart = false 
)
Parameters
[in]rootW
[in]drawStart

Definition at line 20 of file SCR_MapDrawingUI.c.

◆ DestroyLine()

void Attribute::DestroyLine ( bool  cacheDrawn = false)
Parameters
[in]cacheDrawn

Definition at line 94 of file SCR_MapDrawingUI.c.

◆ MapLine()

void Attribute::MapLine ( SCR_MapEntity  mapEnt,
SCR_MapDrawingUI  ownerComp 
)
Parameters
[in]mapEnt
[in]ownerComp

Definition at line 155 of file SCR_MapDrawingUI.c.

◆ OnButtonClick()

protected void Attribute::OnButtonClick ( )

Definition at line 50 of file SCR_MapDrawingUI.c.

◆ OnButtonFocus()

protected void Attribute::OnButtonFocus ( )

Definition at line 60 of file SCR_MapDrawingUI.c.

◆ OnButtonFocusLost()

protected void Attribute::OnButtonFocusLost ( Widget  w)

Definition at line 66 of file SCR_MapDrawingUI.c.

◆ OnEntryToggled()

protected void OnEntryToggled ( SCR_MapToolEntry  entry)

SCR_MapToolEntry event

Parameters
[in]entry

Definition at line 355 of file SCR_MapDrawingUI.c.

◆ OnInputQuickBind()

protected void OnInputQuickBind ( float  value,
EActionTrigger  reason 
)

Definition at line 362 of file SCR_MapDrawingUI.c.

◆ OnMapClick()

protected void OnMapClick ( float  value,
EActionTrigger  reason 
)

Definition at line 254 of file SCR_MapDrawingUI.c.

◆ OnMapClose()

override void OnMapClose ( MapConfiguration  config)

Definition at line 395 of file SCR_MapDrawingUI.c.

◆ OnMapOpen()

override void OnMapOpen ( MapConfiguration  config)

Definition at line 368 of file SCR_MapDrawingUI.c.

◆ OnMapPan()

protected void OnMapPan ( float  x,
float  y,
bool  adjustedPan 
)

SCR_MapEntity event

Parameters
[in]x
[in]y
[in]adjustedPan

Definition at line 330 of file SCR_MapDrawingUI.c.

◆ OnMapPanEnd()

protected void OnMapPanEnd ( float  x,
float  y 
)

SCR_MapEntity event

Parameters
[in]x
[in]y

Definition at line 343 of file SCR_MapDrawingUI.c.

◆ OnMouseEnter()

protected void Attribute::OnMouseEnter ( Widget  w)

Definition at line 72 of file SCR_MapDrawingUI.c.

◆ OnMouseLeave()

protected void Attribute::OnMouseLeave ( Widget  w)

Definition at line 78 of file SCR_MapDrawingUI.c.

◆ SetButtonVisible()

void Attribute::SetButtonVisible ( bool  target)
Parameters
[in]target

Definition at line 85 of file SCR_MapDrawingUI.c.

◆ SetDrawMode()

protected void SetDrawMode ( bool  state,
bool  cacheDrawn = false 
)

Start/stop draw mode

Parameters
[in]state
[in]cacheDrawn

Definition at line 201 of file SCR_MapDrawingUI.c.

◆ ToggleDrawMode()

protected void ToggleDrawMode ( )

Toggle draw mode.

Definition at line 189 of file SCR_MapDrawingUI.c.

◆ Update()

override void Update ( float  timeSlice)
Parameters
[in]timeSlice

Definition at line 408 of file SCR_MapDrawingUI.c.

◆ UpdateLine()

void Attribute::UpdateLine ( bool  updateEndPos)
Parameters
[in]updateEndPos

Definition at line 112 of file SCR_MapDrawingUI.c.

◆ UpdateLineCount()

void UpdateLineCount ( )

Definition at line 248 of file SCR_MapDrawingUI.c.

Variable Documentation

◆ m_aDrawableElements

const protected string m_aDrawableElements[1] = {"RulerFrame"}

Definition at line 185 of file SCR_MapDrawingUI.c.

◆ m_aLines

protected ref array<ref MapLine> m_aLines = new array <ref MapLine>()

Definition at line 183 of file SCR_MapDrawingUI.c.

◆ m_bActivationThrottle

bool m_bActivationThrottle

Definition at line 173 of file SCR_MapDrawingUI.c.

◆ m_bIsDrawMode

bool m_bIsDrawMode

Definition at line 5 of file SCR_MapDrawingUI.c.

◆ m_bIsDrawModeActive

bool m_bIsDrawModeActive

Definition at line 174 of file SCR_MapDrawingUI.c.

◆ m_bIsLineBeingDrawn

bool m_bIsLineBeingDrawn

Definition at line 175 of file SCR_MapDrawingUI.c.

◆ m_bIsLineDrawn

bool m_bIsLineDrawn

Definition at line 4 of file SCR_MapDrawingUI.c.

◆ m_CursorModule

protected SCR_MapCursorModule m_CursorModule

Definition at line 181 of file SCR_MapDrawingUI.c.

◆ m_DeleteButtonComp

SCR_ButtonImageComponent m_DeleteButtonComp

Definition at line 12 of file SCR_MapDrawingUI.c.

◆ m_fEndPointX

float m_fEndPointX

Definition at line 7 of file SCR_MapDrawingUI.c.

◆ m_fEndPointY

float m_fEndPointY

Definition at line 7 of file SCR_MapDrawingUI.c.

◆ m_fStartPointX

float m_fStartPointX

Definition at line 6 of file SCR_MapDrawingUI.c.

◆ m_fStartPointY

float m_fStartPointY

Definition at line 6 of file SCR_MapDrawingUI.c.

◆ m_iLineCount

int m_iLineCount

Definition at line 171 of file SCR_MapDrawingUI.c.

◆ m_iLineID

protected int m_iLineID

Definition at line 177 of file SCR_MapDrawingUI.c.

◆ m_iLinesDrawn

int m_iLinesDrawn

Definition at line 176 of file SCR_MapDrawingUI.c.

◆ m_MapEntity

SCR_MapEntity m_MapEntity

Definition at line 13 of file SCR_MapDrawingUI.c.

◆ m_OwnerComponent

SCR_MapDrawingUI m_OwnerComponent

Definition at line 14 of file SCR_MapDrawingUI.c.

◆ m_ToolMenuEntry

protected SCR_MapToolEntry m_ToolMenuEntry

Definition at line 182 of file SCR_MapDrawingUI.c.

◆ m_wDeleteButton

Widget m_wDeleteButton

Definition at line 11 of file SCR_MapDrawingUI.c.

◆ m_wDrawingContainer

protected Widget m_wDrawingContainer

Definition at line 179 of file SCR_MapDrawingUI.c.

◆ m_wLine

Widget m_wLine

Definition at line 9 of file SCR_MapDrawingUI.c.

◆ m_wLineImage

ImageWidget m_wLineImage

Definition at line 10 of file SCR_MapDrawingUI.c.

◆ m_wRootW

Widget m_wRootW

Definition at line 8 of file SCR_MapDrawingUI.c.