Im trying to create a image that moves at all times to the location of mouse. (its a crossair) and i cant just change the cursor since i need the "images" to be visible to all players.. Player 1 has one and player 2 has one.
Now i tried this with dialog set to full screen and a dialog image. But the problem is the achor. "Mouse moved" event -> when moving mouse it follows, but only in relation from its anchor. so i need a "none" achored image.
Still the same, its still related to center, and i udnerstand what your trying to say "with an offset depending on screen and where mouse is and stuff, but i dont know how to do it =/
Anyone :/ ?
I would like to believe i was as good as programmer at figuring out the math with depending variables of screen res, position relation from midd and stuff, but im really not
Also you need to know that dialogs don't always have the size you set in the editor but get scaled depending on the resolution. The factors should be given with this library.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Im trying to create a image that moves at all times to the location of mouse. (its a crossair) and i cant just change the cursor since i need the "images" to be visible to all players.. Player 1 has one and player 2 has one.
Now i tried this with dialog set to full screen and a dialog image. But the problem is the achor. "Mouse moved" event -> when moving mouse it follows, but only in relation from its anchor. so i need a "none" achored image.
Is this possible?
Screen image.
@doite: Go
Un anchor it, and instead calculate sreen resolution as well as the value returned by the mouse moved function. This is a helpful libs
http://forums.sc2mapster.com/resources/trigger-libraries/17101-library-get-resolution/
@progammer:
How do u Unachor a dialog? is that even possible?
progammer didnt you tell me you could just change the cursor model to be a cross hair?
@SouLCarveRR: Go
He wants different image for each player, so that's out of the question
@doite: Go
I mean dont use anchor with the full screen dialog, use a normal dialog with defined size, that's way you can calculate the position needed
@obliviron:
Aha! thanks, ill test this
@doite:
Still the same, its still related to center, and i udnerstand what your trying to say "with an offset depending on screen and where mouse is and stuff, but i dont know how to do it =/
@doite:
Anyone :/ ?
I would like to believe i was as good as programmer at figuring out the math with depending variables of screen res, position relation from midd and stuff, but im really not
I didn't read all of this thread, but I think you will find that useful: an asset someone posted here on sc2mapster ;)
http://www.sc2mapster.com/assets/getresolution/
Also you need to know that dialogs don't always have the size you set in the editor but get scaled depending on the resolution. The factors should be given with this library.