issue(11266) - Restyle level-up modal with sparkles (#12486)

* issue(11266) - Restyle level-up modal with sparkles

* issue(11266) - Add reward display to level up modal

At levels 15, 30, 40 and 60 the earned quests are now shown in the level-up modal.

* issue(11266) - Simplify css and don't use custom footer

* issue(11266) - Don't show pink bars and use colour variables
This commit is contained in:
Bart Enkelaar
2020-08-29 16:33:06 +02:00
committed by GitHub
parent c00b2247d4
commit 1b301e9c68
10 changed files with 241 additions and 73 deletions

View File

@@ -389,7 +389,7 @@ export default {
data () {
// Levels that already display modals and should not trigger generic Level Up
const unlockLevels = {
10: 'class system',
10: 'Class system',
50: 'Orb of Rebirth',
};
@@ -661,13 +661,7 @@ export default {
showLevelUpNotifications (newlevel) {
this.lvl();
this.playSound('Level_Up');
// NOTE this code isn't actually used because no modal is shown when a quest is dropped
// In case it's added again it should keep in mind that it will not work
// when the user progress to the next level using the RYA modal
// as it doesn't score the tasks on the client side and thus this.user._tmp is not filled
// with any value
// if (this.user._tmp && this.user._tmp.drop && this.user._tmp.drop.type === 'Quest') return;
if (this.unlockLevels[`${newlevel}`]) return;
if (this.unlockLevels[newlevel]) return;
if (!this.user.preferences.suppressModals.levelUp) this.$root.$emit('bv::show::modal', 'level-up');
},
playSound (sound) {