start one deeper

This commit is contained in:
Cary Sandvig 2001-04-19 22:59:26 +00:00
parent c3a72d3081
commit 4306ac5cab
2 changed files with 19 additions and 1 deletions

View File

@ -140,7 +140,7 @@ def getInheritanceLevel(type, checkNested = 1):
# if (len(type.parentTypes) == 0):
# return 0
if type.isNested:
level = getInheritanceLevel(type.outerType, 0)
level = 1+getInheritanceLevel(type.outerType, 0)
else:
level = 0
for parentType in type.parentTypes:

View File

@ -33,3 +33,21 @@ def getDefaultDrawOrder():
def setDefaultDrawOrder(newDrawOrder):
global drawOrder
drawOrder = newDrawOrder
def getNewRolloverFunctor():
val = None
if base.wantSound:
roll = loader.loadSound("phase_3/audio/sfr/GUI_rollover.mp3")
val = AudioGuiFunctor(roll)
else:
val = AudioGuiFunctor()
return val
def getNewClickFunctor():
val = None
if base.wantSound:
click = loader.loadSound("phase_3/audio/sfx/GUI_create_toon_fwd.mp3")
val = AudioGuiFunctor(click)
else:
val = AudioGuiFunctor()
return val