• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Lock Camera

Status
Not open for further replies.
Level 9
Joined
Mar 26, 2017
Messages
376
In my map I use custom UI, and in some cases I want to be able to disable edge scrolling/camera adjustment.

Now I cannot find a function that accomplishes this other than EnableUserControl, which unfortunately removes the mouse pointer.

The best workaround solution I can think of involves creating a unit and calling SetCameraTargetController, but I don't really like it. It will still change the mouse pointer when it comes into contact with screen edge, and scrolling will still change camera position.

Or perhaps using EnableUserControl, and setting a frame that looks like a mouse pointer to the position of the mouse every 0.03 seconds, but I fear it will make the mouse movement less smooth.

Anyone have a good solution to this?
 
Status
Not open for further replies.
Top