PDA

View Full Version : phxImageEditor bug



JoePublic
23-10-2007, 04:07 PM
Hi, I've been messing around with this Library trying to learn and understand it and came across a small bug that I thought I would share.

I had a large .png file consisting of many frames of an animated character, I used the Import from texture button and then the Rectangular Patterns option from the Tools menu to set up the patterns. I then saved to an appropriately named phximg file.

I then tried to use this file in a Sprite test program I had created using the 1945.phximg file, but it didn't work. I tried this several times until i discovered what was wrong:

It seems the Rectangular Pattens tool does not default the Pivot values to anything meaningful and I was ending up with Pivot values of something like 10794700,1

After manually editing the Pivot values for each pattern, the Test program worked fine. So my fix was to edit the TPHXImage.LoadFromStream source to check and adjust of necesary.

Anyway, sorry to be so long-winded.

Andreaz
25-10-2007, 07:12 PM
Yeah i've overlooked that when creating the pivots (they wherent in when i wrote the pattern thing. It will be fixed when the next version is ready.

As always i have my hands full with work, the automation industry is hectic this autumn.

JoePublic
26-10-2007, 06:31 PM
Thankyou Andreaz.

Here's something else you might look at, at the same time:

If you have a long list of patterns and you delete one of them using the icon bottom, second from left, then it's position is taken by the last pattern in the list.

Thankyou for your work itr. :D

Andreaz
27-10-2007, 11:44 AM
Thankyou Andreaz.

Here's something else you might look at, at the same time:

If you have a long list of patterns and you delete one of them using the icon bottom, second from left, then it's position is taken by the last pattern in the list.

Thankyou for your work itr. :D

Yeah, that sounds familliar, it's no real delete tbh, it just swaps the item with the last one in the list and decreases the count. Guess i was to lazy writing that...