@@ -1004,12 +1004,26 @@ void CSettings::CreateGUI()
10041004 m_pAdvancedMiscLabel->AutoSize ();
10051005 vecTemp.fY += fHeaderHeight ;
10061006
1007- fIndentX = pManager->CGUI_GetMaxTextExtent (" default-normal" , _ (" Fast CJ clothes loading:" ), _ (" Browser speed:" ), _ (" Single connection:" ), _ (" Packet tag:" ),
1007+ fIndentX = pManager->CGUI_GetMaxTextExtent (" default-normal" , _ (" Radar map image: " ), _ ( " Fast CJ clothes loading:" ), _ (" Browser speed:" ), _ (" Single connection:" ), _ (" Packet tag:" ),
10081008 _ (" Progress animation:" ), _ (" Fullscreen mode:" ), _ (" Process priority:" ), _ (" Debug setting:" ),
10091009 _ (" Streaming memory:" ), _ (" Update build type:" ), _ (" Install important updates:" )) +
10101010 5 .0f ;
10111011
10121012 vecTemp.fX += 10 .0f ;
1013+
1014+ // Radar map image
1015+ m_pRadarMapImageLabel = reinterpret_cast <CGUILabel*>(pManager->CreateLabel (pTabAdvanced, _ (" Radar map image:" )));
1016+ m_pRadarMapImageLabel->SetPosition (CVector2D (vecTemp.fX , vecTemp.fY ));
1017+ m_pRadarMapImageLabel->AutoSize ();
1018+
1019+ m_pRadarMapImageCombo = reinterpret_cast <CGUIComboBox*>(pManager->CreateComboBox (pTabAdvanced, " " ));
1020+ m_pRadarMapImageCombo->SetPosition (CVector2D (vecTemp.fX + fIndentX , vecTemp.fY - 1 .0f ));
1021+ m_pRadarMapImageCombo->SetSize (CVector2D (fComboWidth , 95 .0f ));
1022+ m_pRadarMapImageCombo->AddItem (_ (" 1024 x 1024 (Default)" ))->SetData ((void *)0 );
1023+ m_pRadarMapImageCombo->AddItem (_ (" 2048 x 2048" ))->SetData ((void *)1 );
1024+ m_pRadarMapImageCombo->SetReadOnly (true );
1025+ vecTemp.fY += fLineHeight ;
1026+
10131027 // Fast clothes loading
10141028 m_pFastClothesLabel = reinterpret_cast <CGUILabel*>(pManager->CreateLabel (pTabAdvanced, _ (" Fast CJ clothes loading:" )));
10151029 m_pFastClothesLabel->SetPosition (CVector2D (vecTemp.fX , vecTemp.fY ));
@@ -1238,7 +1252,7 @@ void CSettings::CreateGUI()
12381252 vecTemp.fX -= fComboWidth + 15 ;
12391253
12401254 // Description label
1241- vecTemp.fY = 354 + 10 ;
1255+ vecTemp.fY += 10 ;
12421256 m_pAdvancedSettingDescriptionLabel = reinterpret_cast <CGUILabel*>(pManager->CreateLabel (pTabAdvanced, " " ));
12431257 m_pAdvancedSettingDescriptionLabel->SetPosition (CVector2D (vecTemp.fX + 10 .f , vecTemp.fY ));
12441258 m_pAdvancedSettingDescriptionLabel->SetFont (" default-bold-small" );
@@ -1297,6 +1311,9 @@ void CSettings::CreateGUI()
12971311 m_pFastClothesLabel->SetMouseEnterHandler (GUI_CALLBACK (&CSettings::OnShowAdvancedSettingDescription, this ));
12981312 m_pFastClothesLabel->SetMouseLeaveHandler (GUI_CALLBACK (&CSettings::OnHideAdvancedSettingDescription, this ));
12991313
1314+ m_pRadarMapImageCombo->SetMouseEnterHandler (GUI_CALLBACK (&CSettings::OnShowAdvancedSettingDescription, this ));
1315+ m_pRadarMapImageCombo->SetMouseLeaveHandler (GUI_CALLBACK (&CSettings::OnHideAdvancedSettingDescription, this ));
1316+
13001317 m_pFastClothesCombo->SetMouseEnterHandler (GUI_CALLBACK (&CSettings::OnShowAdvancedSettingDescription, this ));
13011318 m_pFastClothesCombo->SetMouseLeaveHandler (GUI_CALLBACK (&CSettings::OnHideAdvancedSettingDescription, this ));
13021319
@@ -3150,6 +3167,13 @@ void CSettings::LoadData()
31503167 int PriorityClassList[] = {NORMAL_PRIORITY_CLASS, ABOVE_NORMAL_PRIORITY_CLASS, HIGH_PRIORITY_CLASS};
31513168 SetPriorityClass (GetCurrentProcess (), PriorityClassList[CVARS_GET_VALUE<int >(" process_priority" ) % 3 ]);
31523169
3170+ // Radar map image
3171+ CVARS_GET (" radar_map_image" , iVar);
3172+ if (iVar == 0 )
3173+ m_pRadarMapImageCombo->SetText (_ (" 1024 x 1024 (Default)" ));
3174+ else if (iVar == 1 )
3175+ m_pRadarMapImageCombo->SetText (_ (" 2048 x 2048" ));
3176+
31533177 // Fast clothes loading
31543178 CVARS_GET (" fast_clothes_loading" , iVar);
31553179 if (iVar == CMultiplayer::FAST_CLOTHES_OFF)
@@ -3536,6 +3560,14 @@ void CSettings::SaveData()
35363560 CVARS_SET (" dynamic_ped_shadows" , bDynamicPedShadows);
35373561 gameSettings->SetDynamicPedShadowsEnabled (bDynamicPedShadows);
35383562
3563+ // Radar map image
3564+ if (CGUIListItem* pSelected = m_pRadarMapImageCombo->GetSelectedItem ())
3565+ {
3566+ int iSelected = (int )pSelected->GetData ();
3567+ CVARS_SET (" radar_map_image" , iSelected);
3568+ // TODO Update the map image if radar map exists
3569+ }
3570+
35393571 // Fast clothes loading
35403572 if (CGUIListItem* pSelected = m_pFastClothesCombo->GetSelectedItem ())
35413573 {
@@ -4812,6 +4844,8 @@ bool CSettings::OnShowAdvancedSettingDescription(CGUIElement* pElement)
48124844
48134845 if (pLabel && pLabel == m_pPriorityLabel || pComboBox && pComboBox == m_pPriorityCombo)
48144846 strText = std::string (_ (" Process priority:" )) + " " + std::string (_ (" Very experimental feature." ));
4847+ else if (pLabel && pLabel == m_pRadarMapImageLabel || pComboBox && pComboBox == m_pRadarMapImageCombo)
4848+ strText = std::string (_ (" Radar map image:" )) + " " + std::string (_ (" Select the San Andreas radar map image size." ));
48154849 else if (pLabel && pLabel == m_pFastClothesLabel || pComboBox && pComboBox == m_pFastClothesCombo)
48164850 strText = std::string (_ (" Fast CJ clothes loading:" )) + " " + std::string (_ (" Stops stalls with CJ variations (Uses 65MB more RAM)" ));
48174851 else if (pLabel && pLabel == m_pBrowserSpeedLabel || pComboBox && pComboBox == m_pBrowserSpeedCombo)
0 commit comments