Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: EUD Mouse Over Display Text?
EUD Mouse Over Display Text?
This topic is locked. You can no longer write replies here.
May 19 2010, 9:35 pm
By: Super Duper  

May 19 2010, 9:35 pm Super Duper Post #1



I have some text in the middle of a screen in an UMS map I recently started making. How do I make it so that when a player mouses over the Display Text that it displays MORE text at the bottom left of the screen?



None.

May 19 2010, 9:40 pm rockz Post #2

ᴄʜᴇᴇsᴇ ɪᴛ!

006CDDAC Mouse X Position
006CDDB0 Mouse Y Position
The addresses have changed, though since the new patch. I suggest you look around there for mouse position.

Figure out a range of values you want, for example, the center of the screen, make a 200x200 box or something. Then use a range to detect that the x position is in that 200 range, and so is the y position. The actual numbers may change a little.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

May 19 2010, 10:47 pm Super Duper Post #3



Thanks, but I am having trouble finding the mouse position :/



None.

May 19 2010, 11:00 pm Ahli Post #4

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

mouse position on your screen:
X: Player 1, unit 27618
Y: Player 2, unit 27618
// coordinates: mouse on screen x: 0-639, mouse on screen y: 0-371
X-mouseoffset: Memory(331416, Exactly, pixelcoordinate);
Y-mouseoffset: Memory(331417, Exactly, pixelcoordinate);

edit:
I think they are correct. I forgot how I named my testmap and I'm to lazy to search right now...




May 19 2010, 11:53 pm Cinolt Post #5



The origin (0, 0) of the grid is in the top left rather than the bottom left. Take a screenshot and see what coordinates the text is in (XnView is free and can do this, I dunno about others)



None.

May 20 2010, 12:21 am Heinermann Post #6

SDE, BWAPI owner, hacker.

Code
MouseX: 0x006CDDC4  |  Deaths of Terran Marine for Player 331417  |  Memory 331416
MouseY: 0x006CDDC8  |  Deaths of Terran Marine for Player 331418  |  Memory 331417


Range should be (0, 0) to (640, 480).

You have to use the condition and come up with a solution for displaying text yourself.




May 20 2010, 12:43 am stickynote Post #7



Note that that is single player only. The multiplayer version would be to do what Kaias and Lethal did; use unit order coordinate detection.



None.

May 21 2010, 11:11 pm Super Duper Post #8



Yes, I know its single player.

Anyways, this is solved. Kthxbai.

(@Ahli: Those are correct.)



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
[2024-4-20. : 8:09 pm]
Vrael -- woo baby talk about a time crunch
[2024-4-20. : 8:08 pm]
Vrael -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
so that gives me approximately 27 more years to finish tenebrous before you get to it?
[2024-4-20. : 7:56 pm]
Oh_Man -- lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
Please log in to shout.


Members Online: zsnakezz, IlyaSnopchenko