Skip to content

UI image atlas improvements#65

Merged
IJARika merged 6 commits into
mainfrom
ui_image_atlas_improvements
May 23, 2025
Merged

UI image atlas improvements#65
IJARika merged 6 commits into
mainfrom
ui_image_atlas_improvements

Conversation

@Mauler125

Copy link
Copy Markdown
Collaborator
  • Support for UI image offsets (cropping, anchoring and scaling).
  • Support for dev-only image paths to be kept inside the pak for debugging.
  • Added safe guard to make sure we never add more than U16 max images to the atlas.
  • Added safe guard to make sure that the provided image path isn't empty.
  • Fixed a bug where the path field was never checked for its type (needs to be string).

Mauler125 added 6 commits May 23, 2025 13:55
Match actual asset name just like all the other source files.
Must be of type string!
This was not implemented until now, image paths will now be stored inside the RPak for debugging if keepDevOnly is set.
The f0 and f1 member variables are used for inwards cropping from left and top.
- Make sure we never have more than UINT16_MAX images.
- Make sure that the image path is never empty.
- Added extra details regarding automatic calculation for image scales and offsets.
- Improved error messages.
@IJARika IJARika merged commit d77f496 into main May 23, 2025
2 checks passed
@Mauler125 Mauler125 deleted the ui_image_atlas_improvements branch May 24, 2025 00:03
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.

2 participants