Skip to content

Commit

Permalink
ui fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
notV4l committed May 29, 2024
1 parent 27f970d commit f1eec3f
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 21 deletions.
8 changes: 5 additions & 3 deletions Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ keystore_path = "/Users/boo/sozo_acc"
# account_address = "0x795abc2a2d5866f75c58025741329973db20966d1add5dd2a9fbdf0bb8a0266"
# private_key = "0x2e8ac99614186737cefc47effe03134f5a19c6dc2443c16510d3384769f9c78"



[[target.dojo]]

[tool.dojo.world]
name = "Dope Wars"
description = "Onchain adaptation of the classic Drug Wars game. An immersive recreation of the 1999 TI-83 classic where street smarts reign supreme and every choice matters in the end."
Expand All @@ -82,13 +86,11 @@ icon_uri = "file://assets/icon.png"
cover_uri = "file://assets/cover.png"
socials.x = "https://x.com/TheDopeWars"


[[target.dojo]]
build-external-contracts = [
"token::components::security::initializable::initializable_model",
"token::components::token::erc20::erc20_metadata::erc_20_metadata_model",
"token::components::token::erc20::erc20_balance::erc_20_balance_model",
"token::components::token::erc20::erc20_allowance::erc_20_allowance_model",
"token::components::token::erc20::erc20_mintable::erc_20_mintable_model",
"token::components::token::erc20::erc20_burnable::erc_20_burnable_model",
]
]
28 changes: 15 additions & 13 deletions web/src/components/layout/DrawerMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ import colors from "@/theme/colors";

const slideAnim = keyframes`
0% {transform: translateX(0); color: ${colors.neon["500"]};}
70% {transform: translateX(-90%); color: ${colors.neon["500"]};}
85% {transform: translateX(-72%); color: ${colors.yellow["500"]};}
86% {transform: translateX(-72%); color: ${colors.neon["500"]};}
95% {transform: translateX(-80%); color: ${colors.neon["500"]};}
100% {transform: translateX(-75%); ; color: ${colors.neon["400"]};}
70% {transform: translateX(-125%); color: ${colors.neon["500"]};}
85% {transform: translateX(-97%); color: ${colors.yellow["500"]};}
86% {transform: translateX(-97%); color: ${colors.neon["500"]};}
95% {transform: translateX(-105%); color: ${colors.neon["500"]};}
100% {transform: translateX(-100%); ; color: ${colors.neon["400"]};}
`;

const DrawerMenu = () => {
Expand All @@ -63,7 +63,7 @@ const DrawerMenu = () => {
fontWeight="normal"
// textAlign="center"
position="relative"
left="120%"
left="100%"
animation={`${slideAnim} .8s ease-out 0.3s 1 normal forwards`}
willChange="transform"
>
Expand Down Expand Up @@ -152,13 +152,15 @@ const DrawerMenu = () => {
<Home mr={2} /> HOME
</DrawerListItem>
)}
<DrawerListItem
onClick={() => {
router.push("/game/history");
}}
>
<Clock mr={2} /> HISTORY
</DrawerListItem>
{account && (
<DrawerListItem
onClick={() => {
router.push("/game/history");
}}
>
<Clock mr={2} /> HISTORY
</DrawerListItem>
)}
<DrawerListItem
onClick={() => {
router.push("/season");
Expand Down
4 changes: 2 additions & 2 deletions web/src/components/layout/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const Header = observer(() => {
const { uiStore} = useDojoContext()
const { game, gameConfig } = useGameStore();
const { config } = useConfigStore();

useEffect(() => {
const init = async () => {
await initSoundStore();
Expand Down Expand Up @@ -86,7 +86,7 @@ export const Header = observer(() => {
<HStack>
<CashIndicator cash={formatCashHeader(game.player.cash)} />
<Divider orientation="vertical" borderColor="neon.600" h="12px" />
<HealthIndicator health={game.player.health} maxHealth={100} />
<HealthIndicator health={game.player.health} maxHealth={gameConfig?.health} />
<Divider orientation="vertical" borderColor="neon.600" h="12px" />
<DayIndicator day={game.player.turn} max={gameConfig?.max_turns} />
</HStack>
Expand Down
6 changes: 3 additions & 3 deletions web/src/manifests/dev/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@
],
"address": "0x45780a1a9786ee6bcd2e347d43d717a385dbd72e8282676d891835e0a278d14",
"transaction_hash": "0x23d8f0f19d1a0625a336efd3626d5e26ee37b44adfe33202dc79095e0b984d0",
"block_number": 20,
"block_number": 5,
"seed": "rollyourown",
"metadata": {
"profile_name": "dev",
Expand Down Expand Up @@ -3295,8 +3295,8 @@
{
"kind": "DojoContract",
"address": "0x65f1f91178c3f048d4a50643609dd09bcb871519e708a3c8166b8143c7eed5a",
"class_hash": "0x67bda7ca090897cfd08546e1eb76fb436fda0ba54ee1182df22db79e7014b98",
"original_class_hash": "0x67bda7ca090897cfd08546e1eb76fb436fda0ba54ee1182df22db79e7014b98",
"class_hash": "0x1c1be5cf5ea315863f96668e045c63d7802482e3e00b5b6d68e3519fa0609a0",
"original_class_hash": "0x1c1be5cf5ea315863f96668e045c63d7802482e3e00b5b6d68e3519fa0609a0",
"base_class_hash": "0x22f3e55b61d86c2ac5239fa3b3b8761f26b9a5c0b5f61ddbd5d756ced498b46",
"abi": [
{
Expand Down

0 comments on commit f1eec3f

Please sign in to comment.