;๒ _‰;c@s๕dZdkZdkZdkZdkTdkZdkZdkZdkZdk l Z dk TdZ dZ dZdZdd d gZd d ffd dddfffZdddfZddfZgagad„Zde fd„ƒYZdS(sgamemenu handler. main menuN(s*(sBaseGameHandleriiiiiวii%s Developers Adam FeuersSpecial ThankssGuido van Rossoms Sam Lantingas Pete Shinnerss9This program is free software. You are encouraged to makes:copies and/or modify it, subject to the terms of the LGPL.s'See the file "COPYING.txt" for details.s Babelfishsfont by Dale Thorpec Csซt}titii|tƒtfƒtitii|t ƒt fƒtitii|t ƒt fƒt i dƒ}|iƒ} t iid| _t ii| _ti|| fƒt i dƒ}|iƒ} t ii| _d| _ti|| fƒt i dƒ}|iƒiddƒ} ti|| fƒt i dƒ}|iƒidd ƒ} ti|| fƒt i d ƒ}|iƒid d ƒ} ti|| fƒt i d ƒ}|iƒiddƒ} ti|| fƒt i dƒ}|iƒiddƒ} ti|| fƒtiitdƒ}d} d} t i|td| | fƒ}ti|ƒtiittƒ}tiitdƒ}d}d}xJt#D]B}t i|t%|||fƒ}||di&7}ti|ƒqญWt iid} d} t i|t t'dƒ}| | f|d_(ti|ƒ| |di)d7} | d7} t i|t t'dƒ}| | f|d_(ti|ƒt*i+dƒdS(Nsoldstarblazer.pngi(s credrules.gifis pygame.gifis magick.pngi:i–s python.gifiยixssdl.gifiบissgfx_by_gimp.gifi๔iแiiiพsImage rotation by ii๐iiiึiis select_choose(,sBABELFISH_FONTPATHsfontnamesfontssappendspygamesfontsFontsFONTSIZE_SMALLs BLUE_GREYsFONTSIZE_MEDIUMsWHITEsFONTSIZE_LARGEsgfxsloadsimgsget_rectsrsrectsbottomsrightsimagesscenterxstopsmovesNones font_verytinysxsystexts MAGICK_REDstxts FONTSIZE_TINYs font_tinysfont_babelfishsmids licenseinfoslsGREYsheightsbabelfish_fontinfostopleftswidthssndspreload( s font_verytinysfont_babelfishstxtsfontnamesimgstopsmids font_tinyslsrsysx((sI/mnt/gmirror/ports/games/farblazer/work/farblazer-0.7/code/gamecredits.pysload_game_resources#sn"""       s GameCreditscBsStZd„Zed„Zd„Zd„Zd„Zd„Zd„Z d„Z RS( NcCsใti|ƒ||_d|_d|_tiid|_ g|_ d|_ |i dt ƒxVtD]N}|i |dtƒx"|dD]}|i |tƒq‰W|id7_qdW|i itƒ|i dtdd fƒdS( Nii<i s Credits: iisStar Blazer on the Apple2iqi,(sBaseGameHandlers__init__sselfs prevhandlersdonestopsgfxsrectscenterxscenterstexts drawncreditss createtexts FONT_LARGEscreditsscreds FONT_SMALLspeoples FONT_MEDIUMsextendsimages(sselfs prevhandlerspeoplescred((sI/mnt/gmirror/ports/games/farblazer/work/farblazer-0.7/code/gamecredits.pys__init__os"       cCsฎ|tdtƒjo d}nt|\}}|tjoEti ||||i dfƒ}|i |d_ |di|_ nti ||||ƒ}|i i|ƒdS(Nii(ssizesranges FONT_LASTsfontssfscspossNonesgfxstextsselfscenterststopsbottomsappend(sselfstextssizesposscsfst((sI/mnt/gmirror/ports/games/farblazer/work/farblazer-0.7/code/gamecredits.pys createtext‡s  !cCs&|it_d|_tidƒdS(Nis select_choose(sselfs prevhandlersgameshandlersdonessndsplay(sself((sI/mnt/gmirror/ports/games/farblazer/work/farblazer-0.7/code/gamecredits.pysquit“s  cCs|iƒdS(N(sselfsquit(sselfsi((sI/mnt/gmirror/ports/games/farblazer/work/farblazer-0.7/code/gamecredits.pysinput™scCsdS(N((sselfse((sI/mnt/gmirror/ports/games/farblazer/work/farblazer-0.7/code/gamecredits.pyseventœscCstiiƒSdS(N(spygameseventsget(sself((sI/mnt/gmirror/ports/games/farblazer/work/farblazer-0.7/code/gamecredits.pys get_eventsŸscCsฃ|idjotiƒx5|iD]*}|d}|i|ƒti|ƒq$Wx=|iD]2\}}ti i ||ƒtii ||ƒq\Wd|_ndS(Nii( sselfs drawncreditssgfxs clearscreenstextscredsrs backgroundsdirtysposssurfacesblit(sselfsrscredspos((sI/mnt/gmirror/ports/games/farblazer/work/farblazer-0.7/code/gamecredits.pysrunฃs     cCs tiidddf|ƒSdS(Ni(sgfxssurfacesfillsarea(sselfsarea((sI/mnt/gmirror/ports/games/farblazer/work/farblazer-0.7/code/gamecredits.pys backgroundฒs( s__name__s __module__s__init__sNones createtextsquitsinputsevents get_eventssruns background(((sI/mnt/gmirror/ports/games/farblazer/work/farblazer-0.7/code/gamecredits.pys GameCreditsns      (s__doc__smathsosspygames pygame.localssgamesgfxssndsgameplaysbasegamehandlersBaseGameHandlerstexts FONT_SMALLs FONT_MEDIUMs FONT_LARGEs FONT_LASTs MAGICK_REDscreditss licenseinfosbabelfish_fontinfosfontssimagessload_game_resourcess GameCredits(ssnds licenseinfoscreditssload_game_resourcessgameplaysbabelfish_fontinfosgfxs MAGICK_REDs FONT_LARGEsgamesBaseGameHandlerspygames FONT_LASTs FONT_MEDIUMs GameCreditssoss FONT_SMALLsmath((sI/mnt/gmirror/ports/games/farblazer/work/farblazer-0.7/code/gamecredits.pys?s&   $  K