@@ -37,6 +37,7 @@ CHudSubOptions::CHudSubOptions(vgui2::Panel *parent)
3737 m_pJumpSpeedCrossCheckbox = new CCvarCheckButton (this , " JumpSpeedCrossCheckbox" , " #BHL_AdvOptions_HUD_JumpSpeedCross" , " hud_jumpspeed_below_cross" );
3838
3939 m_pDeathnoticeVGui = new CCvarCheckButton (this , " DeathnoticeCheckbox" , " #BHL_AdvOptions_HUD_Deathnotice" , " hud_deathnotice_vgui" );
40+ m_pCustomHudVGui = new CCvarCheckButton (this , " CustomHudCheckbox" , " #BHL_AdvOptions_HUD_CustomHud" , " hud_custom" );
4041
4142 m_pTimerBox = new CCVarComboBox (this , " TimerBox" , " hud_timer" );
4243 m_pTimerBox->AddItem (" #BHL_AdvOptions_Hud_Timer0" , " 0" );
@@ -67,6 +68,7 @@ CHudSubOptions::CHudSubOptions(vgui2::Panel *parent)
6768 {
6869 m_pRenderCheckbox->SetEnabled (false );
6970 m_pDeathnoticeVGui->SetEnabled (false );
71+ m_pCustomHudVGui->SetEnabled (false );
7072 }
7173}
7274
@@ -93,6 +95,11 @@ void CHudSubOptions::OnResetData()
9395 else
9496 m_pDeathnoticeVGui->SetSelected (false );
9597
98+ if (m_pCustomHudVGui->IsEnabled ())
99+ m_pCustomHudVGui->ResetData ();
100+ else
101+ m_pCustomHudVGui->SetSelected (false );
102+
96103 m_pTimerBox->ResetData ();
97104 m_pScaleBox->ResetData ();
98105}
@@ -116,6 +123,9 @@ void CHudSubOptions::OnApplyChanges()
116123 if (m_pDeathnoticeVGui->IsEnabled ())
117124 m_pDeathnoticeVGui->ApplyChanges ();
118125
126+ if (m_pCustomHudVGui->IsEnabled ())
127+ m_pCustomHudVGui->ApplyChanges ();
128+
119129 m_pTimerBox->ApplyChanges ();
120130 m_pScaleBox->ApplyChanges ();
121131}
0 commit comments