mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
feat(event): Winter Wonderland 2021 and Gift-One-Get-One Promotion
This commit is contained in:
@@ -518,7 +518,10 @@
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="npc-justin-textbox"></div>
|
||||
<div
|
||||
class="npc-justin-textbox"
|
||||
:style="{'background-image': imageURL}"
|
||||
></div>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
@@ -755,7 +758,6 @@
|
||||
top: -3.1rem;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
background-image: url('~@/assets/images/justin_textbox.png');
|
||||
}
|
||||
|
||||
.featured-label {
|
||||
@@ -1189,7 +1191,10 @@ export default {
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
...mapState({ user: 'user.data' }),
|
||||
...mapState({
|
||||
user: 'user.data',
|
||||
currentEvent: 'worldState.data.currentEvent',
|
||||
}),
|
||||
editing () {
|
||||
return this.$store.state.avatarEditorOptions.editingUser;
|
||||
},
|
||||
@@ -1240,6 +1245,12 @@ export default {
|
||||
});
|
||||
return ownedBackgrounds;
|
||||
},
|
||||
imageURL () {
|
||||
if (!this.currentEvent || !this.currentEvent.season) {
|
||||
return 'url(/static/npc/normal/npc_justin.png)';
|
||||
}
|
||||
return `url(/static/npc/${this.currentEvent.season}/npc_justin.png)`;
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
editing () {
|
||||
|
||||
Reference in New Issue
Block a user