diff --git a/README.md b/README.md index 54a30f2..0db959f 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ - [ ] Using [Scuti](https://scuti.netlify.app/) dataset for its [renderer.](https://github.com/kozennnn/scuti-renderer) - [ ] Languages feature. (Default: EN) - [ ] Download Habbo assets. (>800 MB of disk memory, make sure the IPC handles it correctly) -- [ ] Fix rendering animation issues. +- [x] Fix rendering animation issues. - [ ] Add "abort" button with written data suppression feature. - [x] Convert front-end with SolidJS - [x] Fix issue of prettier-plugin-tailwindcss diff --git a/src/components/design/AnimateView/AnimateView.tsx b/src/components/design/AnimateView/AnimateView.tsx index e4c20b0..af23c34 100644 --- a/src/components/design/AnimateView/AnimateView.tsx +++ b/src/components/design/AnimateView/AnimateView.tsx @@ -1,19 +1,22 @@ -import { Show } from 'solid-js' +import { Show, createEffect } from 'solid-js' import type { Component } from 'solid-js' -import type { MotionComponentProps, Options as MotionProps } from '@motionone/solid' +import type { MotionComponentProps, Variant } from '@motionone/solid' import { Motion, Presence } from '@motionone/solid' export interface AnimateViewProps extends MotionComponentProps { + animation: Record condition: boolean - animation: MotionProps class?: string } export const AnimateView: Component = (props) => { + createEffect(() => { + console.log(props.condition) + }) return ( - + {props.children} diff --git a/src/components/design/Loader/Loader.tsx b/src/components/design/Loader/Loader.tsx index 700d492..0f1bafc 100644 --- a/src/components/design/Loader/Loader.tsx +++ b/src/components/design/Loader/Loader.tsx @@ -13,7 +13,7 @@ export const Loader: Component = (props) => { + variants={Animation.fadeInOut({ scale: [0, 1, 0], y: [1, 4, 1] })}> diff --git a/src/components/layout/Downloaders/Downloader/Downloader.tsx b/src/components/layout/Downloaders/Downloader/Downloader.tsx index 998e11e..c58dde8 100644 --- a/src/components/layout/Downloaders/Downloader/Downloader.tsx +++ b/src/components/layout/Downloaders/Downloader/Downloader.tsx @@ -28,26 +28,17 @@ export const Downloader: Component = (props) => { {props.children} - + {props.content.title} {(feature) => { return ( - - {feature} - + {feature} ) }} diff --git a/src/components/layout/Downloaders/Downloaders.tsx b/src/components/layout/Downloaders/Downloaders.tsx index 599eb4e..d0788b3 100644 --- a/src/components/layout/Downloaders/Downloaders.tsx +++ b/src/components/layout/Downloaders/Downloaders.tsx @@ -4,7 +4,7 @@ import classNames from 'classnames' import type { ConvertionHandler } from '../../../types' import { handleConvertion } from '../../../tools/handleConvertion' -import { Animation, GameAssetsDownloader, GameDataDownloader } from '../../../config' +import { GameAssetsDownloader, GameDataDownloader } from '../../../config' import { Button, Image, Loader } from '../../design' import { Popup } from '../Popup' import { Downloader } from './Downloader/Downloader' @@ -45,10 +45,11 @@ export const Downloaders: Component = () => { return ( <> - {message()} + +