start one deeper
This commit is contained in:
parent
c3a72d3081
commit
4306ac5cab
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue