本文整理汇总了Python中SCObject.SCObject.enterVisible方法的典型用法代码示例。如果您正苦于以下问题:Python SCObject.enterVisible方法的具体用法?Python SCObject.enterVisible怎么用?Python SCObject.enterVisible使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SCObject.SCObject
的用法示例。
在下文中一共展示了SCObject.enterVisible方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: enterVisible
# 需要导入模块: from SCObject import SCObject [as 别名]
# 或者: from SCObject.SCObject import enterVisible [as 别名]
def enterVisible(self):
SCObject.enterVisible(self)
self.privScheduleFinalize()
for member in self:
if member.isViewable():
if not member.isVisible():
member.enterVisible()
self.childHasFaded = 0
alreadyFaded = 0
parentMenu = None
if self.holder is not None:
if self.holder.parentMenu is not None:
parentMenu = self.holder.parentMenu
alreadyFaded = parentMenu.childHasFaded
if SCMenu.WantFade:
if alreadyFaded:
self.fadeFunc(1.0)
else:
self.stopFade()
self.fadeIval = LerpFunctionInterval(self.fadeFunc, fromData=0.0, toData=1.0, duration=SCMenu.FadeDuration)
self.fadeIval.play()
if parentMenu is not None:
parentMenu.childHasFaded = 1
return
示例2: enterVisible
# 需要导入模块: from SCObject import SCObject [as 别名]
# 或者: from SCObject.SCObject import enterVisible [as 别名]
def enterVisible(self):
SCObject.enterVisible(self)
self.privScheduleFinalize()