2014-06-16 08:27:16 -04:00
|
|
|
CocoModel = require 'models/CocoModel'
|
|
|
|
RootView = require 'views/kinds/RootView'
|
2014-06-17 15:42:27 -04:00
|
|
|
utils = require 'lib/utils'
|
|
|
|
Achievement = require 'models/Achievement'
|
|
|
|
EarnedAchievement = require 'models/EarnedAchievement'
|
2014-07-06 17:38:57 -04:00
|
|
|
fixtures = require '../../fixtures/achievements'
|
2014-06-16 08:27:16 -04:00
|
|
|
|
|
|
|
module.exports = ->
|
2014-06-24 07:49:54 -04:00
|
|
|
me.set 'points', 48
|
2014-06-19 09:52:05 -04:00
|
|
|
|
2014-07-06 17:16:00 -04:00
|
|
|
unlockableObj = fixtures.DungeonArenaStarted
|
2014-06-17 15:42:27 -04:00
|
|
|
|
|
|
|
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
|
2014-07-28 11:40:20 -04:00
|
|
|
style: 'achievement-silver'
|
2014-06-17 15:42:27 -04:00
|
|
|
autoHide: false
|
|
|
|
clickToHide: false
|
|
|
|
|
|
|
|
$.notify data, options
|
2014-07-28 11:40:20 -04:00
|
|
|
|
|
|
|
view = new RootView
|
|
|
|
view.render()
|