mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Revert from settings description to searchHints
This commit is contained in:
parent
7f796d148e
commit
ef1e72dc17
5 changed files with 4 additions and 31 deletions
|
@ -15,14 +15,14 @@ namespace LuaUi
|
|||
ScriptSettingsPage parse(const sol::table& options)
|
||||
{
|
||||
auto name = options.get_or("name", std::string());
|
||||
auto description = options.get_or("description", std::string());
|
||||
auto searchHints = options.get_or("searchHints", std::string());
|
||||
auto element = options.get_or<std::shared_ptr<LuaUi::Element>>("element", nullptr);
|
||||
if (name.empty())
|
||||
Log(Debug::Warning) << "A script settings page has an empty name";
|
||||
if (!element.get())
|
||||
Log(Debug::Warning) << "A script settings page has no UI element assigned";
|
||||
return {
|
||||
name, description, element
|
||||
name, searchHints, element
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue