ncase.me-trust/js/slides/7_Slides_Sandbox.js

31 lines
637 B
JavaScript
Raw Normal View History

2017-06-28 14:53:43 +00:00
SLIDES.push({
2017-07-10 15:38:20 +00:00
id: "sandbox",
2017-07-12 21:24:26 +00:00
onstart: function(self){
2017-06-28 14:53:43 +00:00
// The tournament simulation
2017-07-12 21:46:38 +00:00
Tournament.resetGlobalVariables();
self.add({id:"tournament", type:"Tournament", x:-20, y:-20},);
2017-06-28 14:53:43 +00:00
// Screw it, just ALL of the Sandbox UI
2017-07-12 21:46:38 +00:00
self.add({id:"sandbox", type:"SandboxUI"});
2017-06-28 14:53:43 +00:00
2017-07-17 19:39:26 +00:00
// Label & Button for next...
self.add({
id:"label_next", type:"TextBox",
2017-07-20 22:16:35 +00:00
x:40, y:481, width:550, align:"right",
2017-07-17 19:39:26 +00:00
text_id: "sandbox_end"
});
2017-07-12 21:46:38 +00:00
self.add({
id:"button_next", type:"Button",
2017-07-20 22:16:35 +00:00
x:605, y:465, size:"long",
text_id:"sandbox_end_btn",
2017-07-12 21:46:38 +00:00
message: "slideshow/scratch"
});
},
onend: function(self){
self.clear();
}
2017-06-28 14:53:43 +00:00
});