1
0

counter.qsrc 672 B

1234567891011121314151617181920212223242526
  1. # counter
  2. if $notification_message[0] ! '' and _n_counter['shown'] = 1 and _n_counter['lock'] = 0:
  3. _n_counter['lock'] = 1
  4. if _n_counter['timer'] >= 0:
  5. _n_counter['timer'] -= 500
  6. else
  7. if $notification_message[1] ! '':
  8. $stat_msg = replace($stat_msg, $notification_message[0], $notification_message[1])
  9. _n_counter['timer'] = _n_counter['duration']
  10. else
  11. $stat_msg = replace($stat_msg, $notification_message[0])
  12. _n_counter['shown'] = 0
  13. end
  14. clr & pl '<<$stat_msg>>'
  15. killvar '$notification_message', 0
  16. end
  17. _n_counter['lock'] = 0
  18. end
  19. if music_loop = 1 and $track_loop ! '': play $track_loop, volume
  20. --- counter ---------------------------------