-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update item-assets to work with any size
- Loading branch information
1 parent
aeac5c9
commit 3a3949b
Showing
18 changed files
with
810 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,8 @@ | |
/data | ||
/icons | ||
/target | ||
/dist | ||
*.webp | ||
*.png | ||
pnpm-lock.yaml | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# botw-item-assets | ||
|
||
React components for item images in BOTW. | ||
|
||
**NOTE: The library is not usable out of the box, as this repository | ||
does not contain the assets** | ||
|
||
## Usage | ||
|
||
See [ActorSprite.tsx](./src/ActorSprite.tsx) and [ModifierSprite.tsx](./src/ModifierSprite.tsx) | ||
|
||
## Install (into a mono-dev repo) | ||
|
||
1. Add this repo as submodule | ||
2. Check `package.json` and add the packages to `pnpm-workspace.yaml` catalog. | ||
3. Currently, only pulling assets from private Google Cloud is supported: | ||
```bash | ||
task pull-build-priv | ||
task build-sprites | ||
``` | ||
|
||
Add the dependency to another package: | ||
|
||
```json | ||
{ | ||
"dependencies": { | ||
"botw-item-assets": "workspace:*" | ||
} | ||
} | ||
``` | ||
|
||
Import | ||
|
||
```typescript | ||
import { ActorSprite } from "botw-item-assets"; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Item Asset Test</title> | ||
</head> | ||
<body> | ||
<div id="-root-"></div> | ||
<script type="module" src="/test/main.tsx"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.