- 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);
- }