mirror of
https://github.com/edubart/otclient.git
synced 2025-10-20 06:23:26 +02:00
new layout system, new UI state/styles system
This commit is contained in:
@@ -60,10 +60,3 @@ FontPtr FontManager::getFont(const std::string& fontName)
|
||||
return getDefaultFont();
|
||||
}
|
||||
|
||||
FontPtr FontManager::getDefaultFont()
|
||||
{
|
||||
// default font should always exists, otherwise the app may crash
|
||||
if(!m_defaultFont)
|
||||
logFatal("no default font to display, cannot continue to run");
|
||||
return m_defaultFont;
|
||||
}
|
||||
|
@@ -14,7 +14,7 @@ public:
|
||||
|
||||
bool fontExists(const std::string& fontName);
|
||||
FontPtr getFont(const std::string& fontName);
|
||||
FontPtr getDefaultFont();
|
||||
FontPtr getDefaultFont() { return m_defaultFont; }
|
||||
|
||||
void setDefaultFont(const std::string& fontName) { m_defaultFont = getFont(fontName); }
|
||||
|
||||
|
Reference in New Issue
Block a user