Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #include "cbase.h"
  7. #include "confirm_delete_dialog.h"
  8. #include "vgui_controls/TextImage.h"
  9. #include "econ_controls.h"
  10. // memdbgon must be the last include file in a .cpp file!!!
  11. #include <tier0/memdbgon.h>
  12. //-----------------------------------------------------------------------------
  13. // Purpose:
  14. //-----------------------------------------------------------------------------
  15. CConfirmDeleteDialog::CConfirmDeleteDialog( vgui::Panel *parent )
  16. : BaseClass(parent)
  17. {
  18. }
  19. //-----------------------------------------------------------------------------
  20. // Purpose:
  21. //-----------------------------------------------------------------------------
  22. void CConfirmDeleteDialog::ApplySchemeSettings( vgui::IScheme *pScheme )
  23. {
  24. BaseClass::ApplySchemeSettings( pScheme );
  25. // Set the X to be bright, and the rest dull
  26. if ( m_pConfirmButton )
  27. {
  28. m_pConfirmButton->SetText( "#X_DeleteConfirmButton" );
  29. SetXToRed( m_pConfirmButton );
  30. }
  31. }