Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CSlotWindow::__CreateSlotEnableEffect()
- {
- __DestroySlotEnableEffect();
- // Size 1
- m_apSlotActiveEffect[0] = new CAniImageBox(NULL);
- for (int i = 1; i <= 22; i++)
- {
- char buf[64+1];
- sprintf_s(buf, "d:/ymir work/ui/public/newitemeffect/newitemeffect_%06d.sub", i);
- m_apSlotActiveEffect[0]->AppendImage(buf);
- }
- // Size 2
- m_apSlotActiveEffect[1] = new CAniImageBox(NULL);
- for (int i = 23; i <= 54; i++)
- {
- char buf[64+1];
- sprintf_s(buf, "d:/ymir work/ui/public/newitemeffect/newitemeffect_%06d.sub", i);
- m_apSlotActiveEffect[1]->AppendImage(buf);
- }
- // Size 3
- m_apSlotActiveEffect[2] = new CAniImageBox(NULL);
- for (int i = 55; i <= 93; i++)
- {
- char buf[64+1];
- sprintf_s(buf, "d:/ymir work/ui/public/newitemeffect/newitemeffect_%06d.sub", i);
- m_apSlotActiveEffect[2]->AppendImage(buf);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement