def brwObjectMiscItemSelect( value, dblClick ):
	global oi
	oi.setBrowsePath( value )
	oi.showBrowse()
	filter = oi.setObjectTab( "Misc" )
	if filter == "":
		filter = "All Except Terrain and Shells"
	cmbSelectFilterChange( filter )
def brwObjectEntityItemSelect( value, dblClick ):
	global oi
	oi.setBrowsePath( value )
	oi.showBrowse()
	filter = oi.setObjectTab( "Entity" )
	if filter == "":
		filter = "Entities"
	cmbSelectFilterChange( filter )
def brwObjectParticlesItemSelect( value, dblClick ):
	global oi
	oi.setBrowsePath( value )
	oi.showBrowse()
	filter = oi.setObjectTab( "Particles" )
	if filter == "":
		filter = "Particles"
	cmbSelectFilterChange( filter )
Beispiel #4
0
def brwObjectMiscItemSelect(value, dblClick):
    global oi
    oi.setBrowsePath(value)
    oi.showBrowse()
    filter = oi.setObjectTab("Misc")
    if filter == "":
        filter = "All Except Terrain and Shells"
    cmbSelectFilterChange(filter)
Beispiel #5
0
def brwObjectParticlesItemSelect(value, dblClick):
    global oi
    oi.setBrowsePath(value)
    oi.showBrowse()
    filter = oi.setObjectTab("Particles")
    if filter == "":
        filter = "Particles"
    cmbSelectFilterChange(filter)
Beispiel #6
0
def brwObjectEntityItemSelect(value, dblClick):
    global oi
    oi.setBrowsePath(value)
    oi.showBrowse()
    filter = oi.setObjectTab("Entity")
    if filter == "":
        filter = "Entities"
    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 )
Beispiel #8
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 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 )
Beispiel #10
0
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 )
Beispiel #12
0
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 brwObjectEntityBaseClassesItemSelect( value, dblClick ):
	global oi
	oi.setBrowsePath( value )
	oi.showBrowse()
	cmbSelectFilterChange( "Entities" )
def brwObjectItemSelect( self, value ):
	global oi
	oi.setBrowsePath( value )
	oi.showBrowse()
	cmbSelectFilterChange( "All" )
Beispiel #15
0
def brwObjectEntityBaseClassesItemSelect(value, dblClick):
    global oi
    oi.setBrowsePath(value)
    oi.showBrowse()
    cmbSelectFilterChange("Entities")
Beispiel #16
0
def brwObjectItemSelect(self, value):
    global oi
    oi.setBrowsePath(value)
    oi.showBrowse()
    cmbSelectFilterChange("All")