2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 07:07:42 +00:00

Refactor GuiSys (remove general logic handling)

This commit is contained in:
Jack Andersen
2016-12-15 12:37:34 -10:00
parent 6b765838a7
commit 19a371c931
54 changed files with 446 additions and 2642 deletions

View File

@@ -176,7 +176,7 @@ void CGuiTextSupport::AddText(const std::wstring& str)
ClearBuffer();
}
void CGuiTextSupport::SetText(const std::wstring& str)
void CGuiTextSupport::SetText(const std::wstring& str, bool scanFlag)
{
if (x0_string.compare(str))
{
@@ -184,12 +184,14 @@ void CGuiTextSupport::SetText(const std::wstring& str)
x3c_curTime = 0.f;
x0_string = str;
ClearBuffer();
x308_scanFlag = scanFlag;
x304_scanCounter = 0;
}
}
void CGuiTextSupport::SetText(const std::string& str)
void CGuiTextSupport::SetText(const std::string& str, bool scanFlag)
{
SetText(hecl::UTF8ToWide(str));
SetText(hecl::UTF8ToWide(str), scanFlag);
}
bool CGuiTextSupport::GetIsTextSupportFinishedLoading() const