diff --git a/EgtExecutor.rc b/EgtExecutor.rc index b486e56..099a2af 100644 Binary files a/EgtExecutor.rc and b/EgtExecutor.rc differ 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) ;