Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
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 AnimateToColum (int targetColumn)
float ApplyEasing (float t)
int GetCurrentRow ()
bool IsAnimating ()
void MoveLeft ()
void MoveRight ()
void SetAnimationDuration (float duration)
void SetColumWidth ()
void SetEasingType (AnimatedGridSpacerEasingType easing)
void Update (float timeslice)

Variables

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

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()

◆ AnimateToColum()

void AnimateToColum ( int targetColumn)

◆ ApplyEasing()

◆ GetCurrentRow()

int GetCurrentRow ( )

Definition at line 174 of file animatedgridspacer.c.

References m_CurrentColum.

◆ IsAnimating()

bool IsAnimating ( )

Definition at line 169 of file animatedgridspacer.c.

References m_IsAnimating.

◆ MoveLeft()

void MoveLeft ( )

Definition at line 120 of file animatedgridspacer.c.

References AnimateToColum(), m_CurrentColum, and m_IsAnimating.

◆ MoveRight()

void MoveRight ( )

Definition at line 108 of file animatedgridspacer.c.

References AnimateToColum(), m_CurrentColum, m_IsAnimating, and m_MaxColums.

◆ SetAnimationDuration()

void SetAnimationDuration ( float duration)

Definition at line 159 of file animatedgridspacer.c.

References m_AnimationDuration.

◆ SetColumWidth()

void SetColumWidth ( )

Definition at line 51 of file animatedgridspacer.c.

References m_ColumWidth, and m_GridSpacer.

Referenced by AnimatedGridSpacer().

◆ SetEasingType()

void SetEasingType ( AnimatedGridSpacerEasingType easing)

Definition at line 164 of file animatedgridspacer.c.

References m_EasingType.

◆ Update()

Variable Documentation

◆ m_AnimationDuration

float m_AnimationDuration = 0.25

Definition at line 16 of file animatedgridspacer.c.

Referenced by AnimatedGridSpacer(), SetAnimationDuration(), and Update().

◆ m_AnimationTime

float m_AnimationTime = 0

Definition at line 17 of file animatedgridspacer.c.

Referenced by AnimateToColum(), and Update().

◆ m_BasePosX

float m_BasePosX

Definition at line 20 of file animatedgridspacer.c.

Referenced by AnimatedGridSpacer(), and AnimateToColum().

◆ m_BasePosY

float m_BasePosY

Definition at line 20 of file animatedgridspacer.c.

Referenced by AnimatedGridSpacer().

◆ m_ColumWidth

float m_ColumWidth = 0

Definition at line 14 of file animatedgridspacer.c.

Referenced by AnimateToColum(), and SetColumWidth().

◆ m_CurrentColum

int m_CurrentColum = 0

Definition at line 24 of file animatedgridspacer.c.

Referenced by AnimateToColum(), GetCurrentRow(), MoveLeft(), and MoveRight().

◆ m_CurrentPosX

float m_CurrentPosX

Definition at line 19 of file animatedgridspacer.c.

Referenced by AnimatedGridSpacer(), AnimateToColum(), and Update().

◆ m_CurrentPosY

float m_CurrentPosY

Definition at line 19 of file animatedgridspacer.c.

Referenced by AnimatedGridSpacer(), and Update().

◆ m_EasingType

◆ m_GridSpacer

◆ m_IsAnimating

bool m_IsAnimating = false

Definition at line 23 of file animatedgridspacer.c.

Referenced by AnimateToColum(), IsAnimating(), MoveLeft(), MoveRight(), and Update().

◆ m_MaxColums

int m_MaxColums = 3

Definition at line 25 of file animatedgridspacer.c.

Referenced by AnimatedGridSpacer(), and MoveRight().

◆ m_OnAnimationComplete

ref ScriptInvoker m_OnAnimationComplete

Definition at line 29 of file animatedgridspacer.c.

Referenced by AnimatedGridSpacer(), and Update().

◆ m_StartPosX

float m_StartPosX

Definition at line 21 of file animatedgridspacer.c.

Referenced by AnimateToColum(), and Update().

◆ m_TargetPosX

float m_TargetPosX

Definition at line 21 of file animatedgridspacer.c.

Referenced by AnimateToColum(), and Update().