Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### pack/root/uicube.py || Scorpion1453
- ## Find || Arat: (Around 336th line || 336.satır civarlarında)
- def __OverInMaterialSlot(self, trash, resultIndex, col):
- ## Change definition(function) || Fonksiyonu değiştir:
- def __OverInMaterialSlot(self, trash, resultIndex, col):
- self.tooltipItem.ClearToolTip()
- self.tooltipItem.SetCannotUseItemForceSetDisableColor(FALSE)
- resultIndex = resultIndex + self.firstSlotIndex
- if resultIndex not in self.cubeMaterialInfos:
- return
- i = 0
- materialInfo = self.cubeMaterialInfos[resultIndex]
- materialCount = len(materialInfo[col])
- for itemVnum, count in materialInfo[col]:
- item.SelectItem(itemVnum)
- if player.GetItemCountByVnum(itemVnum) >= count:
- self.tooltipItem.AppendTextLine("%s" % (item.GetItemName()), grp.GenerateColor(0.5411, 0.7254, 0.5568, 1.0)).SetFeather()
- else:
- self.tooltipItem.AppendTextLine("%s" % (item.GetItemName()), grp.GenerateColor(0.9, 0.4745, 0.4627, 1.0)).SetFeather()
- if i < materialCount - 1:
- self.tooltipItem.AppendTextLine(uiScriptLocale.CUBE_REQUIRE_MATERIAL_OR)
- i = i + 1
- self.tooltipItem.Show()
Advertisement
Add Comment
Please, Sign In to add comment