Advertisement
Guest User

Untitled

a guest
Jan 29th, 2020
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. void CSlotWindow::__CreateSlotEnableEffect()
  2. {
  3. __DestroySlotEnableEffect();
  4.  
  5. // Size 1
  6. m_apSlotActiveEffect[0] = new CAniImageBox(NULL);
  7. for (int i = 1; i <= 22; i++)
  8. {
  9. char buf[64+1];
  10. sprintf_s(buf, "d:/ymir work/ui/public/newitemeffect/newitemeffect_%06d.sub", i);
  11. m_apSlotActiveEffect[0]->AppendImage(buf);
  12. }
  13.  
  14. // Size 2
  15. m_apSlotActiveEffect[1] = new CAniImageBox(NULL);
  16. for (int i = 23; i <= 54; i++)
  17. {
  18. char buf[64+1];
  19. sprintf_s(buf, "d:/ymir work/ui/public/newitemeffect/newitemeffect_%06d.sub", i);
  20. m_apSlotActiveEffect[1]->AppendImage(buf);
  21. }
  22.  
  23. // Size 3
  24. m_apSlotActiveEffect[2] = new CAniImageBox(NULL);
  25. for (int i = 55; i <= 93; i++)
  26. {
  27. char buf[64+1];
  28. sprintf_s(buf, "d:/ymir work/ui/public/newitemeffect/newitemeffect_%06d.sub", i);
  29. m_apSlotActiveEffect[2]->AppendImage(buf);
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement