Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_HintManagerComponent.c File Reference

Go to the source code of this file.

Classes

class  SCR_HintManagerComponentClass

Typedefs

typedef func SCR_HintManagerComponent_OnHint

Functions

void SCR_HintManagerComponent_OnHint (SCR_HintUIInfo info, bool isSilent)
SCR_HintManagerComponentClass SCR_BaseGameModeComponentClass Attribute ("4")
void InitConditionLists (IEntity owner)
void ExitConditionLists (IEntity owner)
bool ShowCustom (string description, string name=string.Empty, float duration=0, bool isSilent=false, EHint type=EHint.UNDEFINED, EFieldManualEntryId fieldManualEntry=EFieldManualEntryId.NONE, bool isTimerVisible=false)
bool ClearHint ()
bool Repeat (bool isSilent=false)
bool Refresh ()
bool Hide (SCR_HintUIInfo info=null)
void Toggle ()
 Toggle hint. Hide it if it's shown, and open it again if it's hidden.
void OpenContext ()
 Open context to currently shown hint.
SCR_HintUIInfo GetLatestHint ()
SCR_HintUIInfo GetCurrentHint ()
bool IsShown ()
bool CanShow ()
bool WasShown (EHint hint, int limit=1)
bool WasShown (SCR_HintUIInfo info)
void SetDurationOverride (float duration)
float GetDurationOverride ()
ScriptInvokerBase< SCR_HintManagerComponent_OnHintGetOnHintShow ()
ScriptInvokerBase< SCR_HintManagerComponent_OnHintGetOnHintHide ()
void LoadSettings ()
void SetShown (SCR_HintUIInfo info)
void DontShowAgainCurrent ()
override void OnPostInit (IEntity owner)
 Editable Mine.
override void OnDelete (IEntity owner)

Variables

ref array< ref SCR_HintConditionListm_aConditionLists

Typedef Documentation

◆ SCR_HintManagerComponent_OnHint

Function Documentation

◆ Attribute()

◆ CanShow()

bool CanShow ( )

Check if hints are enabled in gameplay settings.

Returns
True when enabled

Definition at line 272 of file SCR_HintManagerComponent.c.

◆ ClearHint()

bool ClearHint ( )
Returns

Definition at line 162 of file SCR_HintManagerComponent.c.

◆ DontShowAgainCurrent()

void DontShowAgainCurrent ( )
protected

Definition at line 491 of file SCR_HintManagerComponent.c.

◆ ExitConditionLists()

void Attribute::ExitConditionLists ( IEntity owner)
protected
Parameters
[in]owner

Definition at line 53 of file SCR_HintManagerComponent.c.

◆ GetCurrentHint()

SCR_HintUIInfo GetCurrentHint ( )

Get thecurrently shown hint.

Returns
Hint UI info

Definition at line 253 of file SCR_HintManagerComponent.c.

◆ GetDurationOverride()

float GetDurationOverride ( )

Get override of hint duration.

Returns
Duration. When 0, no override is active.

Definition at line 310 of file SCR_HintManagerComponent.c.

◆ GetLatestHint()

SCR_HintUIInfo GetLatestHint ( )

Get the most recent hint.

Returns
Hint UI info

Definition at line 245 of file SCR_HintManagerComponent.c.

◆ GetOnHintHide()

ScriptInvokerBase< SCR_HintManagerComponent_OnHint > GetOnHintHide ( )

Get the event called when a hint is hidden.

Returns
Script invoker

Definition at line 326 of file SCR_HintManagerComponent.c.

◆ GetOnHintShow()

ScriptInvokerBase< SCR_HintManagerComponent_OnHint > GetOnHintShow ( )

Get the event called when a hint is shown.

Returns
Script invoker

Definition at line 318 of file SCR_HintManagerComponent.c.

◆ Hide()

bool Hide ( SCR_HintUIInfo info = null)

Hide currently shown hint.

Parameters
[in]infoWhen defined, clear only this hint. If other hint is shown, do nothing.
Returns
True if a hint was cleared

Definition at line 200 of file SCR_HintManagerComponent.c.

◆ InitConditionLists()

void Attribute::InitConditionLists ( IEntity owner)
protected
Parameters
[in]owner

Definition at line 42 of file SCR_HintManagerComponent.c.

◆ IsShown()

bool IsShown ( )

Check if a hint is shown at this moment.

Returns
True when shown

Definition at line 264 of file SCR_HintManagerComponent.c.

◆ LoadSettings()

void LoadSettings ( )
protected

Definition at line 455 of file SCR_HintManagerComponent.c.

◆ OnDelete()

override void OnDelete ( IEntity owner)
protected

Definition at line 538 of file SCR_HintManagerComponent.c.

◆ OpenContext()

void OpenContext ( )

Open context to currently shown hint.

Definition at line 232 of file SCR_HintManagerComponent.c.

◆ Refresh()

bool Refresh ( )

Silently refresh currently shown hint.

Returns
True if the hint was refreshed

Definition at line 188 of file SCR_HintManagerComponent.c.

◆ Repeat()

bool Repeat ( bool isSilent = false)

Repeat previously shown hint.

Parameters
[in]isSilent
Returns
True if the hint was shown

Definition at line 177 of file SCR_HintManagerComponent.c.

◆ SCR_HintManagerComponent_OnHint()

◆ SetDurationOverride()

void SetDurationOverride ( float duration)

Override hint duration.

Parameters
[in]duration.When 0, override is reset.

Definition at line 303 of file SCR_HintManagerComponent.c.

◆ SetShown()

void SetShown ( SCR_HintUIInfo info)
protected

Definition at line 477 of file SCR_HintManagerComponent.c.

◆ ShowCustom()

bool ShowCustom ( string description,
string name = string.Empty,
float duration = 0,
bool isSilent = false,
EHint type = EHint.UNDEFINED,
EFieldManualEntryId fieldManualEntry = EFieldManualEntryId.NONE,
bool isTimerVisible = false )

Show hint made of custom texts.


WARNING!

Use only for quick debugging. For legit use, please configure the hint as SCR_UIInfo attribute on your entity/component/config! That will allow you to set all hint properties, as well as to localize it using LocParserPlugin.


Parameters
[in]descriptionHint text
[in]nameHint title
[in]durationFor how long should the hint be shown (in seconds)
[in]isSilentTrue to show the hint without any sound effect
[in]typeHint type. When defined, the hint will be shown only once and never again.
Returns
True if the hint was shown

Definition at line 153 of file SCR_HintManagerComponent.c.

◆ Toggle()

void Toggle ( )

Toggle hint. Hide it if it's shown, and open it again if it's hidden.

Definition at line 219 of file SCR_HintManagerComponent.c.

◆ WasShown() [1/2]

bool WasShown ( EHint hint,
int limit = 1 )

Check if hint type was shown previously (even in previous game sessions; the information is stored persistently).

Parameters
[in]hintHint type
[in]limitHow many times can the hint be shown
Returns
True when shown

Definition at line 282 of file SCR_HintManagerComponent.c.

◆ WasShown() [2/2]

bool WasShown ( SCR_HintUIInfo info)

Check if hint info was shown previously (even in previous game sessions; the information is stored persistently).

Returns
True when shown

Definition at line 295 of file SCR_HintManagerComponent.c.

Variable Documentation

◆ m_aConditionLists

ref array<ref SCR_HintConditionList> m_aConditionLists
protected

Definition at line 37 of file SCR_HintManagerComponent.c.