PNG graphic of gui box not visible / loaded (SOLVED)

Hey there.

I’ve made a GUI with a couple of graphics. All graphics are in PNG-format in an atlas.

The interesting thing is, all graphics are nicely shown in the atlas, but 2 of them (small buttons) are just a white block (background color of the main gui box).

I’ve made 4 buttons which appears around a GO-sprite (called unit). I’ve made all buttons in inkscape vector-program. 2 of 4 are “not shown” - you just see the white squares. the other 2 are fine. All made in the same way.

See the screenshots (you may ignore the underscored test-guis in the outline)

Any ideas?

1 Like

Check the image formats. Do they have the same bit depth, color space etc? I think we may have an issue with certain types of PNGs or when they are mixed.

1 Like

Hm…
I’ll do. but this shouldn’t be the problem, because I’ve made ONE file with all the four graphics and just exportet in different layouts/saves. Didnt change anything while exporting. So I guess thats not the problem.

My first thinking was the same. So I opend every xyz.png file in another graphic programm and simply saved it to have all properties the same. Result in defold is also the same .(

So there is nothing in defold?

By the way: I’ve copied the gui-boxes and just changed the image-source and position. so all 4 buttons are the same.

I GOT IT!

Sometimes (most I quess) the solution is simple:

The menu / GUI with the problem above is a “child” / template of another GUI.
I’ve worked on the menu and saved all the time all the files.

A little “trap” is, its needed to go to the “parent” GUI and check the changed components - which ar marked blue (underlined like a link). A simply click on it changes the “old” values to its new.

Tadaaa. all PNGs are there.

3 Likes