This commit is contained in:
Peter Cottle 2013-03-15 22:03:43 -07:00
parent e081c47e31
commit 68223505ce
11 changed files with 150 additions and 7 deletions

View file

@ -164,9 +164,12 @@ if (require('../util').isBrowser()) {
* and simply pipes commands to the main events system
**/
function CommandUI() {
var Views = require('../views');
var Collections = require('../models/collections');
var CommandViews = require('../views/commandViews');
//new Views.HelperBar();
this.commandCollection = new Collections.CommandCollection();
this.commandBuffer = new Collections.CommandBuffer({
collection: this.commandCollection

View file

@ -357,7 +357,6 @@ var LevelBuilder = Level.extend({
die: function() {
this.hideStart();
LevelBuilder.__super__.die.apply(this, arguments);
delete this.startVis;

View file

@ -570,6 +570,34 @@ var LevelToolbar = BaseView.extend({
}
});
var HelperBar = BaseView.extend({
tagName: 'div',
className: 'helperBar',
template: _.template($('#helper-bar-template').html()),
events: {
'click div': 'onClick'
},
onClick: function(ev) {
},
initialize: function(options) {
options = options || {};
this.destination = $('body');
var items = [{
text: '??',
id: 'main'
}];
this.JSON = {
items: items
};
this.render();
}
});
var CanvasTerminalHolder = BaseView.extend({
tagName: 'div',
className: 'canvasTerminalHolder box flex1',
@ -637,6 +665,7 @@ exports.LeftRightView = LeftRightView;
exports.ZoomAlertWindow = ZoomAlertWindow;
exports.ConfirmCancelTerminal = ConfirmCancelTerminal;
exports.WindowSizeAlertWindow = WindowSizeAlertWindow;
exports.HelperBar = HelperBar;
exports.CanvasTerminalHolder = CanvasTerminalHolder;
exports.LevelToolbar = LevelToolbar;