Active Member ReFresh 2340 Posted March 24, 2016 Active Member Share Posted March 24, 2016 Hi guys, How can I add picture of hair: from this: to like this: Thank you for your answers! Kind Regards ReFresh I'll be always helpful! Link to comment Share on other sites More sharing options...
VegaS 1087 Posted March 24, 2016 Share Posted March 24, 2016 uIToolTip.py 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 (74262 < itemVnum and itemVnum < 74272) or (74512 < itemVnum and itemVnum < 74522) or (74762 < itemVnum and itemVnum < 74772) or (45000 < itemVnum and itemVnum < 47000)) def __AppendHairIcon(self, itemVnum): itemImage = ui.ImageBox() itemImage.SetParent(self) itemImage.Show() if self.__IsOldHair(itemVnum): itemImage.LoadImage("d:/ymir work/item/quest/"+str(itemVnum)+".tga") elif self.__IsNewHair3(itemVnum): itemImage.LoadImage("icon/hair/%d.sub" % (itemVnum)) elif self.__IsNewHair(itemVnum): itemImage.LoadImage("d:/ymir work/item/quest/"+str(itemVnum-1000)+".tga") elif self.__IsNewHair2(itemVnum): itemImage.LoadImage("icon/hair/%d.sub" % (itemVnum)) elif self.__IsCostumeHair(itemVnum): itemImage.LoadImage("icon/hair/%d.sub" % (itemVnum - 100000)) itemImage.SetPosition(itemImage.GetWidth()/2, self.toolTipHeight) self.toolTipHeight += itemImage.GetHeight() self.childrenList.append(itemImage) self.ResizeToolTip() Link to comment Share on other sites More sharing options...
Active Member ReFresh 2340 Posted March 24, 2016 Author Active Member Share Posted March 24, 2016 --EDITED-- I'll be always helpful! Link to comment Share on other sites More sharing options...
fenixplayscz 16 Posted March 24, 2016 Share Posted March 24, 2016 1 hour ago, ReFresh said: Thank you for answer! Is this code in some file in roots? Really? you can just read uitooltip.py Link to comment Share on other sites More sharing options...
Active Member ReFresh 2340 Posted March 24, 2016 Author Active Member Share Posted March 24, 2016 11 minutes ago, fenixplayscz said: Really? you can just read uitooltip.py Oh, thank you. I'm blind or he edit his answer I'll be always helpful! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now