def __ArrangeImageList(self): width = 8 * self.IMAGE_STEP if self.lovePointImage: width+=self.IMAGE_STEP if self.horseImage: width+=self.IMAGE_STEP xPos = 0 yPos = 0 if self.lovePointImage: if self.lovePointImage.IsShow(): self.lovePointImage.SetPosition(xPos, 0) xPos += self.IMAGE_STEP if self.horseImage: self.horseImage.SetPosition(xPos, 0) xPos += self.IMAGE_STEP for image in self.affectImageDict.values(): if xPos >= (8 * self.IMAGE_STEP): xPos = 0 yPos += self.IMAGE_STEP image.SetPosition(xPos, yPos) xPos += self.IMAGE_STEP self.SetSize(width, yPos + self.IMAGE_STEP) def OnUpdate(self): if chr.RaceToJob(net.GetMainActorRace()) == 4: if self.affectImageDict.has_key(chr.AFFECT_CHEONGEUN): self.__RemoveAffect(chr.AFFECT_CHEONGEUN) self.__ArrangeImageList() try: if app.GetGlobalTime() - self.lastUpdateTime > 500: #if 0 < app.GetGlobalTime(): self.lastUpdateTime = app.GetGlobalTime() for image in self.affectImageDict.values(): if image.GetAffect() == chr.NEW_AFFECT_AUTO_HP_RECOVERY or image.GetAffect() == chr.NEW_AFFECT_AUTO_SP_RECOVERY: image.UpdateAutoPotionDescription() continue if not image.IsSkillAffect(): image.UpdateDescription() except Exception, e: print "AffectShower::OnUpdate error : ", e