Haveing a problem with a new image i made for some ui pieces im working on. I made the image in adobe photoshop with the dds plugin. The problem im haveing is getting the image to keep the size and locations i give it in the ui builder. in the uibuilder everthing is in perfect alignment and proper size but as soon as i load it in game the image shifts up and over and shrinks itself just a little smaller then what i made it in the builder. Ive ready here about the image sizes need to be power of 2 and they are both from the original i made in adobe and in the resized image. no matter what i do the images shift out of place. I tried making locations fixed, absolute and so on. getting frustrated here. I can get the image to align if i shift it over and down so its out of place in the uibuilder but still sizes itself slightly smaller then what i made it. I tried loading an empty ui with nothing other then the pieces im working on and still same issue? Any help ideas anything?
You'll have to post more specific details or screenshots or the actual files you're working on. Things in the UIBuilder should look pretty much how they look in the game with a few exceptions.
The only time I've had this happen to me is if the image wasn't a power of 2.
but like Othesus said, post some more info; like the image size the xml tag you use to show the image ect.
Also make sure you look at the actual xml code sometimes when you get stumped the UI build is handing the issue and it will sticks out like sore thumb in the xml file. (well for me any ways)
Sorry it took a little bit to respond back! But anyway heres a screen shot of whats going on. The image on the left is in the UIbuilder the right is in game. You can see how the alignments shift on either piece for the frame i put on them. I put one in alignment and one out of alignment just to show how its being effected in the game vs the UIbuilder. The code for the compass is below. The frame code for both pieces are identical so any error I've made should be the same or what ever the problem is. I also attached the .dds image of the frame itself in case you want to try it in the UIbuilder yourself.
I'm using the frame in another piece I'm working on and don't seem to be having this problem with it yet. I've written the code below several different ways and always get the same result in game.
ah i actually found the problem last night too. I was changeing the document size and not the pixels when i first made the images. Now i understand the pixels need to be by the power of 2. 2,4,8,16,32,64,128,256,512 ect... all fixed now thxs othesus