Closed ThousandthStar closed 1 year ago
I wasn't able to reproduce this in the main menu example here: https://github.com/StarArawn/kayak_ui/blob/main/examples/main_menu.rs This uses multiple images. I'll try to pull your repo and give it a go when I get a chance.
Looking at that example, the problem may be that I am not giving the KImageBundle styles a width and height property.
I also tried using two nine patches inside a larger nine patch but that still didn't work.
I also tried using two nine patches inside a larger nine patch but that still didn't work.
Thanks I'll take a look shortly.
@StarArawn got it to work after all! The problem was that I had an image that was the height of the screen, so my other image was rendered below the screen. The simple solution was to add an offset
value to the KStyle
of my nine patch, with the top
value being negative. It works now, wasn't a bug.
When using this
rsx!
UI, the second image doesn't render (I tried two nine-patches as well):I really have no idea what is going on here. Any help is appreciated. The full code is here https://github.com/ThousandthStar/8bit-duels