mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-30 10:56:53 -05:00
Got rid of a bunch of logs.
This commit is contained in:
parent
95900f230f
commit
1f9c531938
1 changed files with 0 additions and 6 deletions
|
@ -66,7 +66,6 @@ module.exports = class ColorsTabView extends CocoView
|
||||||
@stage.removeChild(@movieClip) if @movieClip
|
@stage.removeChild(@movieClip) if @movieClip
|
||||||
options = {colorConfig: {}}
|
options = {colorConfig: {}}
|
||||||
options.colorConfig[@currentColorGroupTreema.keyForParent] = @colorConfig
|
options.colorConfig[@currentColorGroupTreema.keyForParent] = @colorConfig
|
||||||
console.log 'options are', options
|
|
||||||
@spriteBuilder.setOptions options
|
@spriteBuilder.setOptions options
|
||||||
@spriteBuilder.buildColorMaps()
|
@spriteBuilder.buildColorMaps()
|
||||||
@movieClip = @spriteBuilder.buildMovieClip animation
|
@movieClip = @spriteBuilder.buildMovieClip animation
|
||||||
|
@ -75,7 +74,6 @@ module.exports = class ColorsTabView extends CocoView
|
||||||
@movieClip.scaleY = larger
|
@movieClip.scaleY = larger
|
||||||
@movieClip.regX = @movieClip.nominalBounds.x
|
@movieClip.regX = @movieClip.nominalBounds.x
|
||||||
@movieClip.regY = @movieClip.nominalBounds.y
|
@movieClip.regY = @movieClip.nominalBounds.y
|
||||||
console.log 'added movie clip', @movieClip
|
|
||||||
@stage.addChild @movieClip
|
@stage.addChild @movieClip
|
||||||
|
|
||||||
createShapeButtons: ->
|
createShapeButtons: ->
|
||||||
|
@ -97,7 +95,6 @@ module.exports = class ColorsTabView extends CocoView
|
||||||
$(e.target).toggleClass('selected')
|
$(e.target).toggleClass('selected')
|
||||||
@updateColorGroup()
|
@updateColorGroup()
|
||||||
@$el.find('#shape-buttons').replaceWith(buttons)
|
@$el.find('#shape-buttons').replaceWith(buttons)
|
||||||
console.log 'making buttons'
|
|
||||||
@buttons = buttons
|
@buttons = buttons
|
||||||
|
|
||||||
tryToBuild: ->
|
tryToBuild: ->
|
||||||
|
@ -117,14 +114,12 @@ module.exports = class ColorsTabView extends CocoView
|
||||||
@colorGroups.build()
|
@colorGroups.build()
|
||||||
@colorGroups.open()
|
@colorGroups.open()
|
||||||
keys = Object.keys @colorGroups.childrenTreemas
|
keys = Object.keys @colorGroups.childrenTreemas
|
||||||
console.log 'selected?'
|
|
||||||
@colorGroups.childrenTreemas[keys[0]]?.$el.click() if keys[0]
|
@colorGroups.childrenTreemas[keys[0]]?.$el.click() if keys[0]
|
||||||
|
|
||||||
onColorGroupsChanged: =>
|
onColorGroupsChanged: =>
|
||||||
@thangType.set('colorGroups', @colorGroups.data)
|
@thangType.set('colorGroups', @colorGroups.data)
|
||||||
|
|
||||||
onColorGroupSelected: (e, selected) =>
|
onColorGroupSelected: (e, selected) =>
|
||||||
console.log 'selected!'
|
|
||||||
@$el.find('#color-group-settings').toggleClass('hide', not selected.length)
|
@$el.find('#color-group-settings').toggleClass('hide', not selected.length)
|
||||||
treema = @colorGroups.getLastSelectedTreema()
|
treema = @colorGroups.getLastSelectedTreema()
|
||||||
return unless treema
|
return unless treema
|
||||||
|
@ -138,7 +133,6 @@ module.exports = class ColorsTabView extends CocoView
|
||||||
continue unless shape.fc?
|
continue unless shape.fc?
|
||||||
colors[shape.fc] = true if shapes[key]
|
colors[shape.fc] = true if shapes[key]
|
||||||
|
|
||||||
console.log 'buttons?', @buttons
|
|
||||||
@buttons.find('button').removeClass('selected')
|
@buttons.find('button').removeClass('selected')
|
||||||
@buttons.find('button').each (i, button) ->
|
@buttons.find('button').each (i, button) ->
|
||||||
$(button).addClass('selected') if colors[$(button).val()]
|
$(button).addClass('selected') if colors[$(button).val()]
|
||||||
|
|
Loading…
Reference in a new issue