@jeremyckahn/farmhand 1.23.3 → 1.23.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/assets/index-4ynbl-GC.js +392 -0
- package/dist/assets/index-4ynbl-GC.js.map +1 -0
- package/dist/assets/index-CaYdR-lC.css +1 -0
- package/dist/assets/jersey-10-latin-400-normal-DrL73VYW.woff2 +0 -0
- package/dist/assets/jersey-10-latin-ext-400-normal-uIKqQSaG.woff2 +0 -0
- package/dist/assets/jersey-20-latin-400-normal-bNi78tgO.woff2 +0 -0
- package/dist/assets/jersey-20-latin-ext-400-normal-BO3lmWef.woff2 +0 -0
- package/dist/assets/jersey-25-latin-400-normal-BuYJnnt7.woff2 +0 -0
- package/dist/assets/jersey-25-latin-ext-400-normal-CP5Jl3WN.woff2 +0 -0
- package/dist/index.html +2 -2
- package/dist/service-worker.js +1 -1
- package/dist/service-worker.js.map +1 -1
- package/package.json +4 -8
- package/src/components/AccountingView/AccountingView.tsx +3 -1
- package/src/components/Achievement/Achievement.tsx +2 -2
- package/src/components/AppBar/AppBar.tsx +21 -7
- package/src/components/CowCard/Bloodline/Bloodline.tsx +0 -1
- package/src/components/CowCard/CowCard.tsx +7 -13
- package/src/components/CowCard/Subheader/Subheader.tsx +10 -18
- package/src/components/CowPen/Cow.tsx +5 -11
- package/src/components/CowPen/CowPen.test.tsx +4 -4
- package/src/components/CowPen/CowPen.tsx +1 -1
- package/src/components/CowPenContextMenu/CowPenContextMenu.tsx +2 -2
- package/src/components/Farmhand/Farmhand.tsx +7 -4
- package/src/components/Farmhand/useFarmhand.ts +12 -2
- package/src/components/Field/Field.tsx +2 -2
- package/src/components/Home/Home.tsx +2 -1
- package/src/components/Inventory/Inventory.tsx +2 -1
- package/src/components/Item/Item.tsx +11 -8
- package/src/components/LogView/LogView.tsx +6 -22
- package/src/components/Navigation/DayAndProgressContainer.tsx +0 -1
- package/src/components/Navigation/Navigation.tsx +12 -10
- package/src/components/NotificationSystem/NotificationSystem.test.tsx +41 -2
- package/src/components/NotificationSystem/NotificationSystem.tsx +40 -20
- package/src/components/PixelIcon/createPixelIcon.test.tsx +59 -0
- package/src/components/PixelIcon/createPixelIcon.tsx +97 -0
- package/src/components/PixelIcon/icons.ts +445 -0
- package/src/components/PixelIcon/index.ts +3 -0
- package/src/components/ProgressBar/ProgressBar.tsx +9 -3
- package/src/components/QuantityInput/QuantityInput.tsx +6 -2
- package/src/components/SearchBar/SearchBar.tsx +4 -4
- package/src/components/SettingsView/SettingsView.tsx +0 -2
- package/src/components/StatsView/StatsView.tsx +0 -3
- package/src/components/UpdateNotifier/UpdateNotifier.tsx +33 -5
- package/src/farmhand.d.ts +4 -0
- package/src/game-logic/reducers/showNotification.test.ts +20 -0
- package/src/game-logic/reducers/showNotification.ts +4 -2
- package/src/handlers/ui-events.tsx +8 -3
- package/src/index.tsx +0 -2
- package/src/mui-theme.ts +255 -35
- package/src/setupTests.ts +18 -12
- package/src/strings.ts +1 -1
- package/src/styles/fonts.ts +73 -0
- package/src/styles/pixel.ts +151 -0
- package/src/styles/sx.ts +17 -8
- package/src/styles/tokens.ts +11 -0
- package/src/utils/getCowImage.ts +0 -11
- package/dist/assets/francois-one-latin-400-normal-DD1rFI7H.woff2 +0 -0
- package/dist/assets/francois-one-latin-400-normal-DNXs7uOx.woff +0 -0
- package/dist/assets/francois-one-latin-ext-400-normal-CwRdWRZD.woff2 +0 -0
- package/dist/assets/francois-one-latin-ext-400-normal-JvkpT0Av.woff +0 -0
- package/dist/assets/francois-one-vietnamese-400-normal-BLIKeG5Y.woff2 +0 -0
- package/dist/assets/francois-one-vietnamese-400-normal-CuWeHlXs.woff +0 -0
- package/dist/assets/index-CNcrTYN-.css +0 -1
- package/dist/assets/index-Dihg7UqQ.js +0 -844
- package/dist/assets/index-Dihg7UqQ.js.map +0 -1
- package/dist/assets/public-sans-latin-400-normal-8Rpg0ruU.woff2 +0 -0
- package/dist/assets/public-sans-latin-400-normal-SBbinRkI.woff +0 -0
- package/dist/assets/public-sans-latin-ext-400-normal-B02wwOdZ.woff +0 -0
- package/dist/assets/public-sans-latin-ext-400-normal-mk90oQqJ.woff2 +0 -0
- package/dist/assets/public-sans-vietnamese-400-normal-BO1meqcx.woff +0 -0
- package/dist/assets/public-sans-vietnamese-400-normal-TxZB8OSn.woff2 +0 -0
- package/src/fontsource.d.ts +0 -3
package/README.md
CHANGED
|
@@ -139,6 +139,10 @@ In this case, the local app will be using the Production API, database, and pair
|
|
|
139
139
|
- Art style is inherently subjective, but new assets should stay visually consistent with the game's existing art - bold outlines, minimal/simple shading, and a transparent (not filled) background.
|
|
140
140
|
- Filenames should match the identifier used for that item/tile in the game data (e.g. the `apple` item ID backs `apple.png`/`apple.piskel`, and its `growsInto`/growth-stage IDs back `apple-tree-grown.png`, etc.), so an asset can be traced back to the code that references it.
|
|
141
141
|
|
|
142
|
+
### UI theme conventions
|
|
143
|
+
|
|
144
|
+
The UI's retro pixel art look (9-slice frames, pixel icons and pixel fonts) is built with some nonstandard techniques. Before changing UI styling, icons or fonts, read [ADR 7: Pixel Art UI Theme](doc/adr/0007-pixel-art-ui-theme.md). Some of the rules there are easy to break by accident, for example using `backgroundColor` instead of `background` on framed elements.
|
|
145
|
+
|
|
142
146
|
### Testing Guidelines
|
|
143
147
|
|
|
144
148
|
When writing tests for Farmhand, please follow the guidelines documented in [`.rules`](.rules). Key points:
|