mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-25 17:53:47 +00:00
fixes to prev. commits.
+ Lua func *_getRepeatScale()
This commit is contained in:
parent
4852eb533b
commit
a1b2762b59
2 changed files with 5 additions and 0 deletions
|
@ -2085,6 +2085,7 @@ luaFunc(quad_getBorderAlpha)
|
|||
Q_FUNC(getter, prefix, setRepeatTexture) \
|
||||
Q_FUNC(getter, prefix, isRepeatTexture ) \
|
||||
Q_FUNC(getter, prefix, setRepeatScale ) \
|
||||
Q_FUNC(getter, prefix, getRepeatScale ) \
|
||||
Q_FUNC(getter, prefix, setRenderBorder ) \
|
||||
Q_FUNC(getter, prefix, isRenderBorder ) \
|
||||
Q_FUNC(getter, prefix, setRenderCenter ) \
|
||||
|
|
|
@ -303,16 +303,19 @@ void Quad::setWidthHeight(float w, float h)
|
|||
else
|
||||
height = h;
|
||||
width = w;
|
||||
updateTexCoords();
|
||||
}
|
||||
|
||||
void Quad::setWidth(float w)
|
||||
{
|
||||
width = w;
|
||||
updateTexCoords();
|
||||
}
|
||||
|
||||
void Quad::setHeight(float h)
|
||||
{
|
||||
height = h;
|
||||
updateTexCoords();
|
||||
}
|
||||
|
||||
void Quad::onSetTexture()
|
||||
|
@ -327,6 +330,7 @@ void Quad::onSetTexture()
|
|||
width = 64;
|
||||
height = 64;
|
||||
}
|
||||
updateTexCoords();
|
||||
}
|
||||
|
||||
PauseQuad::PauseQuad() : Quad(), pauseLevel(0), positionSnapTo(0), autoWidth(0), autoHeight(0)
|
||||
|
|
Loading…
Reference in a new issue