chore(ui): name unknown param in CSimpleFrame::SetFrameScale

This commit is contained in:
Tristan Cormier 2025-11-23 10:22:49 -05:00
parent 163f02a332
commit 2176e897a2
2 changed files with 4 additions and 4 deletions

View File

@ -1373,14 +1373,14 @@ void CSimpleFrame::SetFrameLevel(int32_t level, int32_t shiftChildren) {
}
}
bool CSimpleFrame::SetFrameScale(float scale, bool a3) {
if (scale == 0.0f || (!a3 && AreEqual(scale, this->m_frameScale, WHOA_EPSILON_1))) {
bool CSimpleFrame::SetFrameScale(float scale, bool force) {
if (scale == 0.0f || (!force && AreEqual(scale, this->m_frameScale, WHOA_EPSILON_1))) {
return false;
}
this->m_frameScale = scale;
return this->UpdateScale(a3);
return this->UpdateScale(force);
}
void CSimpleFrame::SetFrameStrata(FRAME_STRATA strata) {

View File

@ -155,7 +155,7 @@ class CSimpleFrame : public CScriptRegion {
void SetFrameAlpha(uint8_t alpha);
void SetFrameFlag(int32_t flag, int32_t on);
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 SetHitRect();
void SetParent(CSimpleFrame* parent);