mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-20 12:11:32 +00:00
Fix warnings
This commit is contained in:
parent
a972a54ea9
commit
e78b8402fa
4 changed files with 8 additions and 7 deletions
|
@ -729,6 +729,7 @@ namespace MWGui
|
||||||
|
|
||||||
void SettingsWindow::renderScriptSettings()
|
void SettingsWindow::renderScriptSettings()
|
||||||
{
|
{
|
||||||
|
if (mCurrentPage >= 0)
|
||||||
LuaUi::attachToWidget(mCurrentPage);
|
LuaUi::attachToWidget(mCurrentPage);
|
||||||
mCurrentPage = -1;
|
mCurrentPage = -1;
|
||||||
mScriptList->removeAllItems();
|
mScriptList->removeAllItems();
|
||||||
|
@ -756,12 +757,12 @@ namespace MWGui
|
||||||
mScriptBox->setVisible(!disabled);
|
mScriptBox->setVisible(!disabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SettingsWindow::onScriptFilterChange(MyGUI::Widget*)
|
void SettingsWindow::onScriptFilterChange(MyGUI::EditBox*)
|
||||||
{
|
{
|
||||||
renderScriptSettings();
|
renderScriptSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SettingsWindow::onScriptListSelection(MyGUI::Widget*, size_t index)
|
void SettingsWindow::onScriptListSelection(MyGUI::ListBox*, size_t index)
|
||||||
{
|
{
|
||||||
if (mCurrentPage >= 0)
|
if (mCurrentPage >= 0)
|
||||||
LuaUi::attachToWidget(mCurrentPage);
|
LuaUi::attachToWidget(mCurrentPage);
|
||||||
|
|
|
@ -78,8 +78,8 @@ namespace MWGui
|
||||||
|
|
||||||
void onWindowResize(MyGUI::Window* _sender);
|
void onWindowResize(MyGUI::Window* _sender);
|
||||||
|
|
||||||
void onScriptFilterChange(MyGUI::Widget*);
|
void onScriptFilterChange(MyGUI::EditBox*);
|
||||||
void onScriptListSelection(MyGUI::Widget*, size_t index);
|
void onScriptListSelection(MyGUI::ListBox*, size_t index);
|
||||||
|
|
||||||
void apply();
|
void apply();
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ namespace LuaUi
|
||||||
|
|
||||||
void attachToWidget(size_t index, MyGUI::Widget* widget)
|
void attachToWidget(size_t index, MyGUI::Widget* widget)
|
||||||
{
|
{
|
||||||
if (0 <= index && index < allSettings.size())
|
if (index < allSettings.size())
|
||||||
allSettings[index].mElement->attachToWidget(widget);
|
allSettings[index].mElement->attachToWidget(widget);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
namespace LuaUi
|
namespace LuaUi
|
||||||
{
|
{
|
||||||
class Element;
|
struct Element;
|
||||||
struct ScriptSettings
|
struct ScriptSettings
|
||||||
{
|
{
|
||||||
std::string mName;
|
std::string mName;
|
||||||
|
|
Loading…
Reference in a new issue