Arma Reforger Script API
|
This component is meant for cases when content (expecially text) is too long horisontally and doesn't fit into UI. More...
Public Member Functions | |
void | AnimationStop () |
void | AnimationStart () |
void | ResetPosition () |
Sets X position to its initial value when component was initialized. | |
bool | GetContentFit () |
Returns true when content fits the parent widget. | |
override void | HandlerDeattached (Widget w) |
Static Public Member Functions | |
static SCR_HorizontalScrollAnimationComponent | FindComponent (Widget w) |
Public Attributes | |
string | m_sAnimationContentWidget |
Protected Member Functions | |
override void | HandlerAttached (Widget w) |
void | OnEachFrame () |
void | AnimatePosition (float tDelta, float speed) |
Protected Attributes | |
float | m_fAnimationSpeedPxPerSec |
float | m_fWaitTimeLeftSec |
float | m_fWaitTimeRightSec |
bool | m_bAnimateBack |
float | m_fOffsetRight |
float | m_fOffsetLeft |
int | m_State |
Widget | m_wContent |
Widget | m_wRoot |
float | m_fStartPosX |
float | m_fTimer |
Static Protected Attributes | |
static const int | STATE_NONE = 0 |
static const int | STATE_MOVING_LEFT = 1 |
static const int | STATE_MOVING_LEFT_DONE_WAITING = 2 |
static const int | STATE_MOVING_RIGHT = 3 |
static const int | STATE_MOVING_RIGHT_DONE_WAITING = 4 |
This component is meant for cases when content (expecially text) is too long horisontally and doesn't fit into UI.
The component animates content left-right when activated.
!!! WARNING !!! The content widget (the one which will be animated) must be in a Frame Slot! In most basic case you should create a Frame, attach the component to it, and and put a text widget inside the Frame. NB: this might cause the font to be cut on top and bottom if set to clip, in which case wrap the text into another widget and give it some padding Frame Wrapper Text (with top & bottom padding)
|
protected |
void SCR_HorizontalScrollAnimationComponent.AnimationStart | ( | ) |
void SCR_HorizontalScrollAnimationComponent.AnimationStop | ( | ) |
|
static |
bool SCR_HorizontalScrollAnimationComponent.GetContentFit | ( | ) |
Returns true when content fits the parent widget.
|
protected |
override void SCR_HorizontalScrollAnimationComponent.HandlerDeattached | ( | Widget | w | ) |
|
protected |
void SCR_HorizontalScrollAnimationComponent.ResetPosition | ( | ) |
Sets X position to its initial value when component was initialized.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
string SCR_HorizontalScrollAnimationComponent.m_sAnimationContentWidget |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |