EgtExecutor 2.7j2 :
- modifiche per nuova gestione assemblaggi da BTL.
This commit is contained in:
+4
-4
@@ -266,17 +266,17 @@ ExeBeamShowSolid( int nPartId, bool bShow)
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeBeamGetBuildingIsOn( void)
|
||||
ExeBeamGetBuildingIsOn( int nAssGrpId)
|
||||
{
|
||||
IBeamMgr* pBeamMgr = GetCurrBeamMgr() ;
|
||||
VERIFY_BEAMMGR( pBeamMgr, false)
|
||||
// verifico se assemblaggio attivato
|
||||
return pBeamMgr->GetBuildingIsOn() ;
|
||||
return pBeamMgr->GetBuildingIsOn( nAssGrpId) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeBeamShowBuilding( bool bShow)
|
||||
ExeBeamShowBuilding( int nAssGrpId, bool bShow)
|
||||
{
|
||||
IBeamMgr* pBeamMgr = GetCurrBeamMgr() ;
|
||||
VERIFY_BEAMMGR( pBeamMgr, false)
|
||||
@@ -285,7 +285,7 @@ ExeBeamShowBuilding( bool bShow)
|
||||
if ( bOldEnabModif)
|
||||
ExeDisableModified() ;
|
||||
// attivo o disattivo la visualizzazione l'assemblaggio
|
||||
bool bOk = pBeamMgr->ShowBuilding( bShow) ;
|
||||
bool bOk = pBeamMgr->ShowBuilding( nAssGrpId, bShow) ;
|
||||
// ripristino possibilità di alterare il flag di modifica
|
||||
if ( bOldEnabModif)
|
||||
ExeEnableModified() ;
|
||||
|
||||
+9
-5
@@ -347,10 +347,12 @@ LuaBeamShowSolid( lua_State* L)
|
||||
static int
|
||||
LuaBeamGetBuildingIsOn( lua_State* L)
|
||||
{
|
||||
// Nessun parametro
|
||||
// 1 o nessun parametro : [nAssGrpId]
|
||||
int nAssGrpId = GDB_ID_NULL ;
|
||||
LuaGetParam( L, 1, nAssGrpId) ;
|
||||
LuaClearStack( L) ;
|
||||
// restituisco identificativo del solido della trave
|
||||
bool bOk = ExeBeamGetBuildingIsOn() ;
|
||||
bool bOk = ExeBeamGetBuildingIsOn( nAssGrpId) ;
|
||||
// restituisco il risultato
|
||||
LuaSetParam( L, bOk) ;
|
||||
return 1 ;
|
||||
@@ -360,12 +362,14 @@ LuaBeamGetBuildingIsOn( lua_State* L)
|
||||
static int
|
||||
LuaBeamShowBuilding( lua_State* L)
|
||||
{
|
||||
// 1 parametro : bShow
|
||||
// 1 o 2 parametri : [nAssGrpId,] bShow
|
||||
int nAssGrpId = GDB_ID_NULL ;
|
||||
int nPar = ( LuaGetParam( L, 1, nAssGrpId) ? 2 : 1) ;
|
||||
bool bShow ;
|
||||
LuaCheckParam( L, 1, bShow)
|
||||
LuaCheckParam( L, nPar, bShow)
|
||||
LuaClearStack( L) ;
|
||||
// attivo o disattivo la visualizzazione l'assemblaggio
|
||||
bool bOk = ExeBeamShowBuilding( bShow) ;
|
||||
bool bOk = ExeBeamShowBuilding( nAssGrpId, bShow) ;
|
||||
// restituisco il risultato
|
||||
LuaSetParam( L, bOk) ;
|
||||
return 1 ;
|
||||
|
||||
Reference in New Issue
Block a user