コード例 #1
0
def edtFarPlaneExit(value):
    """This function allows the farPlane distance to be set in centimetres and metres."""
    if value[-2:] == "cm":
        floatValue = float(value[:-2]) / 100.0
    elif value[-1] == "m":
        floatValue = float(value[:-1])
    else:
        floatValue = float(value)

    WorldEditor.farPlane(floatValue)
コード例 #2
0
def edtFarPlaneExit( value ):
	"""This function allows the farPlane distance to be set in centimetres and metres."""
	if value[-2:] == "cm":
		floatValue = float(value[:-2])/100.0
	elif value[-1] == "m":
		floatValue = float(value[:-1])
	else:
		floatValue = float(value)

	WorldEditor.farPlane( floatValue )
コード例 #3
0
def edtFarPlaneUpdate():
	"""This function returns the farPlane distance in metres."""
	return "%.0fm" % (WorldEditor.farPlane(), )
コード例 #4
0
def slrFarPlaneUpdate():
	"""This function returns the farPlane distance."""
	return WorldEditor.farPlane()
コード例 #5
0
def slrFarPlaneAdjust( value, min, max ):
	"""This function sets the farPlane distance to the given value parameter."""
	WorldEditor.farPlane( value )
コード例 #6
0
def edtFarPlaneUpdate():
    """This function returns the farPlane distance in metres."""
    return "%.0fm" % (WorldEditor.farPlane(), )
コード例 #7
0
def slrFarPlaneUpdate():
    """This function returns the farPlane distance."""
    return WorldEditor.farPlane()
コード例 #8
0
def slrFarPlaneAdjust(value, min, max):
    """This function sets the farPlane distance to the given value parameter."""
    WorldEditor.farPlane(value)