コード例 #1
0
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
コード例 #2
0
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
コード例 #3
0
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 )
コード例 #4
0
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)