Advertisement
Guest User

Untitled

a guest
Mar 6th, 2011
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  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)>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement