Changeset View
Changeset View
Standalone View
Standalone View
source/gui/CGUI.cpp
Show First 20 Lines • Show All 615 Lines • ▼ Show 20 Lines | void CGUI::Xeromyces_ReadObject(XMBElement Element, CXeromyces* pFile, IGUIObject* pParent, std::vector<std::pair<CStr, CStr> >& NameSubst, boost::unordered_set<VfsPath>& Paths, u32 nesting_depth) | ||||
// | // | ||||
// If the setting "style" is set, try loading that setting. | // If the setting "style" is set, try loading that setting. | ||||
// | // | ||||
// Always load default (if it's available) first! | // Always load default (if it's available) first! | ||||
// | // | ||||
CStr argStyle(attributes.GetNamedItem(attr_style)); | CStr argStyle(attributes.GetNamedItem(attr_style)); | ||||
if (m_Styles.count("default") == 1) | if (m_Styles.count("default") == 1) | ||||
object->LoadStyle(*this, "default"); | object->LoadStyle("default"); | ||||
if (!argStyle.empty()) | if (!argStyle.empty()) | ||||
{ | { | ||||
if (m_Styles.count(argStyle) == 0) | if (m_Styles.count(argStyle) == 0) | ||||
LOGERROR("GUI: Trying to use style '%s' that doesn't exist.", argStyle.c_str()); | LOGERROR("GUI: Trying to use style '%s' that doesn't exist.", argStyle.c_str()); | ||||
else | else | ||||
object->LoadStyle(*this, argStyle); | object->LoadStyle(argStyle); | ||||
} | } | ||||
bool NameSet = false; | bool NameSet = false; | ||||
bool ManuallySetZ = false; | bool ManuallySetZ = false; | ||||
CStrW inclusionPath; | CStrW inclusionPath; | ||||
CStr hotkeyTag; | CStr hotkeyTag; | ||||
▲ Show 20 Lines • Show All 705 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator