Dayz Explorer 1.29.162510
Loading...
Searching...
No Matches
animatedgridspacer.c File Reference

Go to the source code of this file.

Enumerations

enum  AnimatedGridSpacerEasingType {
  EASE_LINEAR , EASE_IN_OUT_CUBIC , EASE_IN_OUT_QUART , EASE_OUT_BOUNCE ,
  EASE_OUT_BACK
}

Functions

void AnimatedGridSpacer (Widget gridSpacer, int maxColums, float animDuration=0.25, AnimatedGridSpacerEasingType easing=AnimatedGridSpacerEasingType.EASE_IN_OUT_CUBIC)
void SetColumWidth ()
float ApplyEasing (float t)
void AnimateToColum (int targetColumn)
void MoveRight ()
void MoveLeft ()
void Update (float timeslice)
void SetAnimationDuration (float duration)
void SetEasingType (AnimatedGridSpacerEasingType easing)
bool IsAnimating ()
int GetCurrentRow ()

Variables

enum AnimatedGridSpacerEasingType m_GridSpacer
float m_ColumWidth = 0
float m_AnimationDuration = 0.25
float m_AnimationTime = 0
float m_CurrentPosX
float m_CurrentPosY
float m_BasePosX
float m_BasePosY
float m_StartPosX
float m_TargetPosX
bool m_IsAnimating = false
int m_CurrentColum = 0
int m_MaxColums = 3
AnimatedGridSpacerEasingType m_EasingType = AnimatedGridSpacerEasingType.EASE_IN_OUT_CUBIC
ref ScriptInvoker m_OnAnimationComplete

Enumeration Type Documentation

◆ AnimatedGridSpacerEasingType

Enumerator
EASE_LINEAR 
EASE_IN_OUT_CUBIC 
EASE_IN_OUT_QUART 
EASE_OUT_BOUNCE 
EASE_OUT_BACK 

Definition at line 2 of file animatedgridspacer.c.

Function Documentation

◆ AnimatedGridSpacer()

void AnimatedGridSpacer ( Widget gridSpacer,
int maxColums,
float animDuration = 0.25,
AnimatedGridSpacerEasingType easing = AnimatedGridSpacerEasingType.EASE_IN_OUT_CUBIC )

Definition at line 31 of file animatedgridspacer.c.

◆ AnimateToColum()

void AnimateToColum ( int targetColumn)

Definition at line 93 of file animatedgridspacer.c.

◆ ApplyEasing()

float ApplyEasing ( float t)

Definition at line 65 of file animatedgridspacer.c.

◆ GetCurrentRow()

int GetCurrentRow ( )

Definition at line 174 of file animatedgridspacer.c.

◆ IsAnimating()

bool IsAnimating ( )

Definition at line 169 of file animatedgridspacer.c.

◆ MoveLeft()

void MoveLeft ( )

Definition at line 120 of file animatedgridspacer.c.

◆ MoveRight()

void MoveRight ( )

Definition at line 108 of file animatedgridspacer.c.

◆ SetAnimationDuration()

void SetAnimationDuration ( float duration)

Definition at line 159 of file animatedgridspacer.c.

◆ SetColumWidth()

void SetColumWidth ( )

Definition at line 51 of file animatedgridspacer.c.

◆ SetEasingType()

void SetEasingType ( AnimatedGridSpacerEasingType easing)

Definition at line 164 of file animatedgridspacer.c.

◆ Update()

override void Update ( float timeslice = 0)

Definition at line 132 of file animatedgridspacer.c.

Variable Documentation

◆ m_AnimationDuration

float m_AnimationDuration = 0.25

Definition at line 16 of file animatedgridspacer.c.

◆ m_AnimationTime

float m_AnimationTime = 0

Definition at line 17 of file animatedgridspacer.c.

◆ m_BasePosX

float m_BasePosX

Definition at line 20 of file animatedgridspacer.c.

◆ m_BasePosY

float m_BasePosY

Definition at line 20 of file animatedgridspacer.c.

◆ m_ColumWidth

float m_ColumWidth = 0

Definition at line 14 of file animatedgridspacer.c.

◆ m_CurrentColum

int m_CurrentColum = 0

Definition at line 24 of file animatedgridspacer.c.

◆ m_CurrentPosX

float m_CurrentPosX

Definition at line 19 of file animatedgridspacer.c.

◆ m_CurrentPosY

float m_CurrentPosY

Definition at line 19 of file animatedgridspacer.c.

◆ m_EasingType

◆ m_GridSpacer

enum AnimatedGridSpacerEasingType m_GridSpacer

◆ m_IsAnimating

bool m_IsAnimating = false

Definition at line 23 of file animatedgridspacer.c.

◆ m_MaxColums

int m_MaxColums = 3

Definition at line 25 of file animatedgridspacer.c.

◆ m_OnAnimationComplete

ref ScriptInvoker m_OnAnimationComplete

Definition at line 29 of file animatedgridspacer.c.

◆ m_StartPosX

float m_StartPosX

Definition at line 21 of file animatedgridspacer.c.

◆ m_TargetPosX

float m_TargetPosX

Definition at line 21 of file animatedgridspacer.c.