Arma Reforger Script API
|
Radial menu class for handling HUD part of menu. More...
Public Member Functions | |
override void | DisplayStartDraw (IEntity owner) |
Setup menu. | |
override void | DisplayStopDraw (IEntity owner) |
override void | DisplayUpdate (IEntity owner, float timeSlice) |
override void | SetupMenu (SCR_SelectionMenu menu) |
Set menu and register callback reactions for menu Clear callbacks if there was any other menu used. | |
void | VisualizeEnableEntry (notnull SCR_SelectionMenuEntryComponent entry, int id, bool enable) |
void | ShowInnerBackground (bool show) |
void | ShowCrosshair (bool show) |
Public Member Functions inherited from SCR_SelectionMenuDisplay | |
void | SetupMenu (SCR_SelectionMenu menu) |
Set menu and register callback reactions for menu Clear callbacks if there was any other menu used. | |
override void | DisplayStartDraw (IEntity owner) |
Setup menu | |
override void | DisplayOnSuspended () |
Called when GUI is temporarily suspended due to visibility flags; e.g. GM entered and GUI marked as not to show in GM. | |
SCR_SelectionMenu | GetMenu () |
Public Member Functions inherited from SCR_InfoDisplayExtended | |
void | SetEnabled (bool isEnabled) |
override void | Show (bool show, float speed=UIConstants.FADE_RATE_INSTANT, EAnimationCurve curve=EAnimationCurve.LINEAR) |
Show/hide InfoDisplay properly, not breaking other systems like AdaptiveOpacity or ConditionalVisibility. | |
Public Member Functions inherited from SCR_InfoDisplay | |
SCR_InfoDisplayHandler | GetHandler (TypeName handlerType) |
SCR_InfoDisplayInvoker | GetOnStart () |
SCR_InfoDisplayInvoker | GetOnStop () |
IEntity | GetOwnerEntity () |
Widget | GetContentWidget () |
string | GetContentWidgetName () |
void | SetRootWidget (notnull Widget root) |
void | SetContentWidget (notnull Widget content) |
void | Show (bool show, float speed=UIConstants.FADE_RATE_INSTANT, EAnimationCurve curve=EAnimationCurve.LINEAR) |
Show/hide InfoDisplay properly, not breaking other systems like AdaptiveOpacity or ConditionalVisibility. | |
bool | IsShown () |
Widget | GetRootWidget () |
bool | GetDimensions (out float width, out float height, bool addSafezones=true) |
Get width and height of the InfoDisplay element, optionally with safezones adjustments. | |
bool | GetAnchorPosition (out float x, out float y, EWidgetAnchor anchor=EWidgetAnchor.TOPLEFT, bool addSafezones=true) |
Get width and height of the InfoDisplay element, optionally with safezones adjustments. | |
void | RegisterToHudManager () |
Public Member Functions inherited from GroupInfoDisplay | |
proto external int | GetInfoDisplays (out notnull array< BaseInfoDisplay > outInfoDisplays) |
Public Member Functions inherited from BaseInfoDisplay | |
proto external GenericComponent | FindComponentInParentContainer (TypeName typeName) |
Protected Member Functions | |
override void | OnMenuOpen () |
override void | OnShownFinished (Widget w, float targetOpacity, WidgetAnimationOpacity anim=null) |
void | SetupMenuCenter () |
override void | OnMenuClose () |
override void | OnMenuEntriesUpdate (SCR_SelectionMenu menu, array< ref SCR_SelectionMenuEntry > entries) |
override void | SetupEntryWidget (notnull SCR_SelectionMenuEntry entry, notnull Widget widget, int id) |
Setup entry widget properties specific for each menu Method can e.g. | |
void | CreateNumberHint (int id) |
Create number hint to the enter to state quick number action to use. | |
override void | OnMenuEntrySelected (SCR_SelectionMenu menu, SCR_SelectionMenuEntry entry, int id) |
React on selected entry change. | |
override void | OnMenuEntryPerform (SCR_SelectionMenu menu, SCR_SelectionMenuEntry entry) |
React on selected entry change. | |
void | OnEntrySizeAnimCycleCompleted (WidgetAnimationBase anim) |
override void | ClearEntryWidgets () |
Clear segments and lines. | |
vector | GetPointOnCircle (float radius, float degrees) |
Vector X Y positions from radisu (distance) and degrees (angle) | |
void | VisualizeSelection (float selectionAngle) |
float | SetupFrameSlotPosition (out notnull Widget widget, int id, float distance, float angle, float angleOffset=0) |
Setup widget position and angle in frame slot. | |
void | CreateEntrySegment (notnull SCR_SelectionMenuEntry entry, notnull Widget widget, int id) |
Add to circle segments filling entry area. | |
void | CreateDivider (int id) |
Add divider after entry segments. | |
void | SetupEntryHint (string text, int id) |
void | DisplayEntryHint () |
void | OnDisplaySizeChange (SCR_RadialMenu menu, float size) |
Callback reacting to changing size from SCR_RadialMenu. | |
void | OnSetActionHint (SCR_RadialMenu menu, string action) |
Callback to display action hint icon. | |
void | OnMenuOpenCategory (SCR_SelectionMenu menu, SCR_SelectionMenuCategoryEntry category, int level) |
void | LateMenuEntriesUpdate () |
void | ChangeCategoryOpen (SCR_SelectionMenu menu, SCR_SelectionMenuCategoryEntry category, int level) |
void | SetupSelectionVisuals () |
Protected Member Functions inherited from SCR_SelectionMenuDisplay | |
void | FindMenu () |
Method ready for override to find menu at custom place. | |
void | CreateEntryWidgets () |
Will create entries in HUD layout. | |
void | CreateNewEntry (int i) |
void | RemoveEntry (Widget entry, int id) |
void | SetupEntryWidget (notnull SCR_SelectionMenuEntry entry, notnull Widget widget, int id) |
Setup entry widget properties specific for each menu Method can e.g. | |
void | ClearEntryWidgets () |
Remove all entries from HUD layout. | |
bool | EntriesChanged (array< ref SCR_SelectionMenuEntry > entries) |
Check if used data are still same. | |
void | OnMenuOpen () |
void | OnMenuClose () |
void | OnMenuEntriesUpdate (SCR_SelectionMenu menu, array< ref SCR_SelectionMenuEntry > entries) |
void | OnMenuEntrySelected (SCR_SelectionMenu menu, SCR_SelectionMenuEntry entry, int id) |
React on selected entry change. | |
void | OnMenuEntryPerform (SCR_SelectionMenu menu, SCR_SelectionMenuEntry entry) |
React on selected entry change. | |
void | DebugPrint (string method, string msg) |
Protected Member Functions inherited from SCR_InfoDisplayExtended | |
bool | DisplayStartDrawInit (IEntity owner) |
void | DisplayStartDraw (IEntity owner) |
void | DisplayStopDraw (IEntity owner) |
void | DisplayInit (IEntity owner) |
void | DisplayUpdate (IEntity owner, float timeSlice) |
void | DisplayControlledEntityChanged (IEntity from, IEntity to) |
void | DisplayConsciousnessChanged (bool conscious, bool init=false) |
void | DisplayOnSuspended () |
Called when GUI is temporarily suspended due to visibility flags; e.g. GM entered and GUI marked as not to show in GM. | |
void | DisplayOnResumed () |
void | InitializeInterfaceSettings () |
void | OnSettingsChanged () |
Protected Member Functions inherited from SCR_InfoDisplay | |
void | OnShownFinished (Widget w, float targetOpacity, WidgetAnimationOpacity anim=null) |
override void | OnStartDraw (IEntity owner) |
void | AdaptiveOpacity_Update (float opacity, float sceneBrightness, bool init=false) |
override void | OnStopDraw (IEntity owner) |
override void | UpdateValues (IEntity owner, float timeSlice) |
override void | OnInit (IEntity owner) |
void | OnInit (IEntity owner) |
void | UpdateValues (IEntity owner, float timeSlice) |
void | OnStartDraw (IEntity owner) |
void | OnStopDraw (IEntity owner) |
Static Protected Attributes | |
const string | HINT_BASE = "<action name='%1' hideEmpty='1'/>" |
const float | CHANGE_CONTENT_OPACITY = 0.4 |
const float | ENTRY_ANIMATION_SCALE = 1.25 |
const float | ENTRY_ANIMATION_SPEED = 7.5 |
Static Protected Attributes inherited from SCR_SelectionMenuDisplay | |
const float | FADE_IN_SPEED = UIConstants.FADE_RATE_SUPER_FAST |
Additional Inherited Members | |
Public Attributes inherited from SCR_InfoDisplay | |
ResourceName | m_LayoutPath |
EHudLayers | m_eLayer |
int | m_iOverrideZOrder |
Radial menu class for handling HUD part of menu.
Displays menu circle and distributes entries into the circle
|
protected |
|
protected |
Clear segments and lines.
Implements SCR_SelectionMenuDisplay.
|
protected |
Add divider after entry segments.
|
protected |
Add to circle segments filling entry area.
|
protected |
Create number hint to the enter to state quick number action to use.
|
protected |
override void SCR_RadialMenuDisplay.DisplayStartDraw | ( | IEntity | owner | ) |
override void SCR_RadialMenuDisplay.DisplayStopDraw | ( | IEntity | owner | ) |
Implements SCR_InfoDisplayExtended.
override void SCR_RadialMenuDisplay.DisplayUpdate | ( | IEntity | owner, |
float | timeSlice | ||
) |
Implements SCR_InfoDisplayExtended.
|
protected |
Vector X Y positions from radisu (distance) and degrees (angle)
|
protected |
|
protected |
Callback reacting to changing size from SCR_RadialMenu.
|
protected |
|
protected |
Implements SCR_SelectionMenuDisplay.
|
protected |
Implements SCR_SelectionMenuDisplay.
|
protected |
React on selected entry change.
Implements SCR_SelectionMenuDisplay.
Implemented in SCR_VONRadialDisplay.
|
protected |
React on selected entry change.
Implements SCR_SelectionMenuDisplay.
|
protected |
Implements SCR_SelectionMenuDisplay.
|
protected |
|
protected |
Callback to display action hint icon.
|
protected |
Implements SCR_InfoDisplay.
|
protected |
|
protected |
Setup entry widget properties specific for each menu Method can e.g.
entries position - that can be different for horizontal and radial menus Ready for override
Implements SCR_SelectionMenuDisplay.
|
protected |
Setup widget position and angle in frame slot.
override void SCR_RadialMenuDisplay.SetupMenu | ( | SCR_SelectionMenu | menu | ) |
Set menu and register callback reactions for menu Clear callbacks if there was any other menu used.
Implements SCR_SelectionMenuDisplay.
|
protected |
|
protected |
void SCR_RadialMenuDisplay.ShowCrosshair | ( | bool | show | ) |
void SCR_RadialMenuDisplay.ShowInnerBackground | ( | bool | show | ) |
void SCR_RadialMenuDisplay.VisualizeEnableEntry | ( | notnull SCR_SelectionMenuEntryComponent | entry, |
int | id, | ||
bool | enable | ||
) |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |