NovaBryan/EVE_Dump
Log | Files | 📦 下载最新源码 (.zip) | Refs | README

grannyLoader.py (1250B)


      1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\login\charcreation\grannyLoader.py
      2 import os
      3 import trinity
      4 BLOODLINE_ANIMATION_ROOT = 'res:\\animation\\%s\\charactercreation'
      5 BLOODLINE_IDLE_ANIMATIONS = {0: 'selection_amarr_amarr.gr2',
      6  1: 'selection_amarr_khanid.gr2',
      7  2: 'selection_amarr_nikuni.gr2',
      8  3: 'selection_caldari_achura.gr2',
      9  4: 'selection_caldari_civere.gr2',
     10  5: 'selection_caldari_deties.gr2',
     11  6: 'selection_gallente_gallente.gr2',
     12  7: 'selection_gallente_intaki.gr2',
     13  8: 'selection_gallente_jin-mei.gr2',
     14  9: 'selection_minmatar_brutor.gr2',
     15  10: 'selection_minmatar_sebiestor.gr2',
     16  11: 'selection_minmatar_vherokior.gr2'}
     17 HEAD_LEFT_ANIMATION = 'customization_headlookleft.gr2'
     18 GENDER_NAMES = {0: 'female',
     19  1: 'male'}
     20 
     21 def GrannyBloodlineAnimationLoader(avatar, genderID, poseID):
     22     anim_path = os.path.join(BLOODLINE_ANIMATION_ROOT % GENDER_NAMES[genderID], BLOODLINE_IDLE_ANIMATIONS[poseID])
     23     updater = trinity.Tr2GrannyAnimation()
     24     updater.resPath = str(anim_path)
     25     avatar.animationUpdater = updater
     26     trinity.WaitForResourceLoads()
     27     updater.animationEnabled = True
     28     clip = updater.grannyRes.GetAnimationName(0)
     29     updater.PlayAnimationEx(clip, 0, 0, 1)