http://i.imgur.com/ZgBtvp7.png
Tutorial:
Dute la UserInterface > PythonPlayer.cpp
Cauta:
Cod: Selectaţi tot
void CPythonPlayer::SetItemData(TItemPos Cell, const TItemData & c_rkItemInst)Cod: Selectaţi tot
PyCallClassMemberFunc(m_ppyGameWindow, "OnNewItem", Py_BuildValue("(i)", Cell.cell));Dute la root > constInfo.py
Adăugați acest lucru undeva:
Cod: Selectaţi tot
NEWITEMS = []Dute la root > game.py
Adăugați această funcție:
Cod: Selectaţi tot
def OnNewItem(self, cell):
if not cell in constInfo.NEWITEMS:
constInfo.NEWITEMS.append(cell)Dute la root > uiinventory.py
Cauta:
Cod: Selectaţi tot
def RefreshBagSlotWindow(self):Cod: Selectaţi tot
if itemCount == 0 and slotNumber in constInfo.NEWITEMS:
constInfo.NEWITEMS.remove(slotNumber)Cod: Selectaţi tot
self.wndItem.EnableCoverButton(i)
if slotNumber in constInfo.NEWITEMS:
self.wndItem.SetCoverButton(i, "d:/ymir work/ui/game/quest/slot_button_00.sub",\
"d:/ymir work/ui/game/quest/slot_button_00.sub",\
"d:/ymir work/ui/game/quest/slot_button_00.sub",\
"d:/ymir work/ui/new_icon.tga", FALSE, FALSE)
self.wndItem.DisableCoverButton(i)Cod: Selectaţi tot
def OverInItem(self, overSlotPos):Cod: Selectaţi tot
slotPos = overSlotPosCod: Selectaţi tot
if overSlotPos in constInfo.NEWITEMS:
self.wndItem.EnableCoverButton(slotPos)
constInfo.NEWITEMS.remove(overSlotPos)În cele din urmă mergeți la ymirwork / ui și adăugați acest fișier:
https://mega.nz/#!VgA2GKrR!iB4vDwhCvT0y ... stcoey_J8I
Pack root si etc.
Acest lucru nu este cel mai optimizat mod de a face acest sistem, dar cel puțin aveți o cale.









