mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 10:06:08 -05:00
Bad testing version of code entry point arrow numbering.
This commit is contained in:
parent
6831355649
commit
dfa0de7521
2 changed files with 43 additions and 35 deletions
|
@ -138,35 +138,33 @@
|
||||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDowMjgwMTE3NDA3MjA2ODExOEE2REU4Q0M1MTM1MkIxRiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpBQjVEQUNDMzQ4RUIxMUUxOEVGRUUyNzFENDM3RDVFMCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpBQjVEQUNDMjQ4RUI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: 0px center
|
||||||
|
|
||||||
// .ace_gutter-cell.executing:not(.ace_error):not(.ace_warning):not(.ace_info):after
|
|
||||||
//
|
|
||||||
// // Experimenting with a larger executing-line-pointer
|
|
||||||
// content: "\e072"
|
|
||||||
// position: relative
|
|
||||||
// left: -39px
|
|
||||||
// font-family: 'Glyphicons Halflings'
|
|
||||||
// font-style: normal
|
|
||||||
// font-weight: normal
|
|
||||||
// color: white
|
|
||||||
// text-shadow: 0 0 5px black, 0 0 5px black, 0 0 5px black
|
|
||||||
// -webkit-font-smoothing: antialiased
|
|
||||||
// -moz-osx-font-smoothing: grayscale
|
|
||||||
//
|
|
||||||
// // Chrome likes these, but Firefox does not
|
|
||||||
// // TODO: Figure out how to make the executing gutter arrow big, and compatible
|
|
||||||
// display: inline-block
|
|
||||||
// top: -31px
|
|
||||||
// line-height: 1
|
|
||||||
// font-size: 39px
|
|
||||||
|
|
||||||
.ace_gutter-cell.executed:not(.ace_error):not(.ace_warning):not(.ace_info)
|
.ace_gutter-cell.executed:not(.ace_error):not(.ace_warning):not(.ace_info)
|
||||||
margin-left: 1px
|
margin-left: 1px
|
||||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAANhJREFUeNpi/P//PwM1ARMDlcHgMrA428MAiANQBEFhSA4uynIXAOJ+dHFKXDgfiDdSxctAbzYAqQ+9U3ccQJdjIcMwByCVD8SGFEcK0DAFILUeiCcCXfeAIgOBhglADfsAxBNwqSPFy/1AbADEiUDXfSApHQJdcx+I9yPxE4AUCB8AGrYAn62M6HkZ6rX3UG4jEG8A4vNQviO2mMXrQqh3GqHcemi4gcACQobhixRQoMNiUQEaEY1k52WoKwuRhHAmE6KTDdCADdDwu4AvmRCMlOFfwAIEGAD4On+N4aXlhgAAAABJRU5ErkJggg==)
|
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAANhJREFUeNpi/P//PwM1ARMDlcHgMrA428MAiANQBEFhSA4uynIXAOJ+dHFKXDgfiDdSxctAbzYAqQ+9U3ccQJdjIcMwByCVD8SGFEcK0DAFILUeiCcCXfeAIgOBhglADfsAxBNwqSPFy/1AbADEiUDXfSApHQJdcx+I9yPxE4AUCB8AGrYAn62M6HkZ6rX3UG4jEG8A4vNQviO2mMXrQqh3GqHcemi4gcACQobhixRQoMNiUQEaEY1k52WoKwuRhHAmE6KTDdCADdDwu4AvmRCMlOFfwAIEGAD4On+N4aXlhgAAAABJRU5ErkJggg==)
|
||||||
background-position: 0px center
|
background-position: 0px center
|
||||||
|
|
||||||
.ace_gutter-cell.comment-line
|
.ace_gutter-cell.entry-point:after
|
||||||
background-position: 0px center
|
content: attr(data-content)
|
||||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAPCAYAAADtc08vAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIJJREFUeNpiTF9y4j0DA4MAA5mAiRLNIMACY8yMsWAkRSPQ5Q1Aqp6JgUIwagAVDGAERsd/LOKGwGi9AJRLALL78aUVRhwp0RGIHUDxTNAFaIljP1TjBSA2gAofAOJAoIs+4E2JaACmeQFQYyK5gdhISDM2F3yA4kKg5gXExAJAgAEACuQiMh7vH10AAAAASUVORK5CYII=)
|
display: inline-block
|
||||||
|
position: relative
|
||||||
|
left: -49px
|
||||||
|
width: 49px
|
||||||
|
top: -30px
|
||||||
|
height: 38px
|
||||||
|
overflow: visible
|
||||||
|
|
||||||
|
color: white
|
||||||
|
line-height: 39px
|
||||||
|
font-size: 16px
|
||||||
|
text-align: center
|
||||||
|
text-shadow: -1px 0 2px black, 1px 0 2px black, 0 -1px 2px black, 0 1px 2px black
|
||||||
|
-webkit-font-smoothing: antialiased
|
||||||
|
-moz-osx-font-smoothing: grayscale
|
||||||
|
|
||||||
|
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADEAAAAmCAYAAABtT3M/AAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAAActpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+QWRvYmUgSW1hZ2VSZWFkeTwveG1wOkNyZWF0b3JUb29sPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KKS7NPQAAC75JREFUWAm9WQ1wVcUV3t1778vLIwEEBeUnpIJGEyGEWKsihQii1jLDzxBG618ZEFCwav/E1gG0jlNltGNHHMuMFoL8BBUpIpZUCD8hmkkIjxj5KY5Ap4KEQEzCS979235n37t5N+ElEmbSnblv95495+z5zjm7e3cfZz1fOIaQNMzs2XOeYty6w7acU5YlVq5bt/rghAkT9NLSUsfjIb7uFtFdge7yL126lECwOY/NezvUK/T6hUjajKgZXMhYNFxYeP8jAGDPnDmT7FB83dVP/NrlCF2qDIzTVqxY4c5fuHCsYOJNy+LOpIma079fmnP4iK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ksvbs/NYYPTzvT3CzHl5eXHu7qhsM/jgJBBBhz0YTxM1IbBnUkXdI7TtfxhZaWuOGYV6VIow3I93R5/ORc/t76AG7/ygIDB6Ydi0ZtACj59lIBkAFtIC7JmstlEliCEAS6KEDAlZaUQCY7dGQGX7NOmufqDgT69E2vOlsnC8rKtjXFr2a6TCG/Kf8fENgeKNCtUR0fl00AovP94Rly7QbTcqwTgWBq6vZNmzbdA8NkfBXqdBL7jffaPQoCV6NqEtiuqDQMmx37WpcHv5zmnDuf6m7eEhHBwFlDGMHVWCEfIYPiALp9H6z2CQ9RD9RqdSK9cx+bX5KSkjKp7qyLc0GUBYwmZjl8WfH6tUupn/5cof8mqN3dQjtgjxYsBuovrNG5oz4ybSddFxeCmhatcRwxf8P6996hfkSA099il2vI/wBor0wWej/CaAAAAABJRU5ErkJggg==)
|
||||||
|
|
||||||
|
.ace_gutter-cell.entry-point:not(.next-entry-point):after
|
||||||
|
opacity: 0.5
|
||||||
|
|
||||||
.ace_marker-layer
|
.ace_marker-layer
|
||||||
.ace_bracket
|
.ace_bracket
|
||||||
|
|
|
@ -917,7 +917,7 @@ module.exports = class SpellView extends CocoView
|
||||||
|
|
||||||
highlightCurrentLine: (flow) =>
|
highlightCurrentLine: (flow) =>
|
||||||
# TODO: move this whole thing into SpellDebugView or somewhere?
|
# TODO: move this whole thing into SpellDebugView or somewhere?
|
||||||
@highlightComments() unless @destroyed
|
@highlightEntryPoints() unless @destroyed
|
||||||
flow ?= @spellThang?.castAether?.flow
|
flow ?= @spellThang?.castAether?.flow
|
||||||
return unless flow and @thang
|
return unless flow and @thang
|
||||||
executed = []
|
executed = []
|
||||||
|
@ -985,7 +985,7 @@ module.exports = class SpellView extends CocoView
|
||||||
markerRange.end = @aceDoc.createAnchor markerRange.end
|
markerRange.end = @aceDoc.createAnchor markerRange.end
|
||||||
markerRange.id = @aceSession.addMarker markerRange, clazz, markerType
|
markerRange.id = @aceSession.addMarker markerRange, clazz, markerType
|
||||||
@markerRanges.push markerRange
|
@markerRanges.push markerRange
|
||||||
if executedRows[start.row] and @decoratedGutter[start.row] isnt clazz
|
if false and executedRows[start.row] and @decoratedGutter[start.row] isnt clazz
|
||||||
@aceSession.removeGutterDecoration start.row, @decoratedGutter[start.row] if @decoratedGutter[start.row] isnt ''
|
@aceSession.removeGutterDecoration start.row, @decoratedGutter[start.row] if @decoratedGutter[start.row] isnt ''
|
||||||
@aceSession.addGutterDecoration start.row, clazz
|
@aceSession.addGutterDecoration start.row, clazz
|
||||||
@decoratedGutter[start.row] = clazz
|
@decoratedGutter[start.row] = clazz
|
||||||
|
@ -993,17 +993,27 @@ module.exports = class SpellView extends CocoView
|
||||||
@debugView?.setVariableStates {} unless gotVariableStates
|
@debugView?.setVariableStates {} unless gotVariableStates
|
||||||
null
|
null
|
||||||
|
|
||||||
highlightComments: ->
|
highlightEntryPoints: ->
|
||||||
return # Slightly buggy and not that great, so let's not do it.
|
lines = @aceDoc.$lines
|
||||||
lines = $(@ace.container).find('.ace_text-layer .ace_line_group')
|
|
||||||
session = @aceSession
|
session = @aceSession
|
||||||
top = Math.floor @ace.renderer.getScrollTopRow()
|
top = Math.floor @ace.renderer.getScrollTopRow()
|
||||||
$(@ace.container).find('.ace_gutter-cell').each (index, el) ->
|
seenOne = false
|
||||||
line = $(lines[index])
|
entryPointLines = []
|
||||||
index = index - top
|
for line, index in lines
|
||||||
session.removeGutterDecoration index, 'comment-line'
|
session.removeGutterDecoration index, 'entry-point'
|
||||||
if line.find('.ace_comment').length
|
session.removeGutterDecoration index, 'next-entry-point'
|
||||||
session.addGutterDecoration index, 'comment-line'
|
if line.indexOf('if') isnt -1
|
||||||
|
session.addGutterDecoration index, "entry-point"
|
||||||
|
if not seenOne
|
||||||
|
session.addGutterDecoration index, 'next-entry-point'
|
||||||
|
seenOne = true
|
||||||
|
entryPointLines.push index
|
||||||
|
scrolledAwayLines = 0
|
||||||
|
#while entryPointLines.length and entryPointLines[0] < top
|
||||||
|
# entryPointLines.shift()
|
||||||
|
# ++scrolledAwayLines
|
||||||
|
$(@ace.container).find('.ace_gutter-cell.entry-point').each (index, el) ->
|
||||||
|
$(el).attr('data-content', scrolledAwayLines + index + 1)
|
||||||
|
|
||||||
onAnnotationClick: ->
|
onAnnotationClick: ->
|
||||||
# @ is the gutter element
|
# @ is the gutter element
|
||||||
|
|
Loading…
Reference in a new issue