Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
SCR_WLibComponentBase Interface Reference

Base class for all final Reforger interactive elements. More...

Inheritance diagram for SCR_WLibComponentBase:
[legend]

Public Member Functions

override void HandlerAttached (Widget w)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnFocus (Widget w, int x, int y)
 
void SetHoverSound (string soundHover)
 
void SetClickedSound (string soundClicked)
 
string GetHoverSound ()
 
string GetClickedSound ()
 
void SetEnabled (bool enabled, bool animate=true)
 
void SetVisible (bool visible, bool animate=true)
 
bool IsEnabled ()
 
void SetMouseOverToFocus (bool mouseOverToFocus)
 
void SetDisabledOpacity (float newDisabledOpacity)
 
- Public Member Functions inherited from SCR_ScriptedWidgetComponent
override void HandlerAttached (Widget w)
 
override bool OnClick (Widget w, int x, int y, int button)
 
Widget GetRootWidget ()
 
bool IsVisible ()
 

Static Public Member Functions

static bool SetTexture (ImageWidget widget, ResourceName texture, string image="")
 
- Static Public Member Functions inherited from SCR_ScriptedWidgetComponent
static SCR_ScriptedWidgetComponent GetComponent (TypeName componentType, string name, Widget parent, bool searchAllChildren=true)
 Base method for component lookup through the widget library.
 

Static Public Attributes

static const float START_ANIMATION_RATE = 10001
 
static const float START_ANIMATION_PERIOD = 250
 

Protected Member Functions

void OnEnabled (bool animate)
 
void OnDisabled (bool animate)
 
bool IsChildWidget (Widget parent, Widget child)
 
void SetAnimationRate ()
 
void PlaySound (string sound)
 

Protected Attributes

string m_sSoundHovered
 
string m_sSoundClicked
 
float m_fAnimationTime
 
bool m_bMouseOverToFocus
 
float m_fDisabledOpacity
 
float m_fAnimationRate
 
- Protected Attributes inherited from SCR_ScriptedWidgetComponent
Widget m_wRoot
 

Additional Inherited Members

- Public Attributes inherited from SCR_ScriptedWidgetComponent
ref ScriptInvoker m_OnClick = new ScriptInvoker
 

Detailed Description

Base class for all final Reforger interactive elements.

Member Function Documentation

◆ GetClickedSound()

string SCR_WLibComponentBase.GetClickedSound ( )

◆ GetHoverSound()

string SCR_WLibComponentBase.GetHoverSound ( )

◆ HandlerAttached()

override void SCR_WLibComponentBase.HandlerAttached ( Widget  w)

◆ IsChildWidget()

bool SCR_WLibComponentBase.IsChildWidget ( Widget  parent,
Widget  child 
)
protected

◆ IsEnabled()

bool SCR_WLibComponentBase.IsEnabled ( )

◆ OnClick()

override bool SCR_WLibComponentBase.OnClick ( Widget  w,
int  x,
int  y,
int  button 
)

◆ OnDisabled()

void SCR_WLibComponentBase.OnDisabled ( bool  animate)
protected

◆ OnEnabled()

void SCR_WLibComponentBase.OnEnabled ( bool  animate)
protected

◆ OnFocus()

override bool SCR_WLibComponentBase.OnFocus ( Widget  w,
int  x,
int  y 
)

◆ OnMouseEnter()

override bool SCR_WLibComponentBase.OnMouseEnter ( Widget  w,
int  x,
int  y 
)

◆ PlaySound()

void SCR_WLibComponentBase.PlaySound ( string  sound)
protected

◆ SetAnimationRate()

void SCR_WLibComponentBase.SetAnimationRate ( )
protected

◆ SetClickedSound()

void SCR_WLibComponentBase.SetClickedSound ( string  soundClicked)

◆ SetDisabledOpacity()

void SCR_WLibComponentBase.SetDisabledOpacity ( float  newDisabledOpacity)

◆ SetEnabled()

void SCR_WLibComponentBase.SetEnabled ( bool  enabled,
bool  animate = true 
)

◆ SetHoverSound()

void SCR_WLibComponentBase.SetHoverSound ( string  soundHover)

◆ SetMouseOverToFocus()

void SCR_WLibComponentBase.SetMouseOverToFocus ( bool  mouseOverToFocus)

◆ SetTexture()

static bool SCR_WLibComponentBase.SetTexture ( ImageWidget  widget,
ResourceName  texture,
string  image = "" 
)
static

◆ SetVisible()

void SCR_WLibComponentBase.SetVisible ( bool  visible,
bool  animate = true 
)

Implemented in SCR_WidgetHintComponent.

Member Data Documentation

◆ m_bMouseOverToFocus

bool SCR_WLibComponentBase.m_bMouseOverToFocus
protected

◆ m_fAnimationRate

float SCR_WLibComponentBase.m_fAnimationRate
protected

◆ m_fAnimationTime

float SCR_WLibComponentBase.m_fAnimationTime
protected

◆ m_fDisabledOpacity

float SCR_WLibComponentBase.m_fDisabledOpacity
protected

◆ m_sSoundClicked

string SCR_WLibComponentBase.m_sSoundClicked
protected

◆ m_sSoundHovered

string SCR_WLibComponentBase.m_sSoundHovered
protected

◆ START_ANIMATION_PERIOD

const float SCR_WLibComponentBase.START_ANIMATION_PERIOD = 250
static

◆ START_ANIMATION_RATE

const float SCR_WLibComponentBase.START_ANIMATION_RATE = 10001
static

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