CGuiWidget: Make GetIsFinishedLoading non-const

This commit is contained in:
Luke Street 2020-03-25 01:54:19 -04:00
parent 40fc3f9dd8
commit 3734a09ed3
4 changed files with 4 additions and 4 deletions

View File

@ -107,7 +107,7 @@ bool CGuiFrame::GetIsFinishedLoading() const {
continue;
return false;
}
const_cast<CGuiFrame*>(this)->x58_24_loaded = true;
x58_24_loaded = true;
return true;
}

View File

@ -41,7 +41,7 @@ private:
int x4c_a;
int x50_b;
int x54_c;
bool x58_24_loaded : 1;
mutable bool x58_24_loaded : 1;
zeus::CTransform m_aspectTransform;
float m_aspectConstraint = -1.f;

View File

@ -227,7 +227,7 @@ CGuiWidget* CGuiWidget::FindWidget(s16 id) {
return nullptr;
}
bool CGuiWidget::GetIsFinishedLoading() const { return GetIsFinishedLoadingWidgetSpecific(); }
bool CGuiWidget::GetIsFinishedLoading() { return GetIsFinishedLoadingWidgetSpecific(); }
void CGuiWidget::DispatchInitialize() {
Initialize();

View File

@ -135,7 +135,7 @@ public:
void SetColor(const zeus::CColor& color);
void InitializeRGBAFactor();
CGuiWidget* FindWidget(s16 id);
bool GetIsFinishedLoading() const;
bool GetIsFinishedLoading();
void DispatchInitialize();
void SetDepthGreater(bool v) { xb6_30_depthGreater = v; }
void SetDepthTest(bool v) { xb6_31_depthTest = v; }