Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/gui/IGUIObject.cpp
Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | if (ObjectMap.count(m_Name) > 0) | ||||
throw PSERROR_GUI_NameAmbiguity(m_Name.c_str()); | throw PSERROR_GUI_NameAmbiguity(m_Name.c_str()); | ||||
} | } | ||||
else | else | ||||
{ | { | ||||
ObjectMap[m_Name] = this; | ObjectMap[m_Name] = this; | ||||
} | } | ||||
} | } | ||||
void IGUIObject::Destroy() | |||||
{ | |||||
// Is there anything besides the children to destroy? | |||||
} | |||||
template<typename T> | template<typename T> | ||||
void IGUIObject::AddSetting(const CStr& Name) | void IGUIObject::AddSetting(const CStr& Name) | ||||
{ | { | ||||
// This can happen due to inheritance | // This can happen due to inheritance | ||||
if (SettingExists(Name)) | if (SettingExists(Name)) | ||||
return; | return; | ||||
m_Settings[Name] = new CGUISetting<T>(*this, Name); | m_Settings[Name] = new CGUISetting<T>(*this, Name); | ||||
▲ Show 20 Lines • Show All 426 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator