Skip to content

Commit

Permalink
feat(job outfits): Know which outfits are job outfits
Browse files Browse the repository at this point in the history
  • Loading branch information
ImXirvin committed Aug 13, 2024
1 parent aa6cdb9 commit 7e694c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description 'Customize your virtual persona with precision using the Byte Labs A
repository 'https://github.com/Byte-Labs-Studio/bl_appearance'

ui_page 'build/index.html'
--ui_page 'http://localhost:3001/' --for dev
-- ui_page 'http://localhost:3000/' --for dev

server_scripts {
'data/config.lua',
Expand Down
3 changes: 2 additions & 1 deletion web/src/components/menu/Outfits.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
</script>

{#each $OUTFITS as { label, outfit, id, jobname }, i}
<Wrapper {label}>

<Wrapper label={jobname ? `${label} | JOB` : label}>
<svelte:fragment slot="extra_primary">
<Dropdown display="Options">
<div
Expand Down
2 changes: 2 additions & 0 deletions web/src/stores/appearance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ const OUTFITS_INIT = () => {
currentOutfits.push({
id: currentOutfits.length + 1,
label: label,
// Just to make sure the outfit is object
outfit: JSON.parse(JSON.stringify(outfit)),
jobname: job?.name || null,
});
store.set(currentOutfits);
},
Expand Down

0 comments on commit 7e694c3

Please sign in to comment.