Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- function TOKOScript(thisObj) {
- function TOKOScript_buildUI(thisObj) {
- var TokoPanel = (thisObj instanceof Panel) ? thisObj : new Window("palette", "TOKO Library", [0, 0, 300, 300], {resizeable:true});
- res="group{orientation:'row', alignment:['fill', 'fill'], alignChildren:['fill', 'fill'],\
- ButtonsGroup: Group{orientation:'column', alignment:['left', 'top'], alignChildren:['fill', 'fill'],\
- TokoButton1: Button{text:'Typography'},\
- TokoButton2: Button{text:'Infographics'},\
- TokoButton3: Button{text:'Devices'},\
- TokoButton4: Button{text:'Titles'},\
- TokoButton5: Button{text:'Lower-Thirds'},\
- TokoButton6: Button{text:'Call Outs'},\
- TokoButton7: Button{text:'Transitions'},\
- TokoButton8: Button{text:'Presentations'},\
- TokoButton9: Button{text:'Logo Reveal'},\
- TokoButton10: Button{text:'Animated Icon'},\
- TokoButton11: Button{text:'Shape Elements'},\
- TokoButton1: Button{text:'Typography'},\
- TokoButton2: Button{text:'Infographics'},\
- TokoButton3: Button{text:'Devices'},\
- TokoButton4: Button{text:'Titles'},\
- TokoButton5: Button{text:'Lower-Thirds'},\
- TokoButton6: Button{text:'Call Outs'},\
- TokoButton7: Button{text:'Transitions'},\
- TokoButton8: Button{text:'Presentations'},\
- TokoButton9: Button{text:'Logo Reveal'},\
- TokoButton10: Button{text:'Animated Icon'},\
- TokoButton11: Button{text:'Shape Elements'},\
- },\
- }"
- //Add resource string to panel
- TokoPanel.grp = TokoPanel.add(res);
- //Setup panel sizing and make panel resizable
- TokoPanel.layout.layout(true);
- TokoPanel.grp.minimumSize = TokoPanel.grp.size;
- TokoPanel.layout.resize();
- TokoPanel.onResizing = TokoPanel.onResize = function () {this.layout.resize();}
- return TokoPanel;
- }
- var myScriptPal = TOKOScript_buildUI(thisObj);
- if ((myScriptPal != null) && (myScriptPal instanceof Window)) {
- myScriptPal.center();
- myScriptPal.show();
- }
- }
- TOKOScript(this);
- }
Add Comment
Please, Sign In to add comment