Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create proper toast mechanism #54

Open
aggregate1166877 opened this issue Aug 18, 2021 · 0 comments
Open

Create proper toast mechanism #54

aggregate1166877 opened this issue Aug 18, 2021 · 0 comments
Labels
high-level concept pre-alpha grind Pre-alpha MVP task: tasks used as rough indication of what needs to be done to get out of pre-alpha

Comments

@aggregate1166877
Copy link
Collaborator

aggregate1166877 commented Aug 18, 2021

Details:
The current toast implementation was thrown together in a quick/dirty fashion (in literally 10 minutes) and has multiple issues (the most important one being that queuing messages does not work, and likely never will).

Task:
Implement a new toast system utilising the newly implemented React core. Delete the old toast mechanism.

We need multiple toast types:

  • System messages (messages floating in the center of the screen for a bit),
  • Quest messages (larger messages with headers briefly floating at the top, indicating game status change).
  • Interaction messages (such as 'Press [E] to activate door.').
  • Notifications (messages in top right; they have exit buttons and may have headers).

Not all of them will be made equally - for example, system messages may recur for things like "Maintenance at 18:00." Interaction messages have no time limit, and are instead killed by a deletion event. Quest messages will have no option to be displayed indefinitely, and will have 'long' or 'short' time limits.

Toast messages should have the option to grab input priority for potential interaction. For example, a quest message might be displayed for 5 seconds, and have a little 'Press [Tab] to open journal' note that takes one to that particular entry in the journal. A 'Press [E] to interact' should have appropriate callback mechanisms.

@aggregate1166877 aggregate1166877 added pre-alpha grind Pre-alpha MVP task: tasks used as rough indication of what needs to be done to get out of pre-alpha high-level concept labels Aug 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
high-level concept pre-alpha grind Pre-alpha MVP task: tasks used as rough indication of what needs to be done to get out of pre-alpha
Projects
None yet
Development

No branches or pull requests

1 participant