mirror of
https://github.com/AndorsTrailRelease/ATCS.git
synced 2025-10-27 18:44:03 +01:00
[PR #4] [MERGED] Ignore empty sprites in SpriteChooser #5
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/AndorsTrailRelease/ATCS/pull/4
Author: @OMGeeky
Created: 9/10/2023
Status: ✅ Merged
Merged: 9/10/2023
Merged by: @NutAndor
Base:
master← Head:ignore_empty_sprites_in_chooser📝 Commits (2)
fc0d97areformat file & optimize usingsada352aimplement ignoring fully transparent sprites📊 Changes
2 files changed (+78 additions, -51 deletions)
View changed files
📝
src/com/gpl/rpg/atcontentstudio/ui/sprites/SpriteChooser.java(+44 -51)➕
src/com/gpl/rpg/atcontentstudio/utils/SpriteUtils.java(+34 -0)📄 Description
This just ignores all the empty sprites in the chooser, to not clutter the UI.
One potential problem might be that it is now impossible to choose a transparent tile. Imo we can ignore this since it does not crash when a transparent sprite is used, we just can't select it from ATCS. If that edgecase is needed then manually editing the file to select the right sprite would be the only way to do it.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.