1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-31 04:45:35 +00:00
openmw/components/lua_ui/textedit.cpp
2021-11-18 15:19:54 +00:00

19 lines
427 B
C++

#include "textedit.hpp"
namespace LuaUi
{
bool LuaTextEdit::setPropertyRaw(std::string_view name, sol::object value)
{
if (name == "caption")
{
if (!value.is<std::string>())
return false;
setCaption(value.as<std::string>());
}
else
{
return WidgetExtension::setPropertyRaw(name, value);
}
return true;
}
}