Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_VotingStickyNotificationUIComponent Class Reference
Inheritance diagram for SCR_VotingStickyNotificationUIComponent:
SCR_StickyNotificationUIComponent

Protected Member Functions

void OnVotingChanged (bool isInit=false)
void OnSettingsMenuClosed (ChimeraMenuBase menu)
string GetPlayerName (int playerId)
void EnableContextAction (bool enable)
void InstantVotingContextUpdate ()
 Updates each frame to keep InstantVotingContext active.
void EnableVotingTimerUI (bool enable)
void VotingTimeUpdate ()
 Called when only 1 vote is active or when local player is the subject of the vote and timer is displayed. Called every 1 second to update.
void OnVoteStartOrChanged (EVotingType type, int value)
void OnVoteCountChanged (EVotingType type, int value, int voteCount)
void OnVotingEnd (EVotingType type, int value, int winner)
void OnPlayerJoinOrLeaveServer (int playerId)
void OnPlayerFactionChanged (Faction faction, int newCount)
override void OnInit (SCR_NotificationsLogComponent notificationLog)
override void OnButton ()
override void OnDestroy ()

Protected Attributes

LocalizedString m_sMultipleVotesText
string m_sInstantVoteLayoutName
string m_sRemainingVotingTimeName
string m_sVotingInstantVoteButtonsName
string m_sCurrentVoteCountFormatting
Widget m_InstantVoteLayout
TextWidget m_RemainingVotingTime
Widget m_VotingInstantVoteButtons
SCR_VotingManagerComponent m_VotingManagerComponent
EVotingType m_eActiveSingularVoteType
int m_eActiveSingularVoteValue
EVotingType m_eActiveVotingAboutLocalPlayerVoteType
int m_iActiveVotingAboutLocalPlayerVoteValue
bool m_bIsDisplayingLocalVoteTimer
bool m_bIsUpdatingTime
bool m_bIsUpdatingActionContext

Static Protected Attributes

static const float PLATFORM_ICON_SIZE = 2

Detailed Description

Definition at line 1 of file SCR_VotingStickyNotificationUIComponent.c.

Member Function Documentation

◆ EnableContextAction()

void SCR_VotingStickyNotificationUIComponent::EnableContextAction ( bool enable)
inlineprotected

When the UI is visible the player can use the instant vote actions (If there is only one vote active)

Parameters
[in]enable

Definition at line 220 of file SCR_VotingStickyNotificationUIComponent.c.

◆ EnableVotingTimerUI()

void SCR_VotingStickyNotificationUIComponent::EnableVotingTimerUI ( bool enable)
inlineprotected

Enable the voting timer UI

Parameters
[in]enable

Definition at line 254 of file SCR_VotingStickyNotificationUIComponent.c.

◆ GetPlayerName()

string SCR_VotingStickyNotificationUIComponent::GetPlayerName ( int playerId)
inlineprotected

Finds filtered player display name and adds platform icon if such is desired

Parameters
[in]playerId
Returns
player name with optional rich text format that contains a platform icon image

Definition at line 171 of file SCR_VotingStickyNotificationUIComponent.c.

◆ InstantVotingContextUpdate()

void SCR_VotingStickyNotificationUIComponent::InstantVotingContextUpdate ( )
inlineprotected

Updates each frame to keep InstantVotingContext active.

Definition at line 246 of file SCR_VotingStickyNotificationUIComponent.c.

◆ OnButton()

override void SCR_VotingStickyNotificationUIComponent::OnButton ( )
inlineprotected

Definition at line 370 of file SCR_VotingStickyNotificationUIComponent.c.

◆ OnDestroy()

override void SCR_VotingStickyNotificationUIComponent::OnDestroy ( )
inlineprotected

Definition at line 379 of file SCR_VotingStickyNotificationUIComponent.c.

◆ OnInit()

override void SCR_VotingStickyNotificationUIComponent::OnInit ( SCR_NotificationsLogComponent notificationLog)
inlineprotected

Definition at line 334 of file SCR_VotingStickyNotificationUIComponent.c.

◆ OnPlayerFactionChanged()

void SCR_VotingStickyNotificationUIComponent::OnPlayerFactionChanged ( Faction faction,
int newCount )
inlineprotected

Definition at line 323 of file SCR_VotingStickyNotificationUIComponent.c.

◆ OnPlayerJoinOrLeaveServer()

void SCR_VotingStickyNotificationUIComponent::OnPlayerJoinOrLeaveServer ( int playerId)
inlineprotected

Definition at line 312 of file SCR_VotingStickyNotificationUIComponent.c.

◆ OnSettingsMenuClosed()

void SCR_VotingStickyNotificationUIComponent::OnSettingsMenuClosed ( ChimeraMenuBase menu)
inlineprotected

Callback method used to force refresh notification content (f.e. after player changed the language)

Parameters
[in]menuwhich was just closed

Definition at line 161 of file SCR_VotingStickyNotificationUIComponent.c.

◆ OnVoteCountChanged()

void SCR_VotingStickyNotificationUIComponent::OnVoteCountChanged ( EVotingType type,
int value,
int voteCount )
inlineprotected

