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

Replace missing textures with a placeholder #106

Merged
merged 9 commits into from
Feb 17, 2024

Conversation

white-axe
Copy link
Collaborator

Connections

Description
This pull request allows maps to load if there are missing textures. There will be a toast for each missing texture, which will be replaced by the black and magenta checkerboard pattern at crates/graphics/data/placeholder.png.

The toasts have also been changed to display the most recent toast at the top instead of at the bottom so that new toasts are still visible after long sequences of toasts.

Testing
Maps should now load even if the entire Graphics folder is removed from a project.

Checklist

  • Run cargo fmt.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown
  • Run cargo build --release
  • If applicable, run trunk build --release

@white-axe white-axe added the enhancement New feature or request label Feb 17, 2024
@white-axe white-axe requested a review from a team as a code owner February 17, 2024 21:22
@white-axe white-axe merged commit fb3c0ff into Astrabit-ST:dev Feb 17, 2024
5 checks passed
@white-axe white-axe deleted the missing-textures branch February 17, 2024 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Placeholder graphics
2 participants