Advertisement
PT_

Untitled

PT_
Aug 28th, 2018
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. [i]HDPICV
  2.  
  3.  
  4. 0->APOS
  5. 0->TOTALPICS
  6. 10->THUMBNAILX
  7. 20->THUMBNAILY
  8.  
  9. Pause
  10. Begin
  11. //detects left side
  12. While Detect(^^oAPOS,"HDPICV2L"->LPIC
  13.  
  14. //Disp "1 "
  15. CloseAll
  16. Open(LPIC,"r->LPICSLOT
  17. If LPICSLOT=0
  18. Goto WRONGPIC
  19. End
  20. Seek(8,0,LPICSLOT
  21. 0->BPOS
  22. Pause
  23.  
  24. Lbl WRONGPIC
  25. //detects right side
  26. While Detect(^^oBPOS,"HDPICV2R"->RPIC
  27. //Disp "5 "
  28. //Disp "6 "
  29. Open(RPIC,"r->RPICSLOT
  30. If RPICSLOT=0
  31. Goto WRONGPIC
  32. End
  33.  
  34. Seek(8,0,RPICSLOT
  35. 0->WRONGPIC
  36.  
  37. //checks if name is correct
  38. For(CHAR,0,7
  39. If GetChar(LPICSLOT)!=GetChar(RPICSLOT
  40. //Disp "8 ",[i]
  41. sum(3,RPICSLOT
  42. Goto WRONGPIC
  43. End
  44. End
  45. //1->BPOS
  46. //Goto CORRECTPIC
  47.  
  48. End
  49. Lbl CORRECTPIC
  50. //[Will be implemented later] stores pointers to pic into L1
  51. 3+TOTALPICS->TOTALPICS
  52.  
  53. 3+TOTALPICS->TOTALPICS
  54.  
  55.  
  56. //RPIC->L1(TOTALPICS
  57.  
  58. //Disp 80*(TOTALPICS/3)," ",60*(TOTALPICS/12),[i]
  59. //Disp (*{GetDataPtr(LPICSLOT)}/4)+80*(TOTALPICS/2)," ",60*(TOTALPICS/12)
  60.  
  61. //sets pic coordinates
  62. //10+80*((TOTALPICS/6))->LPICX+(*{GetDataPtr(LPICSLOT)})/2->RPICX
  63.  
  64.  
  65. 10+120*((remainder(TOTALPICS,12)=0))->LPICX+(*{GetDataPtr(LPICSLOT)})/2->RPICX
  66. 10+60*((TOTALPICS/12)*remainder(TOTALPICS,12)!=0)->LPICY->RPICY
  67.  
  68. //(*{GetDataPtr(LPICSLOT)})/2+80*((TOTALPICS/6)-1)->RPICX
  69. //TOTALPICS+60*((TOTALPICS/6))->RPICY
  70.  
  71. //Pause
  72.  
  73. "test
  74. //displays coordinates for bugtesting
  75. //det(1
  76. Output(230,1,LPICX
  77. Output(230,40,LPICY
  78. Output(245,1,RPICX
  79. Output(245,40,RPICY
  80. Output(245,80,TOTALPICS
  81. Pause
  82. //ClrHome
  83.  
  84. Begin
  85.  
  86. //outputs the thumbnail image
  87. RotatedScaledSprite_NoClip(GetDataPtr(LPICSLOT),LPICX,LPICY,0,32
  88. //gets the correct placement of the right pic. *{GetDataPtr(LPICSLOT)} gets width of left pic.
  89. RotatedScaledSprite_NoClip(GetDataPtr(RPICSLOT),RPICX,RPICY,0,32
  90. Pause
  91.  
  92.  
  93. End
  94. Pause
  95. sum(0
  96. det(1
  97. Disp "End!
  98. Pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement