From 40f5140bf1a7c287a79be1f825f99da1cd61badf Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Thu, 11 Feb 2021 07:15:12 +0000 Subject: [PATCH] EgtExecutor 2.3b3 : - aggiunta funzione lua EgtGetEnableUI. --- EgtExecutor.rc | Bin 16176 -> 16176 bytes LUA_General.cpp | 14 ++++++++++++++ 2 files changed, 14 insertions(+) diff --git a/EgtExecutor.rc b/EgtExecutor.rc index b486e568ead68a478f38e6fc5ac85a3fbf295f38..099a2afcb1896895b0c4caec31f4c47a2228f5d8 100644 GIT binary patch delta 79 zcmdl`x1nysFE&Qw&A-`PnSqoe*K!sx?>N)s4T4pS#*-bnk~jAW*?>e(i-FY$N+HxV MD8kglDP58Q0D5;DV*mgE delta 79 zcmdl`x1nysFE&P_&A-`PnSqoe*K!sx?>N)s4T4pSMw1=6k~jAW*?>e(i-FY$N+HxV MD8kglDP58Q0C_7LTL1t6 diff --git a/LUA_General.cpp b/LUA_General.cpp index eadcbbc..99bed18 100644 --- a/LUA_General.cpp +++ b/LUA_General.cpp @@ -411,6 +411,19 @@ LuaOutLog( lua_State* L) return 0 ; } +//------------------------------------------------------------------------------- +static int +LuaGetEnableUI( lua_State* L) +{ + // nessun parametro + LuaClearStack( L) ; + // accodo il messaggio nel file di log + bool bOk = ExeGetEnableUI() ; + // restituisco lo stato di abilitazione dell'interfaccia utente + LuaSetParam( L, bOk) ; + return 1 ; +} + //------------------------------------------------------------------------------- static int LuaOutBox( lua_State* L) @@ -1010,6 +1023,7 @@ LuaInstallGeneral( LuaMgr& luaMgr) bOk = bOk && luaMgr.RegisterFunction( "EgtGetTscVar", LuaGetTscVar) ; bOk = bOk && luaMgr.RegisterFunction( "EgtGetDebugLevel", LuaGetDebugLevel) ; bOk = bOk && luaMgr.RegisterFunction( "EgtOutLog", LuaOutLog) ; + bOk = bOk && luaMgr.RegisterFunction( "EgtGetEnableUI", LuaGetEnableUI) ; bOk = bOk && luaMgr.RegisterFunction( "EgtOutBox", LuaOutBox) ; bOk = bOk && luaMgr.RegisterFunction( "EgtProcessEvents", LuaProcessEvents) ; bOk = bOk && luaMgr.RegisterFunction( "EgtOutText", LuaOutText) ;