mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
debug draw overlay, fullscreen
This commit is contained in:
parent
383eaa93bf
commit
4afc39081d
13 changed files with 247 additions and 93 deletions
|
|
@ -4,9 +4,10 @@ define([
|
|||
"Game/Client/View/Views/AbstractView",
|
||||
//"Game/Client/View/Views/ThreeView",
|
||||
"Game/Client/View/Views/PixiView",
|
||||
"Lib/Utilities/NotificationCenter"
|
||||
],
|
||||
|
||||
function (Settings, Exception, AbstractView, PixiView) {
|
||||
function (Settings, Exception, AbstractView, PixiView, NotificationCenter) {
|
||||
|
||||
var ViewManager = {};
|
||||
|
||||
|
|
@ -22,7 +23,7 @@ function (Settings, Exception, AbstractView, PixiView) {
|
|||
default:
|
||||
throw new Exception("A view called", Settings.VIEW_CONTROLLER, "has not been (fully) implemented.");
|
||||
}
|
||||
/*
|
||||
|
||||
if(!(view instanceof AbstractView)) {
|
||||
throw new Exception("The view", Settings.VIEW_CONTROLLER + 'View', "must extend AbstractView!");
|
||||
}
|
||||
|
|
@ -34,7 +35,9 @@ function (Settings, Exception, AbstractView, PixiView) {
|
|||
if(!(view.canvas instanceof HTMLCanvasElement)) {
|
||||
throw new Exception("In the view", Settings.VIEW_CONTROLLER + 'View', "this.setCanvas(canvas) has not been called with a valid HTMLCanvasElement!");
|
||||
}
|
||||
*/
|
||||
|
||||
NotificationCenter.trigger("view/ready", view);
|
||||
|
||||
return view;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue