예제 #1
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 )
예제 #2
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)
예제 #3
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 )
예제 #4
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)
예제 #5
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 )
예제 #6
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)
예제 #7
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 )
예제 #8
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)