本文整理汇总了Python中toontown.fishing.FishGlobals.getRodWeightRange方法的典型用法代码示例。如果您正苦于以下问题:Python FishGlobals.getRodWeightRange方法的具体用法?Python FishGlobals.getRodWeightRange怎么用?Python FishGlobals.getRodWeightRange使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类toontown.fishing.FishGlobals
的用法示例。
在下文中一共展示了FishGlobals.getRodWeightRange方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: updatePage
# 需要导入模块: from toontown.fishing import FishGlobals [as 别名]
# 或者: from toontown.fishing.FishGlobals import getRodWeightRange [as 别名]
def updatePage(self):
if hasattr(self, 'collectedTotal'):
self.collectedTotal['text'] = TTLocalizer.FishPageCollectedTotal % (len(base.localAvatar.fishCollection), FishGlobals.getTotalNumFish())
if hasattr(self, 'rod'):
rod = base.localAvatar.fishingRod
rodName = TTLocalizer.FishingRodNameDict[rod]
rodWeightRange = FishGlobals.getRodWeightRange(rod)
self.rod['text'] = TTLocalizer.FishPageRodInfo % (rodName, rodWeightRange[0], rodWeightRange[1])
if self.mode == FishPage_Tank:
if hasattr(self, 'picker'):
newTankFish = base.localAvatar.fishTank.getFish()
self.picker.update(newTankFish)
elif self.mode == FishPage_Collection:
if hasattr(self, 'browser'):
self.browser.update()
elif self.mode == FishPage_Trophy:
if hasattr(self, 'trophies'):
for trophy in self.trophies:
trophy.setLevel(-1)
for trophyId in base.localAvatar.getFishingTrophies():
self.trophies[trophyId].setLevel(trophyId)