本文整理汇总了Python中hero.Hero.fadein方法的典型用法代码示例。如果您正苦于以下问题:Python Hero.fadein方法的具体用法?Python Hero.fadein怎么用?Python Hero.fadein使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类hero.Hero
的用法示例。
在下文中一共展示了Hero.fadein方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from hero import Hero [as 别名]
# 或者: from hero.Hero import fadein [as 别名]
#.........这里部分代码省略.........
if self.menu_author_log.getState() == 0:
self.menu_score_log.handle( event )
#-------------------------------------------------------------------------------------------------------
if self.core.getState() == 1:
self.menu_log.handle( event )
#HANDLE IF MENU_LOG == OFF
if self.menu_log.getState() == 0:
self.hero.handle( event )
#-------------------------------------------------------------------------------------------------------
def states( self ):
#-------------------------------------------------------------------------------------------------------STATE -1
if self.core.getState() == -1:
self.intro.draw( self.core.getWindow() )
if self.intro.getQuit():
self.intro.free()
del self.intro
self.menu_music.play()#MENU MUSIC
self.core.setState( 0 )
#-------------------------------------------------------------------------------------------------------STATE 0
if self.core.getState() == 0:
#FADE IN
if self.menu_play_button.getState() != 1 and self.menu_exit_log.getState() == 0:
self.menu_background.fadein( 5 )
self.menu_title.fadein( 5 )
self.menu_play_button.fadein( 5 )
self.menu_git_button.fadein( 5 )
self.menu_google_button.fadein( 5 )
self.menu_facebook_button.fadein( 5 )
self.menu_twitter_button.fadein( 5 )
self.menu_music_button.fadein( 5 )
self.menu_chunk_button.fadein( 5 )
self.menu_author_log.fadein( 5 )
self.menu_game_log.fadein( 5 )
self.menu_settings_log.fadein( 5 )
self.menu_score_log.fadein( 5 )
self.menu_music.setVolume( 1.0 )
#DRAW ALWAYS IN MENU STATE
self.menu_background.draw( self.core.getWindow() )
self.menu_title.draw( self.core.getWindow() )
self.menu_exit_log.draw( self.core.getWindow() )
#DRAW IF AUTHOR BUTTON == OFF AND SCORE BUTTON == OFF
if self.menu_author_log.getState() == 0 and self.menu_score_log.getState() == 0:
self.menu_git_button.draw( self.core.getWindow() )
self.menu_google_button.draw( self.core.getWindow() )
self.menu_facebook_button.draw( self.core.getWindow() )
self.menu_twitter_button.draw( self.core.getWindow() )
self.menu_play_button.draw( self.core.getWindow() )
self.menu_music_button.draw( self.core.getWindow() )
self.menu_chunk_button.draw( self.core.getWindow() )
self.menu_game_log.draw( self.core.getWindow() )
self.menu_settings_log.draw( self.core.getWindow() )
if self.menu_score_log.getState() == 0:
self.menu_author_log.draw( self.core.getWindow() )