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

@ -5940,9 +5940,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
@ -10073,6 +10076,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',
@ -10140,6 +10171,7 @@ exports.LeftRightView = LeftRightView;
exports.ZoomAlertWindow = ZoomAlertWindow;
exports.ConfirmCancelTerminal = ConfirmCancelTerminal;
exports.WindowSizeAlertWindow = WindowSizeAlertWindow;
exports.HelperBar = HelperBar;
exports.CanvasTerminalHolder = CanvasTerminalHolder;
exports.LevelToolbar = LevelToolbar;
@ -13413,7 +13445,6 @@ var LevelBuilder = Level.extend({
die: function() {
this.hideStart();
LevelBuilder.__super__.die.apply(this, arguments);
delete this.startVis;
@ -20336,9 +20367,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
@ -24198,7 +24232,6 @@ var LevelBuilder = Level.extend({
die: function() {
this.hideStart();
LevelBuilder.__super__.die.apply(this, arguments);
delete this.startVis;
@ -27927,6 +27960,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',
@ -27994,6 +28055,7 @@ exports.LeftRightView = LeftRightView;
exports.ZoomAlertWindow = ZoomAlertWindow;
exports.ConfirmCancelTerminal = ConfirmCancelTerminal;
exports.WindowSizeAlertWindow = WindowSizeAlertWindow;
exports.HelperBar = HelperBar;
exports.CanvasTerminalHolder = CanvasTerminalHolder;
exports.LevelToolbar = LevelToolbar;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
build/bundle.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -515,6 +515,21 @@ li.rebaseEntry,
padding: 0 5px;
}
.helperBar {
position: fixed;
bottom: 0px;
right: 0px;
background: #424242;
padding: 4px 10px;
border-radius: 5px 0 0 0;
border: 2px solid #EFEDEE;
border-bottom: 0;
border-right: 0;
box-shadow: -1px -1px 5px rgba(0,0,0,0.3);
cursor: pointer;
font-weight: bold;
}
#commandLineBar,
.terminal-window .inside {
border-top: 0;