Ejemplo n.º 1
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 )
Ejemplo n.º 2
0
def brwObjectEntityItemSelect( value, dblClick ):
	global oi
	oi.setBrowsePath( value )
	oi.showBrowse()
	filter = oi.setObjectTab( "Entity" )
	if filter == "":
		filter = "Entities"
	cmbSelectFilterChange( filter )
Ejemplo n.º 3
0
def brwObjectParticlesItemSelect( value, dblClick ):
	global oi
	oi.setBrowsePath( value )
	oi.showBrowse()
	filter = oi.setObjectTab( "Particles" )
	if filter == "":
		filter = "Particles"
	cmbSelectFilterChange( filter )
Ejemplo n.º 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)
Ejemplo n.º 5
0
def brwObjectParticlesItemSelect(value, dblClick):
    global oi
    oi.setBrowsePath(value)
    oi.showBrowse()
    filter = oi.setObjectTab("Particles")
    if filter == "":
        filter = "Particles"
    cmbSelectFilterChange(filter)
Ejemplo n.º 6
0
def brwObjectEntityItemSelect(value, dblClick):
    global oi
    oi.setBrowsePath(value)
    oi.showBrowse()
    filter = oi.setObjectTab("Entity")
    if filter == "":
        filter = "Entities"
    cmbSelectFilterChange(filter)
Ejemplo n.º 7
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 )
Ejemplo n.º 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)
Ejemplo n.º 9
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 )
Ejemplo n.º 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)
Ejemplo n.º 11
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 )
Ejemplo n.º 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)
Ejemplo n.º 13
0
def brwObjectEntityBaseClassesItemSelect( value, dblClick ):
	global oi
	oi.setBrowsePath( value )
	oi.showBrowse()
	cmbSelectFilterChange( "Entities" )
Ejemplo n.º 14
0
def brwObjectItemSelect( self, value ):
	global oi
	oi.setBrowsePath( value )
	oi.showBrowse()
	cmbSelectFilterChange( "All" )
Ejemplo n.º 15
0
def brwObjectEntityBaseClassesItemSelect(value, dblClick):
    global oi
    oi.setBrowsePath(value)
    oi.showBrowse()
    cmbSelectFilterChange("Entities")
Ejemplo n.º 16
0
def brwObjectItemSelect(self, value):
    global oi
    oi.setBrowsePath(value)
    oi.showBrowse()
    cmbSelectFilterChange("All")