mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
chore(ui): name unknown param in CSimpleFrame::SetFrameScale
This commit is contained in:
parent
2faa699a79
commit
a081f3b1b2
@ -1373,14 +1373,14 @@ void CSimpleFrame::SetFrameLevel(int32_t level, int32_t shiftChildren) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CSimpleFrame::SetFrameScale(float scale, bool a3) {
|
bool CSimpleFrame::SetFrameScale(float scale, bool force) {
|
||||||
if (scale == 0.0f || (!a3 && AreEqual(scale, this->m_frameScale, WHOA_EPSILON_1))) {
|
if (scale == 0.0f || (!force && AreEqual(scale, this->m_frameScale, WHOA_EPSILON_1))) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
this->m_frameScale = scale;
|
this->m_frameScale = scale;
|
||||||
|
|
||||||
return this->UpdateScale(a3);
|
return this->UpdateScale(force);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSimpleFrame::SetFrameStrata(FRAME_STRATA strata) {
|
void CSimpleFrame::SetFrameStrata(FRAME_STRATA strata) {
|
||||||
|
|||||||
@ -155,7 +155,7 @@ class CSimpleFrame : public CScriptRegion {
|
|||||||
void SetFrameAlpha(uint8_t alpha);
|
void SetFrameAlpha(uint8_t alpha);
|
||||||
void SetFrameFlag(int32_t flag, int32_t on);
|
void SetFrameFlag(int32_t flag, int32_t on);
|
||||||
void SetFrameLevel(int32_t level, int32_t shiftChildren);
|
void SetFrameLevel(int32_t level, int32_t shiftChildren);
|
||||||
bool SetFrameScale(float scale, bool a3);
|
bool SetFrameScale(float scale, bool force);
|
||||||
void SetFrameStrata(FRAME_STRATA strata);
|
void SetFrameStrata(FRAME_STRATA strata);
|
||||||
void SetHitRect();
|
void SetHitRect();
|
||||||
void SetParent(CSimpleFrame* parent);
|
void SetParent(CSimpleFrame* parent);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user