def pgcObjectsTabSelect( value ): global oi if value != "tabObjectUal": if value == "tabObjectShell" or value == "tabPrefabs" or value == "tabObjectPrefabs": oi.setShellMode( 1 ) else: oi.setShellMode( 0 )
def pgcObjectsTabSelect(value): global oi if value != "tabObjectUal": if value == "tabObjectShell" or value == "tabPrefabs" or value == "tabObjectPrefabs": oi.setShellMode(1) else: oi.setShellMode(0)
def brwObjectModelItemSelect( value, dblClick ): global oi oi.setBrowsePath( value ) oi.showBrowse() filter = oi.setObjectTab( "Model" ) oi.setShellMode( 0 ) if filter == "": filter = "Models" cmbSelectFilterChange( filter )
def brwObjectModelItemSelect(value, dblClick): global oi oi.setBrowsePath(value) oi.showBrowse() filter = oi.setObjectTab("Model") oi.setShellMode(0) if filter == "": filter = "Models" cmbSelectFilterChange(filter)
def brwObjectShellItemSelect( value, dblClick ): global oi oi.setBrowsePath( value ) oi.showBrowse() filter = oi.setObjectTab( "Shell" ) oi.setShellMode( 1 ) if filter == "": # Raymond, simple modification to change the name # filter = "Shells Only" filter = "Shells + Contents" cmbSelectFilterChange( filter )
def brwObjectShellItemSelect(value, dblClick): global oi oi.setBrowsePath(value) oi.showBrowse() filter = oi.setObjectTab("Shell") oi.setShellMode(1) if filter == "": # Raymond, simple modification to change the name # filter = "Shells Only" filter = "Shells + Contents" cmbSelectFilterChange(filter)
def brwObjectUalItemSelect( value, dblClick ): if dblClick == 0: global oi if value.find( "/shells" ) == -1 and value[:7] != "shells/": oi.setShellMode( 0 ) ualSelectFilterChange( "All Except Terrain and Shells" ) else: oi.setShellMode( 1 ) ualSelectFilterChange( "Shells + Contents" ) oi.setBrowsePath( value ) oi.showBrowse() else: if value[-6:] == ".brush": WorldEditor.setToolMode( "TerrainTexture" ) WorldEditor.setCurrentBrush( value ) elif WorldEditor.isTerrainTexture( value ): WorldEditor.setToolMode( "TerrainTexture" ) WorldEditor.setCurrentTexture( value )
def brwObjectUalItemSelect(value, dblClick): if dblClick == 0: global oi if value.find("/shells") == -1 and value[:7] != "shells/": oi.setShellMode(0) ualSelectFilterChange("All Except Terrain and Shells") else: oi.setShellMode(1) ualSelectFilterChange("Shells + Contents") oi.setBrowsePath(value) oi.showBrowse() else: if value[-6:] == ".brush": WorldEditor.setToolMode("TerrainTexture") WorldEditor.setCurrentBrush(value) elif WorldEditor.isTerrainTexture(value): WorldEditor.setToolMode("TerrainTexture") WorldEditor.setCurrentTexture(value)