trust/js/slides/6_Slides_Sandbox.js

31 lines
633 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",
x:14, y:481, width:800, align:"right",
text_id: "sandbox_end"
});
2017-07-12 21:46:38 +00:00
self.add({
id:"button_next", type:"Button",
2017-07-17 19:39:26 +00:00
x:831, y:465, size:"short",
2017-07-12 21:46:38 +00:00
text_id:"label_next",
message: "slideshow/scratch"
});
},
onend: function(self){
self.clear();
}
2017-06-28 14:53:43 +00:00
});