Moon Wizard
October 13th, 2009, 08:08
I was looking at updating the combat tracker entry window so that the window would highlight when a drop type that was supported was dragged over it. I tried a quick run at it, but only got it partially working.
The challenge is that the combat tracker entry window is a windowclass object which does not support state frames directly. Only controls within a windowinstance of a windowclass support state frames.
So, I tried to build a state frame at the bottom of the Z-order which would highlight on the correct drops. I used a generic control that was anchored to all four sides of the window, but it never grew larger than the size of the CT window at initialization. (i.e. too small when effects and attacks expanded) Also, the graphics seemed to have a problem, since the frame would sometimes only partial draw.
I thought about grabbing the onHover event for windowinstance, but there are no variables to tell me whether the user is dragging anything or what it might be.
Any other ideas out there?
Cheers,
JPG
The challenge is that the combat tracker entry window is a windowclass object which does not support state frames directly. Only controls within a windowinstance of a windowclass support state frames.
So, I tried to build a state frame at the bottom of the Z-order which would highlight on the correct drops. I used a generic control that was anchored to all four sides of the window, but it never grew larger than the size of the CT window at initialization. (i.e. too small when effects and attacks expanded) Also, the graphics seemed to have a problem, since the frame would sometimes only partial draw.
I thought about grabbing the onHover event for windowinstance, but there are no variables to tell me whether the user is dragging anything or what it might be.
Any other ideas out there?
Cheers,
JPG