mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-07 12:54:00 +00:00
27 lines
671 B
C++
27 lines
671 B
C++
#include "exposedwindow.hpp"
|
|
|
|
#include "MyGUI_Window.h"
|
|
|
|
namespace MWGui
|
|
{
|
|
MyGUI::VectorWidgetPtr ExposedWindow::getSkinWidgetsByName (const std::string &name)
|
|
{
|
|
return MyGUI::Widget::getSkinWidgetsByName (name);
|
|
}
|
|
|
|
MyGUI::Widget* ExposedWindow::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() << "'");
|
|
return nullptr;
|
|
}
|
|
else
|
|
{
|
|
return widgets[0];
|
|
}
|
|
}
|
|
}
|