Skip to content

Commit

Permalink
changed idle animation name
Browse files Browse the repository at this point in the history
  • Loading branch information
Andcool-Systems committed Dec 24, 2024
1 parent a6d4d2f commit 7224a1f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/app/workshop/[id]/client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ export default function Home({ data, referrer }: { data: Interfaces.Bandage, ref
onClick={() => setLoadExpanded(true)}>
<IconPlus width={24} height={24} />Загрузить скин
</button>
<SlideButton
onChange={val => client.current?.changeSlim(val)}
value={slim} label="Тонкие руки" />
<Select
options={anims}
defaultValue={anims[pose]}
Expand All @@ -268,9 +271,6 @@ export default function Home({ data, referrer }: { data: Interfaces.Bandage, ref
isSearchable={false}
onChange={(n, _) => setPose(n.value)}
formatOptionLabel={nick_value => nick_value.label} />
<SlideButton
onChange={val => client.current?.changeSlim(val)}
value={slim} label="Тонкие руки" />
<button className={style.skin_load} onClick={() => client.current?.download()}>
<IconDownload
width={24}
Expand Down
5 changes: 4 additions & 1 deletion src/app/workshop/create/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ export default function Home() {
fontSize: '.8rem'
}}>{Math.floor(height / 2)}px</span></p>
}
<SlideButton
onChange={v => { setSlim(v); client.current?.changeSlim(v) }}
value={slim}
label="Тонкие руки" />
<Select
options={anims}
defaultValue={anims[pose]}
Expand All @@ -95,7 +99,6 @@ export default function Home() {
onChange={(n, _) => setPose(n.value)}
formatOptionLabel={(nick_value) => nick_value.label}
/>
<SlideButton onChange={v => { setSlim(v); client.current?.changeSlim(v) }} value={slim} label="Тонкие руки" />
</div>
</aside>
<Editor
Expand Down
2 changes: 1 addition & 1 deletion src/app/workshop/poses.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const anims: readonly { value: number, label: String }[] = [
{ value: 0, label: "Нет" },
{ value: 0, label: "Без анимации" },
{ value: 1, label: "Ходьба" },
{ value: 2, label: "A-поза" },
];

0 comments on commit 7224a1f

Please sign in to comment.