@@ -67,20 +67,26 @@ CRadarMap::CRadarMap(CClientManager* pManager)
6767 CreateMarkerTextures ();
6868
6969 // Create the text displays for the help text
70+ SColorRGBA colorWhiteTransparent = SColorRGBA (255 , 255 , 255 , 200 );
71+ SColorRGBA colorWhite = SColorRGBA (255 , 255 , 255 , 255 );
7072 struct
7173 {
7274 SColor color;
7375 float fPosY ;
7476 float fScale ;
7577 SString strMessage;
7678 } messageList[] = {
77- {SColorRGBA (255 , 255 , 255 , 200 ), 0 .92f , 1 .5f , " " },
78- {SColorRGBA (255 , 255 , 255 , 255 ), 0 .95f , 1 .0f , SString (_ (" Change mode: %s" ), *GetBoundKeyName (" radar_attach" ))},
79- {SColorRGBA (255 , 255 , 255 , 255 ), 0 .05f , 1 .0f , SString (_ (" Zoom in/out: %s/%s" ), *GetBoundKeyName (" radar_zoom_in" ), *GetBoundKeyName (" radar_zoom_out" ))},
80- {SColorRGBA (255 , 255 , 255 , 255 ), 0 .07f , 1 .0f , SString (_ (" Movement: %s, %s, %s, %s" ), *GetBoundKeyName (" radar_move_north" ), *GetBoundKeyName (" radar_move_east" ), *GetBoundKeyName (" radar_move_south" ), *GetBoundKeyName (" radar_move_west" ))},
81- {SColorRGBA (255 , 255 , 255 , 255 ), 0 .09f , 1 .0f , SString (_ (" Decrease/increase opacity: %s/%s" ), *GetBoundKeyName (" radar_opacity_down" ), *GetBoundKeyName (" radar_opacity_up" ))},
82- {SColorRGBA (255 , 255 , 255 , 255 ), 0 .11f , 1 .0f , SString (_ (" Toggle map: %s" ), *GetBoundKeyName (" radar" ))},
83- {SColorRGBA (255 , 255 , 255 , 255 ), 0 .13f , 1 .0f , SString (_ (" Toggle this help text: %s" ), *GetBoundKeyName (" radar_help" ))},
79+ {colorWhiteTransparent, 0 .92f , 1 .5f , " " },
80+ {colorWhite, 0 .95f , 1 .0f , SString (_ (" Change mode: %s" ), *GetBoundKeyName (" radar_attach" ))},
81+
82+ {colorWhite, 0 .05f , 1 .0f ,
83+ SString (_ (" Zoom: %s/%s Movement: %s, %s, %s, %s Opacity: %s/%s" ),
84+ *GetBoundKeyName (" radar_zoom_in" ), *GetBoundKeyName (" radar_zoom_out" ), *GetBoundKeyName (" radar_move_north" ),
85+ *GetBoundKeyName (" radar_move_east" ), *GetBoundKeyName (" radar_move_south" ), *GetBoundKeyName (" radar_move_west" ),
86+ *GetBoundKeyName (" radar_opacity_down" ), *GetBoundKeyName (" radar_opacity_up" ))},
87+ {colorWhite, 0 .07f , 1 .0f ,
88+ SString (_ (" Toggle map: %s Toggle help text: %s" ),
89+ *GetBoundKeyName (" radar" ), *GetBoundKeyName (" radar_help" ))},
8490 };
8591
8692 for (uint i = 0 ; i < NUMELMS (messageList); i++)
@@ -126,7 +132,7 @@ void CRadarMap::SetMapImage(std::uint32_t imageIndex)
126132
127133 SString fileName (" MTA\\ cgui\\ images\\ radar_%d.png" , width);
128134
129- if (m_pRadarImage != nullptr )
135+ if (m_pRadarImage)
130136 SAFE_RELEASE (m_pRadarImage);
131137
132138 m_pRadarImage = g_pCore->GetGraphics ()->GetRenderItemManager ()->CreateTexture (CalcMTASAPath (fileName), nullptr , false , width, height, RFORMAT_DXT1);
0 commit comments