Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. )
  2.  
  3. read_persistent_var($S)
  4.  
  5. move_control_px($S,245,2)
  6.  
  7. set_control_par(get_ui_id($S),$CONTROL_PAR_WIDTH,34)
  8.  
  9. set_text($S,!btn[$S])
  10. set_text($T,"")
  11.  
  12. message("")
  13. end on
  14.  
  15. on ui_control($S)
  16. set_text($S,!btn[$S])
  17. end on
  18.  
  19. on ui_control($P)
  20. if ($S = 0)
  21. @txt := ""
  22. $count := $P * 4
  23. while ($count < 4 + ($P * 4))
  24. @txt := @txt & %mem[$count] & " "
  25. inc($count)
  26. end while
  27. set_text($T,"#" & $P + 1 & " load: " & @txt)
  28. else
  29. @txt := ""
  30. $count := $P * 4
  31. while ($count < 4 + ($P * 4))
  32. %mem[$count] := random (0,9)
  33. @txt := @txt & %mem[$count] & " "
  34. inc($count)
  35. end while
  36. set_text($T,"#" & $P+1 & " save: " & @txt)
  37. end if
  38. end on
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement