mirror of https://github.com/OpenMW/openmw.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
427 B
C++
20 lines
427 B
C++
3 years ago
|
#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;
|
||
|
}
|
||
|
}
|