GenericElement

Parent Class: GenericInputHandler

This is the very base class of UI Element such as buttons, checkboxes and so on.


Class Properties

  • mParentContainer: This is a reference to a WBP_GenericElementsManager, if this element is contained into a list, that list will be the parent container.
  • mIsContinuousSelection: This boolean stores the information of the continuous selection, this means that if it is true the behaviour will be: if the mouse enter the element is will be selected, if the mouse exit the element will not be unselected, only if another element will be selected, the current will be unselected. If this variable is false when the mouse exit the element it will be unselected.
  • mIsSelected: This boolean just store the information of the selection, if the element is selected it will be true otherwise false.
  • mOnSelectionSound: This is a reference of the sound to play when the element will be selected.
  • mOnClickSound: This is a reference of the sound to play when the element will be clicked.
  • mOnClickOnDisabledSound: This is a reference of the sound to play when the element will be clicked but its not active.
  • mIsSoundEnabled: This boolean define if the sounds of this element are allowed to play.
  • mIsMouseInside: This boolean store the information of the mouse position, if it is inside the Element it will be true otherwise false.