@@ -410,6 +410,7 @@ void CSettings::ResetGuiPointers()
410410 m_pChatLineFadeout = NULL ;
411411 m_pFlashWindow = NULL ;
412412 m_pTrayBalloon = NULL ;
413+ m_pChatShowTimestamps = NULL ;
413414
414415 m_pLabelBrowserGeneral = NULL ;
415416 m_pCheckBoxRemoteBrowser = NULL ;
@@ -3238,6 +3239,11 @@ void CSettings::CreateInterfaceTabGUI()
32383239 m_pChatTextBlackOutline->SetPosition (CVector2D (vecTemp.fX , vecTemp.fY + fLineSizeY + fLineGapY ));
32393240 m_pChatTextBlackOutline->GetPosition (vecTemp);
32403241 m_pChatTextBlackOutline->AutoSize (NULL , 20 .0f );
3242+
3243+ m_pChatShowTimestamps = reinterpret_cast <CGUICheckBox*>(pManager->CreateCheckBox (pTabOptions, _ (" Show timestamps in chat messages" )));
3244+ m_pChatShowTimestamps->SetPosition (CVector2D (vecTemp.fX , vecTemp.fY + fLineSizeY + fLineGapY ));
3245+ m_pChatShowTimestamps->GetPosition (vecTemp);
3246+ m_pChatShowTimestamps->AutoSize (NULL , 20 .0f );
32413247 }
32423248 }
32433249}
@@ -4156,6 +4162,8 @@ void CSettings::LoadData()
41564162 m_pChatNickCompletion->SetSelected (bVar);
41574163 CVARS_GET (" chat_text_outline" , bVar);
41584164 m_pChatTextBlackOutline->SetSelected (bVar);
4165+ CVARS_GET (" show_time_in_chat" , bVar);
4166+ m_pChatShowTimestamps->SetSelected (bVar);
41594167
41604168 {
41614169 int iVar;
@@ -4190,6 +4198,8 @@ void CSettings::LoadData()
41904198 m_pFlashWindow->SetSelected (bVar);
41914199 CVARS_GET (" allow_tray_notifications" , bVar);
41924200 m_pTrayBalloon->SetSelected (bVar);
4201+ CVARS_GET (" show_time_in_chat" , bVar);
4202+ m_pChatShowTimestamps->SetSelected (bVar);
41934203
41944204 // Browser
41954205 CVARS_GET (" browser_remote_websites" , bVar);
@@ -4622,6 +4632,7 @@ void CSettings::SaveData()
46224632 CVARS_SET (" chat_text_outline" , m_pChatTextBlackOutline->GetSelected ());
46234633 CVARS_SET (" chat_line_life" , GetMilliseconds (m_pChatLineLife));
46244634 CVARS_SET (" chat_line_fade_out" , GetMilliseconds (m_pChatLineFadeout));
4635+ CVARS_SET (" show_time_in_chat" , m_pChatShowTimestamps->GetSelected ());
46254636
46264637 CVARS_SET (" chat_position_offset_x" , m_pChatOffsetX->GetText ());
46274638 CVARS_SET (" chat_position_offset_y" , m_pChatOffsetY->GetText ());
@@ -4644,6 +4655,7 @@ void CSettings::SaveData()
46444655 // Interface
46454656 CVARS_SET (" server_can_flash_window" , m_pFlashWindow->GetSelected ());
46464657 CVARS_SET (" allow_tray_notifications" , m_pTrayBalloon->GetSelected ());
4658+ CVARS_SET (" show_time_in_chat" , m_pChatShowTimestamps->GetSelected ());
46474659
46484660 // Set our new skin last, as it'll destroy all our GUI
46494661 pItem = m_pInterfaceSkinSelector->GetSelectedItem ();
0 commit comments