Blit Sprite Widget #487

Open
opened 2026-11-22 07:36:08 +00:00 by DiscordBot · 3 comments
Owner

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

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 😂 --- <sub>Reported by 🚨Spyeedy🚨 (@spyeedy) via Discord — [open thread](https://discord.com/channels/116908382878695430/1573965290885087402)</sub>
Author
Owner

Minecraft's widget textures such as button is one such example of a sprite


🚨Spyeedy🚨 (@spyeedy) via Discord — jump to message

Minecraft's widget textures such as button is one such example of a sprite --- <sub>🚨Spyeedy🚨 (@spyeedy) via Discord — [jump to message](https://discord.com/channels/116908382878695430/1573965290885087402/1573965382811918377)</sub>
Author
Owner

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 at namespace:textures/gui/sprites

For 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/world

The file extension is excluded.

Spyeedy/Palladium@8e2231896f


🚨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 at `namespace:textures/gui/sprites` For 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/world` The file extension is excluded. https://git.threetag.net/Spyeedy/Palladium/commit/8e2231896fdf7b90dfca9e7c7b9891928184950d --- <sub>🚨Spyeedy🚨 (@spyeedy) via Discord — [jump to message](https://discord.com/channels/116908382878695430/1573965290885087402/1573972435777093694)</sub>
Author
Owner

I think this can't work with dynamic textures, etc, as blitSprite expects the texture to be on disk at textures/gui/sprites. So it may need to be a separate widget itself that only takes an Identifier.


🚨Spyeedy🚨 (@spyeedy) via Discord — jump to message

I think this can't work with dynamic textures, etc, as `blitSprite` expects the texture to be on disk at `textures/gui/sprites`. So it may need to be a separate widget itself that only takes an Identifier. --- <sub>🚨Spyeedy🚨 (@spyeedy) via Discord — [jump to message](https://discord.com/channels/116908382878695430/1573965290885087402/1573972805991538760)</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ThreeTAG/Palladium#487
No description provided.