stmm-games-doc  0.32.0
Public Attributes | List of all members
stmg::BackgroundEvent::PatternImage Struct Reference

Image data used to fill background animation. More...

Public Attributes

int32_t m_nImgId = -1
 The image id. More...
 
double m_fImgW = 0.0
 Width in tiles. More...
 
double m_fImgH = 0.0
 Height in tiles. More...
 
double m_fImgRelPosX = 0.0
 Initial x position relative to the animation origin. More...
 
double m_fImgRelPosY = 0.0
 Initial y position relative to the animation origin. More...
 
bool m_bRelPosScrolled = false
 Whether the relative position is scrolled. More...
 

Detailed Description

Image data used to fill background animation.

Member Data Documentation

◆ m_bRelPosScrolled

bool stmg::BackgroundEvent::PatternImage::m_bRelPosScrolled = false

Whether the relative position is scrolled.

If true the animation is also scrolled and the relative position is counterscrolled. Default: true.

◆ m_fImgH

double stmg::BackgroundEvent::PatternImage::m_fImgH = 0.0

Height in tiles.

If <= 0 either natural size or ratio will be used.

◆ m_fImgRelPosX

double stmg::BackgroundEvent::PatternImage::m_fImgRelPosX = 0.0

Initial x position relative to the animation origin.

In tile widths.

◆ m_fImgRelPosY

double stmg::BackgroundEvent::PatternImage::m_fImgRelPosY = 0.0

Initial y position relative to the animation origin.

In tile heights.

◆ m_fImgW

double stmg::BackgroundEvent::PatternImage::m_fImgW = 0.0

Width in tiles.

If <= 0 either natural size or ratio will be used.

◆ m_nImgId

int32_t stmg::BackgroundEvent::PatternImage::m_nImgId = -1

The image id.

Must be valid id in level().getNamed().images().