diff --git a/src/gui/lua/lua_cc_window.cpp b/src/gui/lua/lua_cc_window.cpp index 12e05251c..469c84ec6 100644 --- a/src/gui/lua/lua_cc_window.cpp +++ b/src/gui/lua/lua_cc_window.cpp @@ -95,6 +95,7 @@ int CLuaInstCCWindow::CCWindowNew(lua_State *L) std::string btnPlay = ""; std::string btnPlayPause = ""; std::string btnOk = ""; + std::string btnSetup = ""; lua_Integer x = 100, y = 100, dx = 450, dy = 250; tableLookup(L, "x", x); tableLookup(L, "y", y); @@ -132,6 +133,7 @@ int CLuaInstCCWindow::CCWindowNew(lua_State *L) tableLookup(L, "btnPlay", btnPlay); tableLookup(L, "btnPlayPause", btnPlayPause); tableLookup(L, "btnOk", btnOk); + tableLookup(L, "btnSetup", btnSetup); color_frame = checkMagicMask(color_frame); color_body = checkMagicMask(color_body); color_shadow = checkMagicMask(color_shadow); @@ -269,6 +271,12 @@ int CLuaInstCCWindow::CCWindowNew(lua_State *L) btnSOk.text = btnOk; buttons.push_back(btnSOk); } + if (!btnSetup.empty()) { + button_label_cc btnSSetup; + btnSSetup.button = NEUTRINO_ICON_BUTTON_MENU; + btnSSetup.text = btnSetup; + buttons.push_back(btnSSetup); + } if (!buttons.empty()) footer->setButtonLabels(buttons, footer->getWidth(), footer->getWidth() / buttons.size()); }