I have a picture size of 2048*2048, i want to auto size to vanila rader pos. I don't want to use maps rader to custom. I have more worlds.
Hide the original radar (Hud.RemoveFlags(HUD_FLAG_RADAR);) and recreate it.
At 1920x1080 resolution, the center position of the map radar is VectorScreen(180,895);
at 600 * 480, where is the position
The algorithm should be coordinates plus 1,950 times the size of the map divided by 3,900 plus the location of the map.
When the player is at 0,0, the position on the map should be 320,240.
emm, I said wrong. It's the small rader map the vectorscreen is where?
The bottom left and right can be shown, and it can be anywhere.You may need to addchild to add player icons to the map.
How add child?
Map.AddChild(icon);
The 'Map' is exists? The 'Map' whereis?
The 'y' is true, but 'x' is not really
The VectorScreen x how to calc?, 1920 is x * 0.09375, 600 is x * 0.14
Map x ranges from -2350 to 1550, two numbers you can try to bring into your algorithm.
What means? I need calc the radar map center of x