SRL Archive - OSR Help

coord's


TomTuff

2010-12-01 20:50:39

So I'm revising my spider fighter. In order to set which attack type to use (i.e. to use attack, strength, defence, or controlled), I want it to mouse over each box, and then use FindTextTPA() to read if it says "Attack", "Defence", "Strength", or "Shared". No matter where you mouse over on the red/gray tile on the combat screen, the yellow box with this information that comes up has static coords; however, i cannot gather the coords of the box i want to search for the text in because when you move away the mouse it makes the yellow box go away =\

I tried taking a screen shot and pasting it into paint, but when you set the client to the paint window, it tries to take from the entire canvas (not just my image).

If all else fails there's always reflection, though, but I'd rather do it this way (Trying to get more experience with color).


EDIT:
Just to clarify, my final question is how to get the coords :P

Sex

2010-12-01 21:01:47

I'll do it..hold on.

Edit: Wait, I don't see how it is static coords?

TomTuff

2010-12-01 21:11:17

From: Sex
I'll do it..hold on.

Edit: Wait, I don't see how it is static coords?


mouse over one the squares. no matter which part of the square it's on, the yellow pop up box is in the same spot.