Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. on init
  2. message("") {clears the status bar}
  3. set_ui_height_px(100)
  4. make_perfview {makes this UI visible outside the edit mode}
  5.  
  6. declare i
  7.  
  8.  
  9. declare ui_switch $Top_Led
  10. set_control_par_str(get_ui_id($Top_Led),$CONTROL_PAR_TEXT,"")
  11. set_control_par(get_ui_id($Top_Led), $CONTROL_PAR_WIDTH, 25)
  12. set_control_par(get_ui_id($Top_Led), $CONTROL_PAR_HEIGHT, 25)
  13. move_control_px($Top_Led,194,22)
  14.  
  15. end on
  16.  
  17. on ui_control ($Top_Led)
  18. if ($Top_Led =0)
  19. $i := 0
  20. while ($i < 50)
  21. purge_group($i,0)
  22. inc($i)
  23. end while
  24. else
  25. $i := 0
  26. while ($i < 50)
  27. purge_group($i,1)
  28. inc($i)
  29. end while
  30. end if
  31. end on
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement