Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_EditorActionSelectionMenuEntry.c
Go to the documentation of this file.
1
5
10{
12 protected SCR_BaseActionsEditorComponent m_ActionsEditorComponent;
14 protected int m_iFlags;
15
16 //------------------------------------------------------------------------------------------------
22 {
23 return m_Action;
24 }
25
26 //------------------------------------------------------------------------------------------------
32 {
33 if (!m_Action)
34 return string.Empty;
35
36 return m_Action.GetShortcut();
37 }
38
39 //------------------------------------------------------------------------------------------------
40 protected override void OnPerform()
41 {
43 return;
44
45 // Try to find current cursor world position
47 if (editorMenuLayout)
48 editorMenuLayout.GetCursorWorldPos(m_vCursorWorldPos);
49
50 // Perform
52 }
53
54 //------------------------------------------------------------------------------------------------
55 void SCR_EditorActionSelectionMenuEntry(notnull SCR_BaseEditorAction action, notnull SCR_BaseActionsEditorComponent actionEditorComponent, vector cursorPosition, int actionFlags)
56 {
57 m_Action = action;
58 m_vCursorWorldPos = cursorPosition;
59 m_iFlags = actionFlags;
60 m_ActionsEditorComponent = actionEditorComponent;
61 }
62};
63
vector m_vCursorWorldPos
SCR_BaseEditorAction GetAction()
ref SCR_BaseEditorAction m_Action
SCR_BaseActionsEditorComponent m_ActionsEditorComponent
string GetActionShortcut()
override void OnPerform()
int m_iFlags
void SCR_EditorActionSelectionMenuEntry(notnull SCR_BaseEditorAction action, notnull SCR_BaseActionsEditorComponent actionEditorComponent, vector cursorPosition, int actionFlags)
bool GetCursorWorldPos(out vector worldPos, TraceFlags flags=-1)
void SCR_SelectionMenuEntry()