mirror of
https://github.com/opentx/opentx.git
synced 2025-07-18 05:45:21 +03:00
Bsongis/lua interpreter added on x7d (#3999)
* [X7D] Lua option added (only standalone scripts) * [X7D] Compilation fix * [X7D] Compilation fix * [X7D] Compilation fix * [X7D] Compilation fix
This commit is contained in:
parent
35571ad4d1
commit
d58244ebde
23 changed files with 174 additions and 120 deletions
|
@ -423,7 +423,7 @@ static int luaLcdDrawBitmap(lua_State *L)
|
|||
|
||||
return 0;
|
||||
}
|
||||
#else
|
||||
#elif LCD_DEPTH > 1
|
||||
/*luadoc
|
||||
@function lcd.drawPixmap(x, y, name)
|
||||
|
||||
|
@ -555,7 +555,7 @@ static int luaLcdDrawGauge(lua_State *L)
|
|||
}
|
||||
|
||||
|
||||
#if !defined(COLORLCD)
|
||||
#if LCD_DEPTH > 1 && !defined(COLORLCD)
|
||||
/*luadoc
|
||||
@function lcd.drawScreenTitle(title, page, pages)
|
||||
|
||||
|
@ -587,7 +587,7 @@ static int luaLcdDrawScreenTitle(lua_State *L)
|
|||
}
|
||||
#endif
|
||||
|
||||
#if !defined(COLORLCD)
|
||||
#if LCD_DEPTH > 1 && !defined(COLORLCD)
|
||||
/*luadoc
|
||||
@function lcd.drawCombobox(x, y, w, list, idx [, flags])
|
||||
|
||||
|
@ -761,7 +761,7 @@ const luaL_Reg lcdLib[] = {
|
|||
{ "drawBitmap", luaLcdDrawBitmap },
|
||||
{ "setColor", luaLcdSetColor },
|
||||
{ "RGB", luaRGB },
|
||||
#else
|
||||
#elif LCD_DEPTH > 1
|
||||
{ "getLastPos", luaLcdGetLastPos },
|
||||
{ "drawPixmap", luaLcdDrawPixmap },
|
||||
{ "drawScreenTitle", luaLcdDrawScreenTitle },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue