Guest User

Untitled

a guest
Mar 20th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.26 KB | None | 0 0
  1. {
  2. function TOKOScript(thisObj) {
  3. function TOKOScript_buildUI(thisObj) {
  4. var TokoPanel = (thisObj instanceof Panel) ? thisObj : new Window("palette", "TOKO Library", [0, 0, 300, 300], {resizeable:true});
  5.  
  6. res="group{orientation:'row', alignment:['fill', 'fill'], alignChildren:['fill', 'fill'],\
  7. ButtonsGroup: Group{orientation:'column', alignment:['left', 'top'], alignChildren:['fill', 'fill'],\
  8. TokoButton1: Button{text:'Typography'},\
  9. TokoButton2: Button{text:'Infographics'},\
  10. TokoButton3: Button{text:'Devices'},\
  11. TokoButton4: Button{text:'Titles'},\
  12. TokoButton5: Button{text:'Lower-Thirds'},\
  13. TokoButton6: Button{text:'Call Outs'},\
  14. TokoButton7: Button{text:'Transitions'},\
  15. TokoButton8: Button{text:'Presentations'},\
  16. TokoButton9: Button{text:'Logo Reveal'},\
  17. TokoButton10: Button{text:'Animated Icon'},\
  18. TokoButton11: Button{text:'Shape Elements'},\
  19. TokoButton1: Button{text:'Typography'},\
  20. TokoButton2: Button{text:'Infographics'},\
  21. TokoButton3: Button{text:'Devices'},\
  22. TokoButton4: Button{text:'Titles'},\
  23. TokoButton5: Button{text:'Lower-Thirds'},\
  24. TokoButton6: Button{text:'Call Outs'},\
  25. TokoButton7: Button{text:'Transitions'},\
  26. TokoButton8: Button{text:'Presentations'},\
  27. TokoButton9: Button{text:'Logo Reveal'},\
  28. TokoButton10: Button{text:'Animated Icon'},\
  29. TokoButton11: Button{text:'Shape Elements'},\
  30. },\
  31. }"
  32.  
  33. //Add resource string to panel
  34. TokoPanel.grp = TokoPanel.add(res);
  35.  
  36.  
  37.  
  38. //Setup panel sizing and make panel resizable
  39. TokoPanel.layout.layout(true);
  40. TokoPanel.grp.minimumSize = TokoPanel.grp.size;
  41. TokoPanel.layout.resize();
  42. TokoPanel.onResizing = TokoPanel.onResize = function () {this.layout.resize();}
  43.  
  44. return TokoPanel;
  45. }
  46.  
  47.  
  48. var myScriptPal = TOKOScript_buildUI(thisObj);
  49.  
  50.  
  51. if ((myScriptPal != null) && (myScriptPal instanceof Window)) {
  52. myScriptPal.center();
  53. myScriptPal.show();
  54. }
  55. }
  56.  
  57.  
  58. TOKOScript(this);
  59. }
Add Comment
Please, Sign In to add comment