mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 18:15:52 -05:00
33 lines
849 B
CoffeeScript
33 lines
849 B
CoffeeScript
CocoModel = require 'models/CocoModel'
|
|
RootView = require 'views/kinds/RootView'
|
|
utils = require 'lib/utils'
|
|
Achievement = require 'models/Achievement'
|
|
EarnedAchievement = require 'models/EarnedAchievement'
|
|
fixtures = require '../../fixtures/achievements'
|
|
|
|
module.exports = ->
|
|
me.set 'points', 48
|
|
|
|
unlockableObj = fixtures.DungeonArenaStarted
|
|
|
|
earnedUnlockableObj =
|
|
earnedPoints: 3
|
|
notified: false
|
|
|
|
unlockable = new Achievement unlockableObj
|
|
earnedUnlockable = new EarnedAchievement earnedUnlockableObj
|
|
|
|
console.log currentView
|
|
data = currentView.createNotifyData unlockable, earnedUnlockable
|
|
options =
|
|
autoHideDelay: 10000
|
|
globalPosition: 'bottom right'
|
|
showDuration: 400
|
|
style: 'achievement-silver'
|
|
autoHide: false
|
|
clickToHide: false
|
|
|
|
$.notify data, options
|
|
|
|
view = new RootView
|
|
view.render()
|