Changeset View
Changeset View
Standalone View
Standalone View
source/gui/CGUI.cpp
Show First 20 Lines • Show All 868 Lines • ▼ Show 20 Lines | for (XMBElement child : Element.GetChildNodes()) | ||||
else | else | ||||
{ | { | ||||
// Try making the object read the tag. | // Try making the object read the tag. | ||||
if (!object->HandleAdditionalChildren(child, pFile)) | if (!object->HandleAdditionalChildren(child, pFile)) | ||||
LOGERROR("GUI: (object: %s) Reading unknown children for its type", object->GetPresentableName().c_str()); | LOGERROR("GUI: (object: %s) Reading unknown children for its type", object->GetPresentableName().c_str()); | ||||
} | } | ||||
} | } | ||||
object->AdditionalChildrenHandled(); | |||||
if (!ManuallySetZ) | if (!ManuallySetZ) | ||||
{ | { | ||||
// Set it automatically to 10 plus its parents | // Set it automatically to 10 plus its parents | ||||
if (object->GetSetting<bool>("absolute")) | if (object->m_Absolute) | ||||
// If the object is absolute, we'll have to get the parent's Z buffered, | // If the object is absolute, we'll have to get the parent's Z buffered, | ||||
// and add to that! | // and add to that! | ||||
object->SetSetting<float>("z", pParent->GetBufferedZ() + 10.f, false); | object->SetSetting<float>("z", pParent->GetBufferedZ() + 10.f, false); | ||||
else | else | ||||
// If the object is relative, then we'll just store Z as "10" | // If the object is relative, then we'll just store Z as "10" | ||||
object->SetSetting<float>("z", 10.f, false); | object->SetSetting<float>("z", 10.f, false); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 469 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator