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

Asset Packs: Warning for RAM usage #344

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

956MB
Copy link

@956MB 956MB commented Jan 5, 2025

What's new

Asset Packs: Warning for packs that contain icons and fonts for RAM usage

Checks asset packs if they contain Fonts and/or Icons and adds "Size Warning" list entry, as well as a warning screen describing the ram usage of font/icons in the selected pack, and an info list of all the sizes of the files in the pack.

The information in the info screen is just about being extra informative. No actions can be done on any of the files shown.

Screenshots

Packs without fonts/icons, all is normal

_0000_Default

'Size Warning' entry added to the list in MNTM > Interface > Graphics

_0001_WarningEntry

Warning screen (optional 'Back' button to just not look at the size info)

_0002_SizeWarning

Size info for all font/icon files

_0003_WarningInfo


For the reviewer

  • I've uploaded the firmware with this patch to a device and verified its functionality
  • I've confirmed the bug to be fixed / feature to be stable

- Checks asset packs if they contain Fonts/Icons and adds "Size Warning" list entry that opens new scenes.
- First scene is just a warning with text explaining that fonts and icons remain loaded and use up memory.
- Second scene uses the file list widget to display all the selected asset packs fonts and icons, as well as their sizes. This information is just about being extra informative. No actions can be done on any of the files shown.
956MB added a commit to 956MB/Momentum-Firmware that referenced this pull request Jan 5, 2025
@956MB
Copy link
Author

956MB commented Jan 8, 2025

Aligned the text to the center to improve the look and closer match other screens like "Enable Debug?".

Before After
Before After

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant