WIP(shops): empty states and deselect UX

This commit is contained in:
Sabe Jones
2024-05-22 09:16:13 -05:00
parent 88a0b57335
commit 7936677fd8
6 changed files with 52 additions and 8 deletions

View File

@@ -208,6 +208,11 @@ export default {
for (const key of keys) {
const option = this.createGearItem(key, 'headAccessory', 'special', 'headband');
const newKey = `headAccessory_special_${key}`;
option.click = () => {
const type = this.user.preferences.costume ? 'costume' : 'equipped';
return this.equip(newKey, type);
};
options.push(option);
}