@@ -133,6 +133,8 @@ StandaloneLuaWindow::StandaloneLuaWindow(bool useLvgl, int initFn, int runFn) :
133
133
134
134
etx_solid_bg (lvobj);
135
135
136
+ luaScriptManager = this ;
137
+
136
138
if (useLvglLayout ()) {
137
139
padAll (PAD_ZERO);
138
140
etx_scrollbar (lvobj);
@@ -146,8 +148,6 @@ StandaloneLuaWindow::StandaloneLuaWindow(bool useLvgl, int initFn, int runFn) :
146
148
lv_obj_set_style_text_align (lbl, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN);
147
149
lv_obj_set_style_pad_top (lbl, (LCD_H - EdgeTxStyles::PAGE_LINE_HEIGHT) / 2 , LV_PART_MAIN);
148
150
lv_label_set_text (lbl, STR_LOADING);
149
-
150
- luaLvglManager = this ;
151
151
} else {
152
152
lcdBuffer = new BitmapBuffer (BMP_RGB565, LCD_W, LCD_H);
153
153
@@ -218,7 +218,7 @@ void StandaloneLuaWindow::deleteLater(bool detach, bool trash)
218
218
if (lcdBuffer) delete lcdBuffer;
219
219
lcdBuffer = nullptr ;
220
220
221
- luaLvglManager = nullptr ;
221
+ luaScriptManager = nullptr ;
222
222
223
223
Layer::pop (this );
224
224
Layer::back ()->show ();
@@ -320,13 +320,13 @@ void StandaloneLuaWindow::checkEvents()
320
320
luaLcdAllowed = false ;
321
321
}
322
322
323
- void StandaloneLuaWindow::onClicked () { Keyboard::hide (false ); LuaEventHandler::onClicked (); }
323
+ void StandaloneLuaWindow::onClicked () { Keyboard::hide (false ); LuaScriptManager::onClickedEvent (); }
324
324
325
- void StandaloneLuaWindow::onCancel () { LuaEventHandler::onCancel (); }
325
+ void StandaloneLuaWindow::onCancel () { LuaScriptManager::onCancelEvent (); }
326
326
327
327
void StandaloneLuaWindow::onEvent (event_t evt)
328
328
{
329
- LuaEventHandler ::onLuaEvent (evt);
329
+ LuaScriptManager ::onLuaEvent (evt);
330
330
}
331
331
332
332
void StandaloneLuaWindow::popupPaint (BitmapBuffer* dc, coord_t x, coord_t y, coord_t w, coord_t h,
0 commit comments