@@ -376,7 +376,7 @@ void CSettings::CreateGUI()
376376 m_pButtonGenerateNickIcon->SetProperty (" DistributeCapturedInputs" , " True" );
377377
378378 m_pSavePasswords = reinterpret_cast <CGUICheckBox*>(pManager->CreateCheckBox (pTabMultiplayer, _ (" Save server passwords" ), true ));
379- m_pSavePasswords->SetPosition (CVector2D (vecTemp.fX , vecTemp.fY + 35 .0f ));
379+ m_pSavePasswords->SetPosition (CVector2D (vecTemp.fX , vecTemp.fY + 50 .0f ));
380380 m_pSavePasswords->GetPosition (vecTemp, false );
381381 m_pSavePasswords->AutoSize (NULL , 20 .0f );
382382
@@ -411,13 +411,11 @@ void CSettings::CreateGUI()
411411 m_pCheckBoxCustomizedSAFiles->AutoSize (NULL , 20 .0f );
412412
413413 m_pMapRenderingLabel = reinterpret_cast <CGUILabel*>(pManager->CreateLabel (pTabMultiplayer, _ (" Map rendering options" )));
414- m_pMapRenderingLabel->SetPosition (CVector2D (vecTemp.fX , vecTemp.fY + 30 .0f ));
414+ m_pMapRenderingLabel->SetPosition (CVector2D (vecTemp.fX , vecTemp.fY + 29 .0f ));
415415 m_pMapRenderingLabel->GetPosition (vecTemp, false );
416416 m_pMapRenderingLabel->SetFont (" default-bold-small" );
417417 m_pMapRenderingLabel->AutoSize ();
418418
419- vecTemp.fX += 5 .0f ;
420-
421419 m_pMapAlphaLabel = reinterpret_cast <CGUILabel*>(pManager->CreateLabel (pTabMultiplayer, _ (" Opacity:" )));
422420 m_pMapAlphaLabel->SetPosition (CVector2D (vecTemp.fX , vecTemp.fY + 24 .0f ));
423421 m_pMapAlphaLabel->GetPosition (vecTemp, false );
@@ -435,20 +433,6 @@ void CSettings::CreateGUI()
435433 m_pMapAlphaValueLabel->GetPosition (vecTemp, false );
436434 m_pMapAlphaValueLabel->AutoSize (" 100%" );
437435
438- m_pMapAlphaLabel->GetPosition (vecTemp, false );
439- vecTemp.fY += 24 .0f ;
440-
441- m_pPlayerMapImageLabel = reinterpret_cast <CGUILabel*>(pManager->CreateLabel (pTabMultiplayer, _ (" Image resolution:" )));
442- m_pPlayerMapImageLabel->SetPosition (CVector2D (vecTemp.fX , vecTemp.fY + 2 .0f ));
443- m_pPlayerMapImageLabel->AutoSize ();
444-
445- m_pPlayerMapImageCombo = reinterpret_cast <CGUIComboBox*>(pManager->CreateComboBox (pTabMultiplayer, " " ));
446- m_pPlayerMapImageCombo->SetPosition (CVector2D (vecTemp.fX + fIndentX + 5 .0f , vecTemp.fY - 1 .0f ));
447- m_pPlayerMapImageCombo->SetSize (CVector2D (170 .f , 95 .0f ));
448- m_pPlayerMapImageCombo->AddItem (_ (" 1024 x 1024 (Default)" )); // index 0
449- m_pPlayerMapImageCombo->AddItem (_ (" 2048 x 2048" )); // index 1
450- m_pPlayerMapImageCombo->SetReadOnly (true );
451-
452436 /* *
453437 * Audio tab
454438 **/
@@ -641,13 +625,16 @@ void CSettings::CreateGUI()
641625 * Video tab
642626 **/
643627 fIndentX = pManager->CGUI_GetMaxTextExtent (" default-normal" , _ (" Resolution:" ), _ (" FOV:" ), _ (" Draw Distance:" ), _ (" Brightness:" ), _ (" FX Quality:" ),
644- _ (" Anisotropic filtering:" ), _ (" Anti-aliasing:" ), _ (" Aspect Ratio:" ));
628+ _ (" Anisotropic filtering:" ), _ (" Anti-aliasing:" ), _ (" Aspect Ratio:" ), _ ( " Opacity: " ) );
645629
646- vecTemp.fX = 11 .0f ;
647- vecTemp.fY = 13 .0f ;
630+ m_pVideoGeneralLabel = reinterpret_cast <CGUILabel*>(pManager->CreateLabel (pTabVideo, _ (" General" )));
631+ m_pVideoGeneralLabel->SetPosition (CVector2D (11 , 13 ));
632+ m_pVideoGeneralLabel->GetPosition (vecTemp, false );
633+ m_pVideoGeneralLabel->AutoSize (NULL , 3 .0f );
634+ m_pVideoGeneralLabel->SetFont (" default-bold-small" );
648635
649636 m_pVideoResolutionLabel = reinterpret_cast <CGUILabel*>(pManager->CreateLabel (pTabVideo, _ (" Resolution:" )));
650- m_pVideoResolutionLabel->SetPosition (CVector2D (vecTemp.fX , vecTemp.fY ));
637+ m_pVideoResolutionLabel->SetPosition (CVector2D (vecTemp.fX , vecTemp.fY + 26 . 0f ));
651638 m_pVideoResolutionLabel->GetPosition (vecTemp, false );
652639 m_pVideoResolutionLabel->AutoSize ();
653640
@@ -846,10 +833,6 @@ void CSettings::CreateGUI()
846833 m_pCheckBoxBlur->SetPosition (CVector2D (vecTemp.fX , vecTemp.fY + 130 .0f ));
847834 m_pCheckBoxBlur->AutoSize (NULL , 20 .0f );
848835
849- m_pCheckBoxCoronaReflections = reinterpret_cast <CGUICheckBox*>(pManager->CreateCheckBox (pTabVideo, _ (" Corona rain reflections" ), true ));
850- m_pCheckBoxCoronaReflections->SetPosition (CVector2D (vecTemp.fX , vecTemp.fY + 150 .0f ));
851- m_pCheckBoxCoronaReflections->AutoSize (nullptr , 20 .0f );
852-
853836 float fPosY = vecTemp.fY ;
854837 m_pCheckBoxMinimize = reinterpret_cast <CGUICheckBox*>(pManager->CreateCheckBox (pTabVideo, _ (" Full Screen Minimize" ), true ));
855838 m_pCheckBoxMinimize->SetPosition (CVector2D (vecTemp.fX + 245 .0f , fPosY + 30 .0f ));
@@ -895,6 +878,10 @@ void CSettings::CreateGUI()
895878 m_pCheckBoxHighDetailPeds->SetPosition (CVector2D (vecTemp.fX + 245 .0f , fPosY + 110 .0f ));
896879 m_pCheckBoxHighDetailPeds->AutoSize (NULL , 20 .0f );
897880
881+ m_pCheckBoxCoronaReflections = reinterpret_cast <CGUICheckBox*>(pManager->CreateCheckBox (pTabVideo, _ (" Corona rain reflections" ), true ));
882+ m_pCheckBoxCoronaReflections->SetPosition (CVector2D (vecTemp.fX + 245 .0f , fPosY + 130 .0f ));
883+ m_pCheckBoxCoronaReflections->AutoSize (NULL , 20 .0f );
884+
898885 vecTemp.fY += 10 ;
899886
900887 m_pTabs->GetSize (vecTemp);
@@ -1023,7 +1010,6 @@ void CSettings::CreateGUI()
10231010 5 .0f ;
10241011
10251012 vecTemp.fX += 10 .0f ;
1026-
10271013 // Fast clothes loading
10281014 m_pFastClothesLabel = reinterpret_cast <CGUILabel*>(pManager->CreateLabel (pTabAdvanced, _ (" Fast CJ clothes loading:" )));
10291015 m_pFastClothesLabel->SetPosition (CVector2D (vecTemp.fX , vecTemp.fY ));
@@ -1252,7 +1238,7 @@ void CSettings::CreateGUI()
12521238 vecTemp.fX -= fComboWidth + 15 ;
12531239
12541240 // Description label
1255- vecTemp.fY += 15 . 0f ;
1241+ vecTemp.fY = 354 + 10 ;
12561242 m_pAdvancedSettingDescriptionLabel = reinterpret_cast <CGUILabel*>(pManager->CreateLabel (pTabAdvanced, " " ));
12571243 m_pAdvancedSettingDescriptionLabel->SetPosition (CVector2D (vecTemp.fX + 10 .f , vecTemp.fY ));
12581244 m_pAdvancedSettingDescriptionLabel->SetFont (" default-bold-small" );
@@ -1643,17 +1629,12 @@ void CSettings::UpdateVideoTab()
16431629 float fPos = SharedUtil::Unlerp (g_pCore->GetMinStreamingMemory (), uiStreamingMemory, g_pCore->GetMaxStreamingMemory ());
16441630 m_pStreamingMemory->SetScrollPosition (fPos );
16451631
1646- // Player map alpha
16471632 int iVar = 0 ;
16481633 CVARS_GET (" mapalpha" , iVar);
16491634 int iAlphaPercent = ceil (((float )Clamp (0 , iVar, 255 ) / 255 ) * 100 );
16501635 m_pMapAlphaValueLabel->SetText (SString (" %i%%" , iAlphaPercent).c_str ());
16511636 float sbPos = (float )iAlphaPercent / 100 .0f ;
16521637 m_pMapAlpha->SetScrollPosition (sbPos);
1653-
1654- // Player map image
1655- CVARS_GET (" mapimage" , iVar);
1656- m_pPlayerMapImageCombo->SetSelectedItemByIndex (iVar);
16571638}
16581639
16591640//
@@ -1870,9 +1851,7 @@ bool CSettings::OnVideoDefaultClick(CGUIElement* pElement)
18701851
18711852 CVARS_SET (" streaming_memory" , g_pCore->GetMaxStreamingMemory ());
18721853
1873- // Player map defaults
18741854 CVARS_SET (" mapalpha" , 155 );
1875- CVARS_SET (" mapimage" , 0 );
18761855
18771856 // Display restart required message if required
18781857 bool bIsAntiAliasingChanged = gameSettings->GetAntiAliasing () != m_pComboAntiAliasing->GetSelectedItemIndex ();
@@ -3630,16 +3609,12 @@ void CSettings::SaveData()
36303609 CVARS_SET (" update_auto_install" , iSelected);
36313610 }
36323611
3633- // Player map alpha
3612+ // Map alpha
36343613 SString sText = m_pMapAlphaValueLabel->GetText ();
3614+
36353615 float fMapAlpha = ((atof (sText .substr (0 , sText .length () - 1 ).c_str ())) / 100 ) * 255 ;
36363616 CVARS_SET (" mapalpha" , fMapAlpha );
36373617
3638- // Player map image
3639- int selectedComboIndex = m_pPlayerMapImageCombo->GetSelectedItemIndex ();
3640- if (selectedComboIndex != -1 )
3641- CVARS_SET (" mapimage" , selectedComboIndex);
3642-
36433618 // Language
36443619 CGUIListItem* pItem = m_pInterfaceLanguageSelector->GetSelectedItem ();
36453620 if (pItem)
0 commit comments