Jump to content
M2Tec Community

ĸαlιвor

Premium
  • Content Count

    102
  • Posts on chatbox

    20
  • Joined

  • Last visited

  • Days Won

    65

ĸαlιвor last won the day on July 16

ĸαlιвor had the most liked content!

Community Reputation

1747 Excellent

3 Followers

About ĸαlιвor

  • Rank
    Professional

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Mood

  • Brain
  • Currently Feeling Brain
  1. Download Credit & Info
  2. Link: Passwort:
  3. Download
  4. Download
  5. Hallöchen, Heute zeige ich euch wie ihr das System "Icon on item +0-+9" verbaut. System RLS: [Hidden Content] ################################# eterPythonLib/PythonSlotWindow.h ################################# suchen: CGraphicImageInstance * pInstance; darunter: CGraphicImageInstance * pInstanceLevel; ============================================================================= suchen: void Destroy(); darunter: void SetSlotLevelImage(DWORD dwIndex, CGraphicImage * levelImage); ################################# eterPythonLib/PythonSlotWindow.cpp ################################# suchen: Slot.pFinishCoolTimeEffect = NULL; darunter: Slot.pInstanceLevel = NULL; ============================================================================= suchen: void CSlotWindow::SetSlotCount(DWORD dwIndex, DWORD dwCount) darunter: 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); } ============================================================================= suchen: pSlot->dwCenterSlotNumber = 0xffffffff; darunter: if (pSlot->pInstanceLevel) { CGraphicImageInstance::Delete(pSlot->pInstanceLevel); pSlot->pInstanceLevel = NULL; } ============================================================================= suchen: if (rSlot.bActive) darüber: if (rSlot.pInstanceLevel) { rSlot.pInstanceLevel->SetPosition(m_rect.left + rSlot.ixPosition, (m_rect.top + rSlot.iyPosition + rSlot.byyPlacedItemSize*ITEM_HEIGHT) - 32); rSlot.pInstanceLevel->Render(); } ###################################### eterPythonLib/PythonWindowManagerModule.cpp ###################################### suchen: void initwndMgr() darüber: 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(); } ============================================================================= suchen: { "ShowOverInWindowName", wndMgrShowOverInWindowName, METH_VARARGS }, darunter: { "SetSlotLevelImage", wndMgrSetSlotImage, METH_VARARGS }, ################ root/ui.py ################ suchen: wndMgr.SetSlotCount(self.hWnd, renderingSlotNumber, ItemCount) darunter: 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))) Der Ordner "level" muss in Pfad ("icon/") gelegt werden. Gruß, ĸαlιвor
  6. pc pc2 Download
  7. Download
  8. check the libs [Hidden Content] && updated freebsd?
×
×
  • Create New...