Definition at line 298 of file SCR_VotingStickyNotificationUIComponent.c.

◆ OnVoteStartOrChanged()

void SCR_VotingStickyNotificationUIComponent::OnVoteStartOrChanged ( EVotingType type,
int value )
inlineprotected

Definition at line 291 of file SCR_VotingStickyNotificationUIComponent.c.

◆ OnVotingChanged()

void SCR_VotingStickyNotificationUIComponent::OnVotingChanged ( bool isInit = false)
inlineprotected

Definition at line 39 of file SCR_VotingStickyNotificationUIComponent.c.

◆ OnVotingEnd()

void SCR_VotingStickyNotificationUIComponent::OnVotingEnd ( EVotingType type,
int value,
int winner )
inlineprotected

Definition at line 305 of file SCR_VotingStickyNotificationUIComponent.c.

◆ VotingTimeUpdate()

void SCR_VotingStickyNotificationUIComponent::VotingTimeUpdate ( )
inlineprotected

Called when only 1 vote is active or when local player is the subject of the vote and timer is displayed. Called every 1 second to update.

Definition at line 282 of file SCR_VotingStickyNotificationUIComponent.c.

Member Data Documentation

◆ m_bIsDisplayingLocalVoteTimer

bool SCR_VotingStickyNotificationUIComponent::m_bIsDisplayingLocalVoteTimer
protected

Definition at line 31 of file SCR_VotingStickyNotificationUIComponent.c.

◆ m_bIsUpdatingActionContext

bool SCR_VotingStickyNotificationUIComponent::m_bIsUpdatingActionContext
protected

Definition at line 34 of file SCR_VotingStickyNotificationUIComponent.c.

◆ m_bIsUpdatingTime

bool SCR_VotingStickyNotificationUIComponent::m_bIsUpdatingTime
protected

Definition at line 33 of file SCR_VotingStickyNotificationUIComponent.c.

◆ m_eActiveSingularVoteType

EVotingType SCR_VotingStickyNotificationUIComponent::m_eActiveSingularVoteType
protected

Definition at line 25 of file SCR_VotingStickyNotificationUIComponent.c.

◆ m_eActiveSingularVoteValue

int SCR_VotingStickyNotificationUIComponent::m_eActiveSingularVoteValue
protected

Definition at line 26 of file SCR_VotingStickyNotificationUIComponent.c.

◆ m_eActiveVotingAboutLocalPlayerVoteType

EVotingType SCR_VotingStickyNotificationUIComponent::m_eActiveVotingAboutLocalPlayerVoteType
protected

Definition at line 29 of file SCR_VotingStickyNotificationUIComponent.c.

◆ m_iActiveVotingAboutLocalPlayerVoteValue

int SCR_VotingStickyNotificationUIComponent::m_iActiveVotingAboutLocalPlayerVoteValue
protected

Definition at line 30 of file SCR_VotingStickyNotificationUIComponent.c.

◆ m_InstantVoteLayout

Widget SCR_VotingStickyNotificationUIComponent::m_InstantVoteLayout
protected

Definition at line 18 of file SCR_VotingStickyNotificationUIComponent.c.

◆ m_RemainingVotingTime

TextWidget SCR_VotingStickyNotificationUIComponent::m_RemainingVotingTime
protected

Definition at line 19 of file SCR_VotingStickyNotificationUIComponent.c.

◆ m_sCurrentVoteCountFormatting

string SCR_VotingStickyNotificationUIComponent::m_sCurrentVoteCountFormatting
protected

Definition at line 16 of file SCR_VotingStickyNotificationUIComponent.c.

◆ m_sInstantVoteLayoutName

string SCR_VotingStickyNotificationUIComponent::m_sInstantVoteLayoutName
protected

Definition at line 7 of file SCR_VotingStickyNotificationUIComponent.c.

◆ m_sMultipleVotesText

LocalizedString SCR_VotingStickyNotificationUIComponent::m_sMultipleVotesText
protected

Definition at line 4 of file SCR_VotingStickyNotificationUIComponent.c.

◆ m_sRemainingVotingTimeName

string SCR_VotingStickyNotificationUIComponent::m_sRemainingVotingTimeName
protected

Definition at line 10 of file SCR_VotingStickyNotificationUIComponent.c.

◆ m_sVotingInstantVoteButtonsName

string SCR_VotingStickyNotificationUIComponent::m_sVotingInstantVoteButtonsName
protected

Definition at line 13 of file SCR_VotingStickyNotificationUIComponent.c.

◆ m_VotingInstantVoteButtons

Widget SCR_VotingStickyNotificationUIComponent::m_VotingInstantVoteButtons
protected

Definition at line 20 of file SCR_VotingStickyNotificationUIComponent.c.

◆ m_VotingManagerComponent

SCR_VotingManagerComponent SCR_VotingStickyNotificationUIComponent::m_VotingManagerComponent
protected

Definition at line 22 of file SCR_VotingStickyNotificationUIComponent.c.

◆ PLATFORM_ICON_SIZE

const float SCR_VotingStickyNotificationUIComponent::PLATFORM_ICON_SIZE = 2
staticprotected

Definition at line 36 of file SCR_VotingStickyNotificationUIComponent.c.


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