Skip to content

Commit

Permalink
Lua GUI2: Support sliders in set_dialog_callback
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Aug 27, 2017
1 parent 4cec0fe commit aed8c7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scripting/lua_gui2.cpp
Expand Up @@ -781,6 +781,8 @@ int intf_set_dialog_callback(lua_State* L)
c->connect_click_handler(std::bind(&dialog_callback_wrapper::forward, wrapper, w));
} else if(gui2::selectable_item* s = dynamic_cast<gui2::selectable_item*>(w)) {
connect_signal_notify_modified(dynamic_cast<gui2::widget&>(*s), std::bind(dialog_callback, _1));
} else if(gui2::integer_selector* s = dynamic_cast<gui2::integer_selector*>(w)) {
connect_signal_notify_modified(dynamic_cast<gui2::widget&>(*s), std::bind(dialog_callback, _1));
}
#ifdef GUI2_EXPERIMENTAL_LISTBOX
else if(gui2::list_view* l = dynamic_cast<gui2::list_view*>(w)) {
Expand Down

0 comments on commit aed8c7e

Please sign in to comment.