def pgcAllToolsTabSelect( value ): global bd if value == "tabTerrain": if ( bd != None ): bd.enterMode( "Terrain" ) elif value == "tabTerrainImport": if ( bd != None ): bd.enterMode( "Height" ) elif value in ("tabObject", "tabScene"): if ( bd != None ): bd.enterMode( "Object" ) elif value == "tabProject": if ( bd != None ): bd.enterMode( "Project" ) elif ( bd != None ): if ( bd.getMode() == "Project" ): bd.enterMode( "Object" ) # enter Object mode if in Project mode
def pgcAllToolsTabSelect(value): global bd if value == "tabTerrain": if (bd != None): bd.enterMode("Terrain") elif value == "tabTerrainImport": if (bd != None): bd.enterMode("Height") elif value in ("tabObject", "tabScene"): if (bd != None): bd.enterMode("Object") elif value == "tabProject": if (bd != None): bd.enterMode("Project") elif (bd != None): if (bd.getMode() == "Project"): bd.enterMode("Object") # enter Object mode if in Project mode
def pgcTerrainTabSelect( value ): if value == "tabTerrainTextures": bd.enterMode( "TerrainTexture" ) elif value == "tabTerrainBrushes": bd.enterMode( "TerrainHeight" ) elif value == "tabTerrainFilters": bd.enterMode( "TerrainFilter" ) elif value == "tabTerrainTools": bd.enterMode( "TerrainHoleCut" ) else: WorldEditor.addCommentaryMsg( value + " unknown tab", 1 )
def pgcTerrainTabSelect(value): if value == "tabTerrainTextures": bd.enterMode("TerrainTexture") elif value == "tabTerrainBrushes": bd.enterMode("TerrainHeight") elif value == "tabTerrainFilters": bd.enterMode("TerrainFilter") elif value == "tabTerrainTools": bd.enterMode("TerrainHoleCut") else: WorldEditor.addCommentaryMsg(value + " unknown tab", 1)