• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Lock Camera

Status
Not open for further replies.
Level 10
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