mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
added zooming with +, - and 0
This commit is contained in:
parent
cc8cf6c5f9
commit
ac27da1e31
7 changed files with 82 additions and 12 deletions
|
|
@ -26,6 +26,10 @@ function (DomController, Settings, Exception, Nc) {
|
|||
Nc.on(Nc.ns.client.view.playerInfo.update, this.onUpdatePlayerInfo, this),
|
||||
Nc.on(Nc.ns.client.view.playerInfo.remove, this.onRemovePlayerInfo, this),
|
||||
|
||||
Nc.on(Nc.ns.client.game.zoomIn, this.onZoomIn, this),
|
||||
Nc.on(Nc.ns.client.game.zoomOut, this.onZoomOut, this),
|
||||
Nc.on(Nc.ns.client.game.zoomReset, this.onZoomReset, this),
|
||||
|
||||
Nc.on(Nc.ns.client.view.preloadBar.update, this.onUpdateLoader, this),
|
||||
];
|
||||
|
||||
|
|
@ -111,7 +115,19 @@ function (DomController, Settings, Exception, Nc) {
|
|||
};
|
||||
|
||||
AbstractView.prototype.setCameraZoom = function (z) {
|
||||
throw new Exception('Abstract Function setCameraZoom not overwritten');
|
||||
throw new Exception('Abstract Function setCameraZoom not overwritten');
|
||||
};
|
||||
|
||||
AbstractView.prototype.onZoomIn = function () {
|
||||
throw new Exception('Abstract Function onZoomIn not overwritten');
|
||||
};
|
||||
|
||||
AbstractView.prototype.onZoomOut = function () {
|
||||
throw new Exception('Abstract Function onZoomOut not overwritten');
|
||||
};
|
||||
|
||||
AbstractView.prototype.onZoomReset = function () {
|
||||
throw new Exception('Abstract Function onZoomReset not overwritten');
|
||||
};
|
||||
|
||||
AbstractView.prototype.onFullscreenChange = function(isFullScreen) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue