You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers. No questions about C++ programming or topics which are answered in the tutorials!
Is it possible making irrlicht gui elements specifyng only the few images needed for
1) corner
2) edges
3)background
in a way like that:
in wich every gui element is a background image surrounded by 4 edges images (opportunely rotated) and by 4 corner images (also corners are rotated)
i tried to search and i found only the chance to change the background. i'm not sure how skin works
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
You could make your own element and have it make the background image and then add your own border images around it, make the borders childs of the background then when/if you move it you just move the background and all the borders should follow it.
CuteAlien wrote:I think it even then it would be hard as we don't have a real definition of "borders" for all gui-elements.
Ah yes, good point. Decorations around the edges would not be clickable, which would break a lot of things. Insets would work for most element types though
yup i tried to create a custom skin but i have always artifacts. I think for now it will be faster creating every gui elements manually. (it is easy in gimp jsut a multiple copy for making corner and edges with a repeating pattern.)
setting every corner images coordinates can be a little slower
thanks much for suggestions. if i have success with the skin i'll post its code, but i have others priorities now. (just i hope i won't have to change something in the gui now that is almost all created with gimp O_O)
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
if you'd really want it for every gui element, you could modify the engine's gui->drawall function. It could for example do element->drawborder and then element->draw.
The drawborder function you'd need to insert in the guielement as well.
The draw functions in the skin take a pointer to the current GUI element, so you can just put all that stuff in the skin and treat elements differently depending on getType().