mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
feat(timetrav): implement bgs in avatar modal
This commit is contained in:
@@ -146,7 +146,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.background_clocktower {
|
.background_clocktower {
|
||||||
background: url("~@/assets/images/animated/background_airship.gif") no-repeat;
|
background: url("~@/assets/images/animated/background_clocktower.gif") no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
.background_steamworks {
|
.background_steamworks {
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 33 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 99 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 50 KiB |
@@ -166,7 +166,7 @@
|
|||||||
v-if="!filterBackgrounds"
|
v-if="!filterBackgrounds"
|
||||||
class="row text-center title-row"
|
class="row text-center title-row"
|
||||||
>
|
>
|
||||||
<strong>{{ backgroundShopSets[0].text }}</strong>
|
<strong>{{ backgroundShopSets[1].text }}</strong>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="!filterBackgrounds"
|
v-if="!filterBackgrounds"
|
||||||
@@ -174,14 +174,14 @@
|
|||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
v-if="showPlainBackgroundBlurb(
|
v-if="showPlainBackgroundBlurb(
|
||||||
backgroundShopSets[0].identifier, backgroundShopSets[0].items
|
backgroundShopSets[1].identifier, backgroundShopSets[1].items
|
||||||
)"
|
)"
|
||||||
class="col-12"
|
class="col-12"
|
||||||
>
|
>
|
||||||
{{ $t('incentiveBackgroundsUnlockedWithCheckins') }}
|
{{ $t('incentiveBackgroundsUnlockedWithCheckins') }}
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-for="bg in backgroundShopSets[0].items"
|
v-for="bg in backgroundShopSets[1].items"
|
||||||
:key="bg.key"
|
:key="bg.key"
|
||||||
class="col-2"
|
class="col-2"
|
||||||
:popover-title="bg.text"
|
:popover-title="bg.text"
|
||||||
@@ -197,6 +197,59 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div
|
||||||
|
v-if="!filterBackgrounds"
|
||||||
|
class="row text-center title-row"
|
||||||
|
>
|
||||||
|
<strong>{{ backgroundShopSets[0].text }}</strong>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
v-if="!filterBackgrounds"
|
||||||
|
class="row title-row"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
v-for="bg in backgroundShopSets[0].items"
|
||||||
|
:key="bg.key"
|
||||||
|
class="col-4 text-center customize-option background-button"
|
||||||
|
:popover-title="bg.text"
|
||||||
|
:popover="bg.notes"
|
||||||
|
popover-trigger="mouseenter"
|
||||||
|
@click="!user.purchased.background[bg.key]
|
||||||
|
? backgroundSelected(bg) : unlock('background.' + bg.key)"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="background"
|
||||||
|
:class="[`background_${bg.key}`, backgroundLockedStatus(bg.key)]"
|
||||||
|
></div>
|
||||||
|
<i
|
||||||
|
v-if="!user.purchased.background[bg.key]"
|
||||||
|
class="glyphicon glyphicon-lock"
|
||||||
|
></i>
|
||||||
|
<div
|
||||||
|
v-if="!user.purchased.background[bg.key]"
|
||||||
|
class="purchase-background single"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="svg-icon hourglass"
|
||||||
|
v-html="icons.hourglass"
|
||||||
|
></div>
|
||||||
|
<span class="price">1</span>
|
||||||
|
</div>
|
||||||
|
<span
|
||||||
|
v-if="!user.purchased.background[bg.key]"
|
||||||
|
class="badge badge-pill badge-item badge-svg"
|
||||||
|
:class="{
|
||||||
|
'item-selected-badge': isBackgroundPinned(bg),
|
||||||
|
'hide': !isBackgroundPinned(bg)}"
|
||||||
|
@click.prevent.stop="togglePinned(bg)"
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
class="svg-icon inline icon-12 color"
|
||||||
|
v-html="icons.pin"
|
||||||
|
></span>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<sub-menu
|
<sub-menu
|
||||||
class="text-center"
|
class="text-center"
|
||||||
:items="bgSubMenuItems"
|
:items="bgSubMenuItems"
|
||||||
@@ -923,7 +976,7 @@
|
|||||||
color: #24cc8f;
|
color: #24cc8f;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gem, .coin {
|
.gem, .coin, .hourglass {
|
||||||
width: 16px;
|
width: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -944,7 +997,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.gem, .coin {
|
.gem, .coin, .hourglass {
|
||||||
margin: 0 .5em;
|
margin: 0 .5em;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: bottom;
|
vertical-align: bottom;
|
||||||
@@ -1103,6 +1156,7 @@ import skinIcon from '@/assets/svg/skin.svg';
|
|||||||
import hairIcon from '@/assets/svg/hair.svg';
|
import hairIcon from '@/assets/svg/hair.svg';
|
||||||
import backgroundsIcon from '@/assets/svg/backgrounds.svg';
|
import backgroundsIcon from '@/assets/svg/backgrounds.svg';
|
||||||
import gem from '@/assets/svg/gem.svg';
|
import gem from '@/assets/svg/gem.svg';
|
||||||
|
import hourglass from '@/assets/svg/hourglass.svg';
|
||||||
import gold from '@/assets/svg/gold.svg';
|
import gold from '@/assets/svg/gold.svg';
|
||||||
import pin from '@/assets/svg/pin.svg';
|
import pin from '@/assets/svg/pin.svg';
|
||||||
import arrowRight from '@/assets/svg/arrow_right.svg';
|
import arrowRight from '@/assets/svg/arrow_right.svg';
|
||||||
@@ -1143,6 +1197,7 @@ export default {
|
|||||||
hairIcon,
|
hairIcon,
|
||||||
backgroundsIcon,
|
backgroundsIcon,
|
||||||
gem,
|
gem,
|
||||||
|
hourglass,
|
||||||
pin,
|
pin,
|
||||||
gold,
|
gold,
|
||||||
arrowRight,
|
arrowRight,
|
||||||
|
|||||||
Reference in New Issue
Block a user