Bitte melden Sie sich an, um dieses Bild zu sehen.
- root/uiRefine.py
- root/constInfo.py
Another idea: (you don't have to use this, is just a example, can add in tooltip where you can drop items which you need, you can add a listbox+scrollbar and send drops from server and cache it in dictionary.)
Bitte melden Sie sich an, um dieses Bild zu sehen.
Python
- def OverInItem(self, slotIndex):
- import grp, nonplayer
- if not self.tooltipItem or slotIndex > len(TOOLTIP_DATA['materials']):
- return
- slotVnum = TOOLTIP_DATA['materials'][slotIndex]
- self.tooltipItem.ClearToolTip()
- self.tooltipItem.AddItemData(slotVnum, 0, 0, 0, 0, player.INVENTORY)
- customInfoDropDict = \
- {
- 27992 : (2061, 2062, 2063, 2065, 2068, 2069),
- 30190 : (2201, 2204, 2205),
- 50181 : (2312, 2314, 2402, 2091, 2092, 1901, 1092, 2307, 2493),
- }
- if slotVnum in customInfoDropDict:
- self.tooltipItem.AppendSpace(5)
- self.tooltipItem.AutoAppendTextLine(localeInfo.REFINE_ITEM_CAN_BE_DROPPED_FROM, grp.GenerateColor(0.6911, 0.8754, 0.7068, 1.0))
- for mobVnum in customInfoDropDict[slotVnum]:
- self.tooltipItem.AutoAppendTextLine(nonplayer.GetMonsterName(mobVnum))
- self.tooltipItem.AlignHorizonalCenter()
- self.tooltipItem.ShowToolTip()