mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-19 17:39:56 -04:00
Hid level done button better. Avoiding building wizard sprite when not needed.
This commit is contained in:
parent
5376a42f94
commit
0f33bae1f1
3 changed files with 5 additions and 5 deletions
app
|
@ -96,11 +96,8 @@ module.exports = class SpriteBoss extends CocoClass
|
|||
unless @indieSprites
|
||||
@indieSprites = []
|
||||
@indieSprites = (@createIndieSprite indieSprite for indieSprite in indieSprites) if indieSprites
|
||||
unless @selfWizardSprite
|
||||
if withWizards and not @selfWizardSprite
|
||||
@selfWizardSprite = @createWizardSprite thangID: "My Wizard", isSelf: true, sprites: @sprites
|
||||
unless withWizards
|
||||
@selfWizardSprite.displayObject.visible = false
|
||||
@selfWizardSprite.labels.name.setText null
|
||||
|
||||
createIndieSprite: (indieSprite) ->
|
||||
unless thangType = @thangTypeFor indieSprite.thangType
|
||||
|
|
|
@ -40,3 +40,6 @@
|
|||
font-size: 13px
|
||||
height: 24px
|
||||
|
||||
|
||||
#level-done-button
|
||||
display: none
|
||||
|
|
|
@ -17,4 +17,4 @@ if spectateGame
|
|||
|
||||
button.btn.btn-xs.btn-inverse.banner#restart-button(title="Reload all custom code to reset level", data-i18n="play_level.restart") Restart
|
||||
|
||||
button.btn.btn-xs.btn-primary.banner.secret#level-done-button(data-i18n="play_level.done") Done
|
||||
button.btn.btn-xs.btn-primary.banner#level-done-button(data-i18n="play_level.done") Done
|
||||
|
|
Loading…
Reference in a new issue