Progress list
All the info you need, in one place :)
- Cleaning up the code
- Scale with resolution
- Zooming
- Fixed icons placements ect.
- New icons![wip]
- Enemies now show up on the minimap after their hostile behavior towards the player
- Player`s icon changes as he is spotted
- On map border the texture is no longer tilled, it fades into the color of your liking :)
- New health and stamina bars!
- Customization: position, scale ect.
- Health bar turns yellow, depending on how much armor the player has
- Vehicles also show up on the minimap
- Moved to patch 1.4 for good
- Unlimited objectives on the minimap are now possible
- Works inside the editor!
- So far all vanilla maps are compatible :)
- New detection overlay
- Lots of minor stuff
- A lot of stuff happened
- V1 RELEASE!
> Zooming!
did you mean the drawradarrange (indoor vs outdoor) or a additionally extra zoom?
I've had to change the code a bit. Otherwise the icons would be all over the place.
i'm really curious to see your code, must be a hell to do this. i once have done something "similar", for my vehicle radio: it can show radio station names out from hud.dds and scroll the name inside the radio.
imaginating that a radarmap must be moved not only in one direction, it must be also rotated, i gave up on trying this routine you have done ^^
btw, what happens on map boarder, will the radar than show black?
Unfortunately, the texture is repeated :(
No idea how to fix that[if there even is a way].
yes, there is a way: the trick is to use scissor.
System:SetScissor
System:DrawImageColor
the idea behind is not to use the whole dds and move and rotate it, use the same image but scissor it and use then drawimagecolor like its done for hud.dds icons.
they are also not repeated, i think if you take the same x y dimensions like the dds have, its not repeated, its then black, i think.
SetScissor cuts all the textures drawn in c++ from the screen, not the texture itself :(
i simply copied my mimimap picture in a testmap and recordet it (i was to lazy to load the map which belongs to that map).
Youtu.be
System:SetScissor
(Map.viewProps.x,Map.viewProps.y, Map.viewProps.w, Map.viewProps.h)
System:DrawImageColor(
Map.texMap,
texW,
texH,
Map.layer,
r,
g,
b,
Map.viewProps.a
System:SetScissor(0,0,0,0 --important! must always reset the scissor after the draw function