O inconita in dreapta jos care arata ce + are itemul respectiv.
Intram in eterPythonLib/PythonSlotWindow.h
Cautam
Sub el adaugam
-------------
Cautam
Sub el adaugam
Intram in eterPythonLib/PythonSlotWindow.cpp
Cautam
Sub el adaugam
---------------------
Cautam
DEASUPRA lui adaugam:
-------------
Cautam
Sub el adaugam
---------
Cautam
Deasupra lui adaugam
Intram in eterPythonLib/PythonWindowManagerModule.cpp
Cautam:
Deasupra lui adaugam
Cautam:
Sub el adaugam
-------
Despachetam root si deschidem ui.py
Adaugam sus de tot la import
Cautam
Sub el adaugam
Despachetam icon.eix / epk
Langa folderele "action" "face" "item" "hair" facem un folder nou numit "level" unde adaugam: http://www.girlshare.ro/3489875482.5
Intram in eterPythonLib/PythonSlotWindow.h
Cautam
Cod: Selectaţi tot
CGraphicImageInstance * pInstance;Cod: Selectaţi tot
CGraphicImageInstance * pInstanceLevel;Cautam
Cod: Selectaţi tot
void Destroy();Cod: Selectaţi tot
void SetSlotLevelImage(DWORD dwIndex, CGraphicImage * levelImage);Intram in eterPythonLib/PythonSlotWindow.cpp
Cautam
Cod: Selectaţi tot
Slot.pFinishCoolTimeEffect = NULL;Cod: Selectaţi tot
Slot.pInstanceLevel = NULL;Cautam
Cod: Selectaţi tot
void CSlotWindow::SetSlotCount(DWORD dwIndex, DWORD dwCount)Cod: Selectaţi tot
void CSlotWindow::SetSlotLevelImage(DWORD dwIndex, CGraphicImage * levelImage)
{
TSlot * pSlot;
if (!GetSlotPointer(dwIndex, &pSlot) || !levelImage)
return;
assert(NULL == pSlot->pInstanceLevel);
pSlot->pInstanceLevel = CGraphicImageInstance::New();
pSlot->pInstanceLevel->SetDiffuseColor(1.0, 1.0, 1.0, 1.0);
pSlot->pInstanceLevel->SetImagePointer(levelImage);
}-------------
Cautam
Cod: Selectaţi tot
pSlot->dwCenterSlotNumber = 0xffffffff;Cod: Selectaţi tot
if (pSlot->pInstanceLevel)
{
CGraphicImageInstance::Delete(pSlot->pInstanceLevel);
pSlot->pInstanceLevel = NULL;
}---------
Cautam
Cod: Selectaţi tot
if (rSlot.bActive)Cod: Selectaţi tot
if (rSlot.pInstanceLevel)
{
rSlot.pInstanceLevel->SetPosition(m_rect.left + rSlot.ixPosition, (m_rect.top + rSlot.iyPosition + rSlot.byyPlacedItemSize*ITEM_HEIGHT) - 32);
rSlot.pInstanceLevel->Render();
}Intram in eterPythonLib/PythonWindowManagerModule.cpp
Cautam:
Cod: Selectaţi tot
void initwndMgr()Cod: Selectaţi tot
PyObject * wndMgrSetSlotImage(PyObject * poSelf, PyObject * poArgs)
{
UI::CWindow * pWin;
if (!PyTuple_GetWindow(poArgs, 0, &pWin))
return Py_BuildException();
int iSlotIndex;
if (!PyTuple_GetInteger(poArgs, 1, &iSlotIndex))
return Py_BuildException();
char * szImagePath;
if (!PyTuple_GetString(poArgs, 2, &szImagePath))
return Py_BuildException();
if (!pWin->IsType(UI::CSlotWindow::Type()))
return Py_BuildException();
UI::CSlotWindow * pSlotWin = (UI::CSlotWindow *)pWin;
CGraphicImage * pImage = (CGraphicImage *)CResourceManager::Instance().GetResourcePointer(szImagePath);
if (!pImage)
return Py_BuildException();
pSlotWin->SetSlotLevelImage(iSlotIndex, pImage);
return Py_BuildNone();
}Cod: Selectaţi tot
{ "ShowOverInWindowName", wndMgrShowOverInWindowName, METH_VARARGS },Cod: Selectaţi tot
{ "SetSlotLevelImage", wndMgrSetSlotImage, METH_VARARGS },Despachetam root si deschidem ui.py
Adaugam sus de tot la import
Cod: Selectaţi tot
import playerCod: Selectaţi tot
wndMgr.SetSlotCount(self.hWnd, renderingSlotNumber, ItemCount)Cod: Selectaţi tot
####Item level text/icon ###
itemName=item.GetItemName().strip()
itemNameP=item.GetItemName().rfind('+')
if itemNameP>0 and len(itemName)>itemNameP+1:
level=itemName[itemNameP+1:]
if level.isdigit():
wndMgr.SetSlotLevelImage(self.hWnd, renderingSlotNumber, ("icon/level/%d.tga"%int(level)))
####Item level text/icon END ### Langa folderele "action" "face" "item" "hair" facem un folder nou numit "level" unde adaugam: http://www.girlshare.ro/3489875482.5











