so sad someone lock my post
http://gamingonstero...minimap-broken/
as title
i want draw a circle like this
WorldToMinimap only return x, y
but DrawCircle need x,y,z
Best Answer Inspired , 12 November 2015 - 05:05
For the general drawing of 2D circles you can use:
function DrawScreenCircle(x, y, size, width, color, quality, elliptic) local quality = quality or 1; local elliptic = elliptic or 1; for theta=0,360,quality do DrawLine(x + size * math.cos(2*math.pi/360*theta), y - elliptic * size * math.sin(2*math.pi/360*theta), x + size * math.cos(2*math.pi/360*(theta-1)), y - elliptic * size * math.sin(2*math.pi/360*(theta-1)), 1, color) end endGo to the full post »
so sad someone lock my post
http://gamingonstero...minimap-broken/
as title
i want draw a circle like this
WorldToMinimap only return x, y
but DrawCircle need x,y,z
DrawText("o" ....so sad someone lock my post
http://gamingonstero...minimap-broken/
as title
i want draw a circle like this
WorldToMinimap only return x, y
but DrawCircle need x,y,z
DrawText("o" ....
Otherwise construct it with ****ton lines.
genius
genius
Im not sure but you could
DrawText("•")
Im not sure but you could
DrawText("•")
i tried it, nope, + you need ASCII format for it
Get Screen Resolution and u have the Map position
Get Screen Resolution and u have the Map position
some sample code plz?
not yet. i try to make one weekend maybe
Something like Set 2 corners(upper left and down right corner of the minimap, by left click) once u start the script and project the 3D environment to this "new" set rectangle crated by these 2 corners.
Transform the 3D coordinate of an Unit to a 2D coordinate of this rectangle u set. U need to do math.
Something like Set 2 corners(upper left and down right corner of the minimap, by left click) once u start the script and project the 3D environment to this "new" set rectangle crated by these 2 corners.
Transform the 3D coordinate of an Unit to a 2D coordinate of this rectangle u set. U need to do math.
Or you use WorldToMinimap
Just wait for me to release one api like that, there's nothing else better left to do.
Just wait for me to release one api like that, there's nothing else better left to do.
function DrawScreenCircle(x, y, size, width, color, quality, elliptic) local quality = quality or 1; local elliptic = elliptic or 1; for theta=0,360,quality do DrawLine(x + size * math.cos(2*math.pi/360*theta), y - elliptic * size * math.sin(2*math.pi/360*theta), x + size * math.cos(2*math.pi/360*(theta-1)), y - elliptic * size * math.sin(2*math.pi/360*(theta-1)), 1, color) end end
For the general drawing of 2D circles you can use:
function DrawScreenCircle(x, y, size, width, color, quality, elliptic) local quality = quality or 1; local elliptic = elliptic or 1; for theta=0,360,quality do DrawLine(x + size * math.cos(2*math.pi/360*theta), y - elliptic * size * math.sin(2*math.pi/360*theta), x + size * math.cos(2*math.pi/360*(theta-1)), y - elliptic * size * math.sin(2*math.pi/360*(theta-1)), 1, color) end end
hmm since we have DrawCircleMinimap api already....i think i don't need those math anymore
Well this works on complete screen, not just on the minimap. (I needed it for my pong huehue)hmm since we have DrawCircleMinimap api already....i think i don't need those math anymore
0 members, 0 guests, 0 anonymous users