Adding SettingsController

This commit is contained in:
Vince
2013-06-16 10:17:50 +02:00
parent 19b213129a
commit 955a49d2dd
4 changed files with 40 additions and 25 deletions

View File

@@ -24,6 +24,7 @@ $.namespace("pskl");
this.drawingController = new pskl.controller.DrawingController(frameSheet, $('#drawing-canvas-container'));
this.animationController = new pskl.controller.AnimatedPreviewController(frameSheet, $('#preview-canvas-container'));
this.previewsController = new pskl.controller.PreviewFilmController(frameSheet, $('#preview-list'));
this.settingsController = new pskl.controller.SettingsController();
// To catch the current active frame, the selection manager have to be initialized before
// the 'frameSheet.setCurrentFrameIndex(0);' line below.
@@ -39,6 +40,7 @@ $.namespace("pskl");
this.animationController.init();
this.previewsController.init();
this.settingsController.init();
this.historyService = new pskl.service.HistoryService(frameSheet);
this.historyService.init();
@@ -74,13 +76,6 @@ $.namespace("pskl");
$('#settings').click(function(evt) {
$('.right-sticky-section').toggleClass('expanded');
});
$('#canvas-picker').change(function(evt) {
$('#canvas-picker option:selected').each(function() {
console.log($(this).val());
$('html')[0].className = $(this).val();
});
});
},
render : function (delta) {