Advertisement
nik684

Untitled

May 11th, 2022
103
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. ::GW_displayText
  4. ::GW_displayTextDialog
  5. try(unregisterRedrawViewsCallback GW_displayText)catch()
  6.  
  7.  
  8.  
  9. fn GW_displayText =
  10. (
  11.  
  12. wPos = GW.GetWinSizeX()*0.5
  13.  
  14. hPos = GW.GetWinSizeY()*0.2
  15.  
  16. gw.htext [wPos,hPos,0] "DUPLICATE COMPLETE" color:red
  17.  
  18. gw.updateScreen()
  19.  
  20. )
  21.  
  22. registerRedrawViewsCallback GW_displayText
  23.  
  24. rollout GW_displayTextDialog "Test Timer"
  25. (
  26.  
  27. timer clock "testClock" interval:1000 --tick once a second
  28.  
  29. on clock tick do
  30. (
  31. if (clock.ticks==3) do
  32. (
  33. try(unregisterRedrawViewsCallback GW_displayText)catch()
  34. DestroyDialog GW_displayTextDialog
  35. )
  36. )
  37.  
  38. )
  39. CreateDialog GW_displayTextDialog pos:[-100,-100]
  40. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement