mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Fixed the world select modal.
This commit is contained in:
parent
ed1b5c6560
commit
827b5a3756
2 changed files with 35 additions and 32 deletions
|
@ -1,30 +1,33 @@
|
|||
.modal-header
|
||||
button(type='button', data-dismiss="modal", aria-hidden="true").close ×
|
||||
h3
|
||||
if selectingPoint
|
||||
| Select Point
|
||||
else
|
||||
| Select Region
|
||||
.modal-body
|
||||
div.instructions
|
||||
div.alert.alert-info
|
||||
strong Click
|
||||
| to pan
|
||||
div.alert.alert-info
|
||||
strong Scroll
|
||||
| to zoom
|
||||
if selectingPoint
|
||||
div.alert.alert-info
|
||||
strong Shift-click
|
||||
| to select
|
||||
else
|
||||
div.alert.alert-info
|
||||
strong Shift-drag
|
||||
| to select
|
||||
div.alert.alert-info
|
||||
strong Enter
|
||||
| to confirm
|
||||
canvas(width=924, height=590)
|
||||
.modal-footer
|
||||
a.btn.btn-primary#done-button Done
|
||||
|
||||
.modal-dialog
|
||||
.modal-content
|
||||
|
||||
.modal-header
|
||||
button(type='button', data-dismiss="modal", aria-hidden="true").close ×
|
||||
h3
|
||||
if selectingPoint
|
||||
| Select Point
|
||||
else
|
||||
| Select Region
|
||||
.modal-body
|
||||
div.instructions
|
||||
div.alert.alert-info
|
||||
strong Click
|
||||
| to pan
|
||||
div.alert.alert-info
|
||||
strong Scroll
|
||||
| to zoom
|
||||
if selectingPoint
|
||||
div.alert.alert-info
|
||||
strong Shift-click
|
||||
| to select
|
||||
else
|
||||
div.alert.alert-info
|
||||
strong Shift-drag
|
||||
| to select
|
||||
div.alert.alert-info
|
||||
strong Enter
|
||||
| to confirm
|
||||
canvas(width=924, height=590)
|
||||
.modal-footer
|
||||
a.btn.btn-primary#done-button Done
|
||||
|
||||
|
|
|
@ -42,8 +42,8 @@ module.exports = class WorldSelectModal extends View
|
|||
|
||||
initSurface: ->
|
||||
canvas = @$el.find('canvas')
|
||||
canvas.attr('width', @$el.width()-40)
|
||||
canvas.attr('height', parseInt($('body').height()*.6))
|
||||
canvas.attr('width', currentView.$el.width()*.8-70)
|
||||
canvas.attr('height', currentView.$el.height()*.6)
|
||||
@surface = new Surface @world, canvas, {
|
||||
wizards: false
|
||||
paths: false
|
||||
|
|
Loading…
Reference in a new issue