Jump to content
M2Tec - Community Maintenance Read more... ×

Search the Community

Showing results for tags 'on'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • M2Tec Community
    • News and Informations
    • Terms & Rules
    • Suggestions and Feedback
  • Metin2
    • Binaries & Clients/Serverfiles
    • Releases
    • Guides & Tutorials
    • Discussions & Opinions
    • Questions
    • Private Servers
  • General Content
    • HowTo & Guides
    • General Releases
    • Web development
    • Operative Systems
  • Trade Section
    • Buy
    • Sell
  • Save Zone
    • Videos & Music
    • Member Representations
  • M2tec Files's Topics

Categories

There are no results to display.

There are no results to display.

Blogs

There are no results to display.

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 1 result

  1. ĸαlιвor

    guide Icon on item +0-+9

    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
×