1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-29 09:32:45 +00:00
OpenMW/apps/openmw/mwgui/exposedwindow.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
624 B
C++
Raw Normal View History

#include "exposedwindow.hpp"
namespace MWGui
{
MyGUI::VectorWidgetPtr Window::getSkinWidgetsByName(const std::string& name)
{
return MyGUI::Widget::getSkinWidgetsByName(name);
}
MyGUI::Widget* Window::getSkinWidget(const std::string& _name, bool _throw)
{
MyGUI::VectorWidgetPtr widgets = getSkinWidgetsByName(_name);
if (widgets.empty())
{
MYGUI_ASSERT(!_throw, "widget name '" << _name << "' not found in skin of layout '" << getName() << "'");
2018-10-09 10:21:12 +04:00
return nullptr;
}
else
{
return widgets[0];
}
}
}