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

Go to the source code of this file.

Data Structures

class  SCR_BrowserHoverTooltipComponent
 

Functions

SCR_BrowserHoverTooltipComponent SCR_ScriptedWidgetComponent BaseContainerProps ()] class SCR_BrowserTooltipButtonPresetData
 Configuration for a button. These buttons are purely visual hints, their actions are disabled. More...
 
Widget CreateTooltip ()
 
void ForceDeleteTooltip ()
 
protected SCR_InputButtonComponent CreateButton (SCR_BrowserTooltipButtonPresetData buttonPreset, Widget buttonContainer, int padding)
 
SCR_InputButtonComponent FindButton (string tag)
 Returns a button with given tag. More...
 
SCR_BrowserTooltipButtonPresetData FindButtonPresetData (string tag)
 Returns a button preset with given tag from the ones that have been set in the parent layout. More...
 
SCR_InputButtonComponent AddButton (string tag, string label, string actionName, string actionNameMouse=string.Empty, bool showButton=true)
 Adds a button to the existing Tooltip. More...
 
bool RemoveButton (string tag)
 Removes an existing button. More...
 
SCR_BrowserTooltipButtonPresetData AddSetupButton (string tag, string label, string actionName, string actionNameMouse=string.Empty, bool showButton=true)
 Sets up a button to be created when the Tooltip appears. More...
 
bool RemoveSetupButton (string tag)
 Prevents the button to be created when the Tooltip appears. More...
 
void ClearSetupButtons ()
 Removes all buttons that might have been added to be created when the Tooltip appears. More...
 
void UpdateAllButtonActions ()
 Changes button actions depending on last input device. More...
 
void UpdateButtonAction (string tag)
 Changes a button's action depending on last input device. More...
 
bool SetMessage (string message)
 
bool SetMessageVisible (bool newVisible)
 
string GetMessage ()
 
bool IsMessageVisible ()
 
Widget GetTooltip ()
 

Variables

ref SCR_ScriptedWidgetTooltipPreset m_Preset
 
protected ResourceName m_sButtonsLayout
 
protected ref array< ref SCR_BrowserTooltipButtonPresetData > m_aButtons
 
protected ref Color m_ButtonsColor
 
protected float m_fButtonsOpacity
 
protected int m_iButtonsPadding
 
protected Widget m_wTooltip
 
protected Widget m_wTooltipContent
 
protected Widget m_wInputsLayout
 
protected Widget m_wMessageLayout
 
protected RichTextWidget m_wMessage
 
protected ref array< ref SCR_BrowserTooltipButtonPresetData > m_aScriptButtons = {}
 
protected ref map< string, SCR_InputButtonComponentm_aButtonComponents = new map<string, SCR_InputButtonComponent>()
 

Function Documentation

◆ AddButton()

SCR_InputButtonComponent BaseContainerProps::AddButton ( string  tag,
string  label,
string  actionName,
string  actionNameMouse = string.Empty,
bool  showButton = true 
)

Adds a button to the existing Tooltip.

Check if there's a tooltip already

Leave padding at 0 if there are no other buttons

Definition at line 137 of file SCR_BrowserHoverTooltipComponent.c.

◆ AddSetupButton()

SCR_BrowserTooltipButtonPresetData BaseContainerProps::AddSetupButton ( string  tag,
string  label,
string  actionName,
string  actionNameMouse = string.Empty,
bool  showButton = true 
)

Sets up a button to be created when the Tooltip appears.

Prevent duplicates

Definition at line 175 of file SCR_BrowserHoverTooltipComponent.c.

◆ BaseContainerProps()

Configuration for a button. These buttons are purely visual hints, their actions are disabled.

As far as my knowledge goes, actions bound to both mouse and keyboard will always display both icons, so the action needs to be swapped manually. The Enfusion team is already looking into the issue.

Definition at line 306 of file SCR_BrowserHoverTooltipComponent.c.

◆ ClearSetupButtons()

void BaseContainerProps::ClearSetupButtons ( )

Removes all buttons that might have been added to be created when the Tooltip appears.

Definition at line 211 of file SCR_BrowserHoverTooltipComponent.c.

◆ CreateButton()

protected SCR_InputButtonComponent BaseContainerProps::CreateButton ( SCR_BrowserTooltipButtonPresetData  buttonPreset,
Widget  buttonContainer,
int  padding 
)

Create button

Padding

Setup

Store

Definition at line 80 of file SCR_BrowserHoverTooltipComponent.c.

◆ CreateTooltip()

Widget BaseContainerProps::CreateTooltip ( )

— TOOLTIP —

— MESSAGE —

— BUTTONS —

Add buttons & handle padding

Definition at line 31 of file SCR_BrowserHoverTooltipComponent.c.

◆ FindButton()

SCR_InputButtonComponent BaseContainerProps::FindButton ( string  tag)

Returns a button with given tag.

Definition at line 116 of file SCR_BrowserHoverTooltipComponent.c.

◆ FindButtonPresetData()

SCR_BrowserTooltipButtonPresetData BaseContainerProps::FindButtonPresetData ( string  tag)

Returns a button preset with given tag from the ones that have been set in the parent layout.

Definition at line 124 of file SCR_BrowserHoverTooltipComponent.c.

◆ ForceDeleteTooltip()

void BaseContainerProps::ForceDeleteTooltip ( )

Definition at line 74 of file SCR_BrowserHoverTooltipComponent.c.

◆ GetMessage()

string BaseContainerProps::GetMessage ( )

Definition at line 285 of file SCR_BrowserHoverTooltipComponent.c.

◆ GetTooltip()

Widget BaseContainerProps::GetTooltip ( )

Definition at line 297 of file SCR_BrowserHoverTooltipComponent.c.

◆ IsMessageVisible()

bool BaseContainerProps::IsMessageVisible ( )

Definition at line 291 of file SCR_BrowserHoverTooltipComponent.c.

◆ RemoveButton()

bool BaseContainerProps::RemoveButton ( string  tag)

Removes an existing button.

Definition at line 157 of file SCR_BrowserHoverTooltipComponent.c.

◆ RemoveSetupButton()

bool BaseContainerProps::RemoveSetupButton ( string  tag)

Prevents the button to be created when the Tooltip appears.

Definition at line 194 of file SCR_BrowserHoverTooltipComponent.c.

◆ SetMessage()

bool BaseContainerProps::SetMessage ( string  message)

Definition at line 255 of file SCR_BrowserHoverTooltipComponent.c.

◆ SetMessageVisible()

bool BaseContainerProps::SetMessageVisible ( bool  newVisible)

Padding

Definition at line 268 of file SCR_BrowserHoverTooltipComponent.c.

◆ UpdateAllButtonActions()

void BaseContainerProps::UpdateAllButtonActions ( )

Changes button actions depending on last input device.

Definition at line 223 of file SCR_BrowserHoverTooltipComponent.c.

◆ UpdateButtonAction()

void BaseContainerProps::UpdateButtonAction ( string  tag)

Changes a button's action depending on last input device.

Definition at line 233 of file SCR_BrowserHoverTooltipComponent.c.

Variable Documentation

◆ m_aButtonComponents

protected ref map<string, SCR_InputButtonComponent> m_aButtonComponents = new map<string, SCR_InputButtonComponent>()

Definition at line 27 of file SCR_BrowserHoverTooltipComponent.c.

◆ m_aButtons

protected ref array<ref SCR_BrowserTooltipButtonPresetData> m_aButtons

Definition at line 9 of file SCR_BrowserHoverTooltipComponent.c.

◆ m_aScriptButtons

protected ref array<ref SCR_BrowserTooltipButtonPresetData> m_aScriptButtons = {}

Definition at line 26 of file SCR_BrowserHoverTooltipComponent.c.

◆ m_ButtonsColor

protected ref Color m_ButtonsColor

Definition at line 12 of file SCR_BrowserHoverTooltipComponent.c.

◆ m_fButtonsOpacity

protected float m_fButtonsOpacity

Definition at line 15 of file SCR_BrowserHoverTooltipComponent.c.

◆ m_iButtonsPadding

protected int m_iButtonsPadding

Definition at line 18 of file SCR_BrowserHoverTooltipComponent.c.

◆ m_Preset

ref SCR_ScriptedWidgetTooltipPreset m_Preset

Definition at line 3 of file SCR_BrowserHoverTooltipComponent.c.

◆ m_sButtonsLayout

protected ResourceName m_sButtonsLayout

Definition at line 6 of file SCR_BrowserHoverTooltipComponent.c.

◆ m_wInputsLayout

protected Widget m_wInputsLayout

Definition at line 22 of file SCR_BrowserHoverTooltipComponent.c.

◆ m_wMessage

protected RichTextWidget m_wMessage

Definition at line 24 of file SCR_BrowserHoverTooltipComponent.c.

◆ m_wMessageLayout

protected Widget m_wMessageLayout

Definition at line 23 of file SCR_BrowserHoverTooltipComponent.c.

◆ m_wTooltip

protected Widget m_wTooltip

Definition at line 20 of file SCR_BrowserHoverTooltipComponent.c.

◆ m_wTooltipContent

protected Widget m_wTooltipContent

Definition at line 21 of file SCR_BrowserHoverTooltipComponent.c.