Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def __IsOldHair(self, itemVnum):
- return itemVnum > 73000 and itemVnum < 74000
- def __IsNewHair(self, itemVnum):
- return itemVnum > 74000 and itemVnum < 75000
- def __IsNewHair2(self, itemVnum):
- return itemVnum > 75000 and itemVnum < 76000
- def __IsNewHair3(self, itemVnum):
- return ((74012 < itemVnum and itemVnum < 74022) or ##
- (45001 <= itemVnum and itemVnum <= 45026) or ## org GF/YMIR Hair styles
- (45051 <= itemVnum and itemVnum <= 45525) or ## org GF/YMIR New Hair styles add more if slot bee missing
- (74262 < itemVnum and itemVnum < 74272) or
- (74512 < itemVnum and itemVnum < 74522) or
- (74762 < itemVnum and itemVnum < 74772) or
- (1370755 < itemVnum and itemVnum < 1370883) or
- (45051 <= itemVnum and itemVnum <= 75632) or
- (75601 <= itemVnum and itemVnum <= 75632) or ## Only Lican Hair
- (97999 < itemVnum and itemVnum < 98999)) # New Shining Images
- def __IsCostumeHair(self, itemVnum):
- return app.ENABLE_COSTUME_SYSTEM and self.__IsNewHair3(itemVnum - 80000)
- def __AppendHairIcon(self, itemVnum):
- itemImage = ui.ImageBox()
- itemImage.SetParent(self)
- itemImage.Show()
- if self.__IsOldHair(itemVnum):
- itemImage.LoadImage("d:/ymir work/icon/hair_old/"+str(itemVnum)+".tga")
- elif self._IsNewHair3(itemVnum):
- hair = "d:/ymir work/icon/hair/"+str(itemVnum)
- if os.path.exists(hair+".sub"):
- itemImage.LoadImage(hair+".sub")
- else:
- itemImage.LoadImage(hair+".tga")
- elif self.__IsNewHair(itemVnum): # 기존 헤어 번호를 연결시켜서 사용한다. 새로운 아이템은 1000만큼 번호가 늘었다.
- itemImage.LoadImage("d:/ymir work/icon/hair_old/"+str(itemVnum-1000)+".tga")
- elif self.__IsNewHair2(itemVnum):
- itemImage.LoadImage("d:/ymir work/icon/hair/%d.sub" % (itemVnum))
- elif self.__IsCostumeHair(itemVnum):
- itemImage.LoadImage("d:/ymir work/icon/hair/%d.sub" % (itemVnum - 80000))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement