I. Client Binary:
1.0 EterPythonLib/PythonSlotWindow.cpp
//Keresd:
if (!m_pSlotActiveEffect)
//Cseréld ki:
#ifdef ENABLE_HIGHLIGHT_SYSTEM
if (!m_apSlotActiveEffect[0] || !m_apSlotActiveEffect[1] || !m_apSlotActiveEffect[2])
#else
if (!m_pSlotActiveEffect)
#endif
//Keresd:
if (m_pSlotActiveEffect)
m_pSlotActiveEffect->Update();
//Cseréld ki:
#ifdef ENABLE_HIGHLIGHT_SYSTEM
for (int i = 0; i < 3; ++i)
{
if (m_apSlotActiveEffect[i])
m_apSlotActiveEffect[i]->Update();
}
#else
if (m_pSlotActiveEffect)
m_pSlotActiveEffect->Update();
#endif
//Keresd:
if (rSlot.bActive)
{
int ix = m_rect.left + rSlot.ixPosition;
int iy = m_rect.top + rSlot.iyPosition;
if (m_pSlotActiveEffect)
{
m_pSlotActiveEffect->SetPosition(ix, iy);
m_pSlotActiveEffect->Render();
}
}
//Cseréld ki:
if (rSlot.bActive)
{
int ix = m_rect.left + rSlot.ixPosition;
int iy = m_rect.top + rSlot.iyPosition;
#ifdef ENABLE_HIGHLIGHT_SYSTEM
int highlight = rSlot.byyPlacedItemSize;
if (highlight == 1)
{
m_apSlotActiveEffect[0]->Show();
m_apSlotActiveEffect[0]->SetPosition(ix, iy);
m_apSlotActiveEffect[0]->Render();
}
if (highlight == 2)
{
m_apSlotActiveEffect[1]->Show();
m_apSlotActiveEffect[1]->SetPosition(ix, iy);
m_apSlotActiveEffect[1]->Render();
}
if (highlight == 3)
{
m_apSlotActiveEffect[2]->Show();
m_apSlotActiveEffect[2]->SetPosition(ix, iy);
m_apSlotActiveEffect[2]->Render();
}
#else
if (m_pSlotActiveEffect)
{
m_pSlotActiveEffect->SetPosition(ix, iy);
m_pSlotActiveEffect->Render();
}
#endif
}
//Keresd:
void CSlotWindow::__CreateSlotEnableEffect()
//Helyettesítsd ezzel:
void CSlotWindow::__CreateSlotEnableEffect()
{
__DestroySlotEnableEffect();
#ifdef ENABLE_HIGHLIGHT_SYSTEM
for (int i = 0; i < 3; ++i)
{
CAniImageBox* pEff = new CAniImageBox(NULL);
for (int j = 0; j <= 12; ++j)
{
char buf[64+1];
sprintf_s(buf, "d:/ymir work/ui/public/slotactiveeffect/slot%d/%02d.sub", (i+1), j);
pEff->AppendImage(buf);
}
pEff->SetRenderingMode(CGraphicExpandedImageInstance::RENDERING_MODE_SCREEN);
m_apSlotActiveEffect[i] = pEff;
}
#else
m_pSlotActiveEffect = new CAniImageBox(NULL);
m_pSlotActiveEffect->AppendImage("d:/ymir work/ui/public/slotactiveeffect/00.sub");
m_pSlotActiveEffect->AppendImage("d:/ymir work/ui/public/slotactiveeffect/01.sub");
m_pSlotActiveEffect->AppendImage("d:/ymir work/ui/public/slotactiveeffect/02.sub");
m_pSlotActiveEffect->AppendImage("d:/ymir work/ui/public/slotactiveeffect/03.sub");
m_pSlotActiveEffect->AppendImage("d:/ymir work/ui/public/slotactiveeffect/04.sub");
m_pSlotActiveEffect->AppendImage("d:/ymir work/ui/public/slotactiveeffect/05.sub");
m_pSlotActiveEffect->AppendImage("d:/ymir work/ui/public/slotactiveeffect/06.sub");
m_pSlotActiveEffect->AppendImage("d:/ymir work/ui/public/slotactiveeffect/07.sub");
m_pSlotActiveEffect->AppendImage("d:/ymir work/ui/public/slotactiveeffect/08.sub");
m_pSlotActiveEffect->AppendImage("d:/ymir work/ui/public/slotactiveeffect/09.sub");
m_pSlotActiveEffect->AppendImage("d:/ymir work/ui/public/slotactiveeffect/10.sub");
m_pSlotActiveEffect->AppendImage("d:/ymir work/ui/public/slotactiveeffect/11.sub");
m_pSlotActiveEffect->AppendImage("d:/ymir work/ui/public/slotactiveeffect/12.sub");
m_pSlotActiveEffect->SetRenderingMode(CGraphicExpandedImageInstance::RENDERING_MODE_SCREEN);
m_pSlotActiveEffect->Show();
#endif
}
//Keresd:
void CSlotWindow::__DestroySlotEnableEffect()
//Helyettesítsd ezzel:
void CSlotWindow::__DestroySlotEnableEffect()
{
#ifdef ENABLE_HIGHLIGHT_SYSTEM
for (int i = 0; i < 3; ++i)
{
if (m_apSlotActiveEffect[i])
{
delete m_apSlotActiveEffect[i];
m_apSlotActiveEffect[i] = NULL;
}
}
#else
if (m_pSlotActiveEffect)
{
delete m_pSlotActiveEffect;
m_pSlotActiveEffect = NULL;
}
#endif
}
//Keresd:
m_pSlotActiveEffect = NULL;
//Cseréld ki:
#ifdef ENABLE_HIGHLIGHT_SYSTEM
for (int i = 0; i < 3; ++i)
{
m_apSlotActiveEffect[i] = NULL;
}
#else
m_pSlotActiveEffect = NULL;
#endif
##############################################################
Ha valakinek segítettem használja egészséggel! Mivel túl sok lenne csatoltam a többi részt!
##############################################################
Forrás: Freakgamer