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

Nineslice support #3

Closed
KINGTUT10101 opened this issue Mar 18, 2024 · 2 comments
Closed

Nineslice support #3

KINGTUT10101 opened this issue Mar 18, 2024 · 2 comments

Comments

@KINGTUT10101
Copy link

This library looks really amazing and I love the work on it so far! However, I think one thing that could set it apart from other libraries would be support for nineslices/ninepatches.

@immortalx74
Copy link
Owner

Thanks for the kind words! Another user suggested the same but I wouldn't know where to start. The actual part of defining and drawing a 9-patch is easy, but this library, as you see, isn't much code. It just draws a bunch of boxes for everything so it's more of a "toolbox" UI rather than a game-oriented UI which usually has nice and sleek design. I'm not against it, but the way the lib currently works is with simple rules like a universal margin size. You'd have to take care that the outside slices aren't bigger than this size, for example.
I'll give it a try when I find some time. I think the best way is to have the user choose if it'll use 9-patch vs simple drawing mode at the initialization function of the lib.

@immortalx74
Copy link
Owner

Forgot about this, sorry. Judging from feedback I got from users who like its simplicity, and mostly use it for debug or simple app UI, I'll leave it as is for now.

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

No branches or pull requests

2 participants