Skip to content

Commit

Permalink
FFMiscOptions: Remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamWillden committed Nov 1, 2020
1 parent 846ed97 commit 3775f11
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 53 deletions.
33 changes: 0 additions & 33 deletions cl_dll/ff/vgui/ff_miscoptions.cpp
Expand Up @@ -38,18 +38,6 @@ CFFMiscOptions::CFFMiscOptions(Panel *parent, char const *panelName, const char
//-----------------------------------------------------------------------------
void CFFMiscOptions::Apply()
{
/*if ( m_pHintsConVar )
m_pHintsConVar->SetValue( m_pHints->IsSelected() );
if ( m_pAutoRLConVar )
m_pAutoRLConVar->SetValue( m_pARCheck->IsSelected() );
if ( m_pAutoKillConVar )
m_pAutoKillConVar->SetValue( m_pAutoKillCheck->IsSelected() );
if ( m_pBlurConVar )
m_pBlurConVar->SetValue( m_pBlurCheck->IsSelected() );*/

KeyValues *kvOptions = new KeyValues("Options");
kvOptions->LoadFromFile(*pFilesystem, m_szSourceFile);

Expand Down Expand Up @@ -320,27 +308,6 @@ void CFFMiscOptions::Load()
slider->SetValue(pCvar->GetInt());
}
}


/*if ( !m_pHintsConVar )
m_pHintsConVar = cvar->FindVar( "cl_hints" );
if ( m_pHintsConVar )
m_pHints->SetSelected( m_pHintsConVar->GetBool() );
if ( !m_pAutoRLConVar )
m_pAutoRLConVar = cvar->FindVar( "cl_autoreload" );
if ( m_pAutoRLConVar )
m_pARCheck->SetSelected( m_pAutoRLConVar->GetBool() );
if ( !m_pAutoKillConVar )
m_pAutoKillConVar = cvar->FindVar( "cl_classautokill" );
if ( m_pAutoKillConVar )
m_pAutoKillCheck->SetSelected( m_pAutoKillConVar->GetBool() );
if ( !m_pBlurConVar )
m_pBlurConVar = cvar->FindVar( "cl_dynamicblur" );
if ( m_pBlurConVar )
m_pBlurCheck->SetSelected( m_pBlurConVar->GetBool() );*/
}

int CFFMiscOptions::GetComboBoxOption(ComboBox *cb, const char *value, const char *keyname)
Expand Down
20 changes: 0 additions & 20 deletions cl_dll/ff/vgui/ff_miscoptions.h
Expand Up @@ -46,26 +46,6 @@ char m_szSourceFile[128];
// Purpose: Ask the person who made the damn function!
//-----------------------------------------------------------------------------
int GetComboBoxOption(ComboBox *cb, const char *value, const char *keyname = "value");
private:

//-----------------------------------------------------------------------------
// Purpose: Catch checkbox updating -- not needed, yet
//-----------------------------------------------------------------------------
//MESSAGE_FUNC_PARAMS(OnUpdateCheckbox, "CheckButtonChecked", data)
//{
//}

CheckButton *m_pHints; // The enable/disable hints check box
ConVar *m_pHintsConVar; // Pointer to the cl_hints convar

CheckButton *m_pARCheck; // The enable/disable autoreload check box
ConVar *m_pAutoRLConVar; // Pointer to the cl_autoreload convar

CheckButton *m_pAutoKillCheck; // The enable/disable classautokill check box
ConVar *m_pAutoKillConVar; // Pointer to the cl_classautokill convar

CheckButton *m_pBlurCheck; // The enable/disable speed blur check box
ConVar *m_pBlurConVar; // Pointer to the cl_dynamicblur convar
};

#endif

0 comments on commit 3775f11

Please sign in to comment.