Blit Sprite Widget #487
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ThreeTAG/Palladium#487
Loading…
Reference in a new issue
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?
Luc luc luc, as the name says, allows textures to be loaded as sprites to be used as blit, for example, to take advantage of the gui sprite scaling such as nine-slice 👀
Or should I implement my own SpriteWidget hehe and make a PR? I thought to raise a discussion first before I write any code 😂
Reported by 🚨Spyeedy🚨 (@spyeedy) via Discord — open thread
Minecraft's widget textures such as button is one such example of a sprite
🚨Spyeedy🚨 (@spyeedy) via Discord — jump to message
at most, its simply a change of which blit method to call, sooo... perhaps a bool setting?
The texture path would change to begin from
textures/gui/sprites, as the sprites automatically look atnamespace:textures/gui/spritesFor example, I have a sprite at
assets/namespace/textures/gui/sprites/hello/world.png(with associated .mcmeta of course),so the Identifier string in the json would be
namespace:hello/worldThe file extension is excluded.
Spyeedy/Palladium@8e2231896f🚨Spyeedy🚨 (@spyeedy) via Discord — jump to message
I think this can't work with dynamic textures, etc, as
blitSpriteexpects the texture to be on disk attextures/gui/sprites. So it may need to be a separate widget itself that only takes an Identifier.🚨Spyeedy🚨 (@spyeedy) via Discord — jump to message