Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 6th, 2011  |  syntax: None  |  size: 0.63 KB  |  views: 105  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. new tags:
  2. %vs(label, value) <- set variable named 'label' to integer 'value'
  3. %vc(label) <- get the current value
  4. %vt(label, timeout) <- has 'timeout' elapsed since variable 'label' changed values?
  5.  
  6.  
  7.  
  8. --------------------------------
  9.  
  10. %?vc(show_popup)<%Vd(popup)>
  11.  
  12. # popup viewport
  13. %V(popup, .....)
  14. %T(buttona, ...., action)
  15. %?Tl(buttona, 1)<%vs(show_popup, 1)>
  16. %T(buttonb, ...., action)
  17. %?Tl(buttonb, 1)<%vs(show_popup, 1)>
  18. #and timeout to get rid of popup automagically
  19. %?vt(show_popup, 15)<|%vs(show_popup, 0)>
  20.  
  21.  
  22.  
  23. # in some other viewport
  24. %T(toggle, ...., none)
  25. %?vc(show_popup)<%?Tl(toggle, 1)<%vs(show_popup, 1)>>
clone this paste RAW Paste Data