Add a north pointer for the rotating radar.
This is i-NoD's reworked version. Closes #769. git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8011 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
5accd8f706
commit
773c6f7a4e
|
@ -507,3 +507,4 @@
|
|||
5,74,29,37,29,-5,1,"IMAGE EDIT RESEARCH DOWN"
|
||||
5,37,0,37,29,-5,1,"IMAGE EDIT MANUFACTURE UP"
|
||||
5,37,29,37,29,-5,1,"IMAGE EDIT MANUFACTURE DOWN"
|
||||
5,0,84,14,33,0,0,"RADAR_NORTH"
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 5.4 KiB |
|
@ -533,8 +533,8 @@ enum {
|
|||
IMAGE_EDIT_RESEARCH_UP,
|
||||
IMAGE_EDIT_RESEARCH_DOWN,
|
||||
IMAGE_EDIT_MANUFACTURE_UP,
|
||||
IMAGE_EDIT_MANUFACTURE_DOWN
|
||||
|
||||
IMAGE_EDIT_MANUFACTURE_DOWN,
|
||||
RADAR_NORTH
|
||||
};
|
||||
|
||||
#endif // __INCLUDED_SRC_INTFAC_H__
|
||||
|
|
|
@ -89,6 +89,7 @@ static UDWORD radarBufferSize = 0;
|
|||
static void DrawRadarTiles(void);
|
||||
static void DrawRadarObjects(void);
|
||||
static void DrawRadarExtras(float radarX, float radarY, float pixSizeH, float pixSizeV);
|
||||
static void DrawNorth(void);
|
||||
|
||||
static void radarSize(float zoom)
|
||||
{
|
||||
|
@ -267,6 +268,7 @@ void drawRadar(void)
|
|||
{
|
||||
// rotate the map
|
||||
iV_MatrixRotateZ(player.r.y);
|
||||
DrawNorth();
|
||||
}
|
||||
// draw the box at the dimensions of the map
|
||||
iV_TransBoxFill(-radarWidth/2.0,
|
||||
|
@ -284,6 +286,10 @@ void drawRadar(void)
|
|||
drawRadarBlips(-radarWidth/2.0, -radarHeight/2.0, pixSizeH, pixSizeV);
|
||||
pie_MatEnd();
|
||||
}
|
||||
static void DrawNorth(void)
|
||||
{
|
||||
iV_DrawImage(IntImages, RADAR_NORTH, -((radarWidth / 2.0) + (IntImages->ImageDefs[RADAR_NORTH].Width) + 1) , -(radarHeight / 2.0));
|
||||
}
|
||||
|
||||
static PIELIGHT appliedRadarColour(RADAR_DRAW_MODE radarDrawMode, MAPTILE *WTile)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue