-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add changelog that is accessible from the title screen
- Loading branch information
Showing
3 changed files
with
93 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[More info on GitHub](https://github.com/albrow/elara/commits/main) | ||
|
||
##### October 6, 2023 (version 0.1.4) | ||
|
||
- Added a new button on the title screen that opens this changelog. | ||
- Added new level select button to jump quickly between levels. | ||
- Fixed new game modal to better fit mobile devices. | ||
|
||
##### October 1, 2023 (version 0.1.3) | ||
|
||
- Official Public Beta Release 🎉 | ||
- Added a disclaimer over some cutscenes explaining that they are a work in progress. | ||
- Updated the credits in the final cutscene. | ||
- Kalina now explains that G.R.O.V.E.R. has been repaired in the dialog for "Unintended Effects". | ||
- Clicking "About" from the title screen now takes you to the landing page at [elaragame.com](https://elaragame.com). |
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,63 @@ | ||
import { | ||
Modal, | ||
ModalBody, | ||
ModalContent, | ||
ModalOverlay, | ||
ModalCloseButton, | ||
Box, | ||
} from "@chakra-ui/react"; | ||
|
||
import { useCallback } from "react"; | ||
import Changelog from "../changelog.mdx"; | ||
|
||
export interface ChangelogModalProps { | ||
visible: boolean; | ||
setVisible: React.Dispatch<React.SetStateAction<boolean>>; | ||
} | ||
|
||
export function ChangelogModal(props: ChangelogModalProps) { | ||
const onClose = useCallback(() => { | ||
props.setVisible(false); | ||
}, [props]); | ||
|
||
return ( | ||
<Modal | ||
isOpen={props.visible} | ||
onClose={onClose} | ||
autoFocus={false} | ||
closeOnEsc={false} | ||
closeOnOverlayClick={false} | ||
scrollBehavior="inside" | ||
> | ||
<ModalOverlay /> | ||
<ModalContent | ||
w="container.md" | ||
maxW="100%" | ||
maxH="100%" | ||
top={{ | ||
base: "0px", | ||
"2xl": "24px", | ||
}} | ||
bottom={{ | ||
base: "0px", | ||
"2xl": "24px", | ||
}} | ||
my={{ | ||
base: "0px", | ||
md: "24px", | ||
lg: "48px", | ||
}} | ||
py="24px" | ||
px="12px" | ||
position="fixed" | ||
> | ||
<ModalCloseButton /> | ||
<ModalBody> | ||
<Box className="md-content"> | ||
<Changelog /> | ||
</Box> | ||
</ModalBody> | ||
</ModalContent> | ||
</Modal> | ||
); | ||
} |
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