From b840691b01e2e084e0f78f7289fe49110811bded Mon Sep 17 00:00:00 2001 From: Jordy Ruiz Date: Mon, 17 Dec 2018 13:40:23 +0100 Subject: [PATCH] Comment out unused code --- src/game/client/components/menus.cpp | 3 ++- src/game/client/components/menus.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/game/client/components/menus.cpp b/src/game/client/components/menus.cpp index e3f8652cd..c5396c776 100644 --- a/src/game/client/components/menus.cpp +++ b/src/game/client/components/menus.cpp @@ -289,6 +289,7 @@ int CMenus::DoButton_GridHeader(const void *pID, const char *pText, int Checked, return UI()->DoButtonLogic(pID, pText, Checked, pRect); } +/* int CMenus::DoButton_GridHeaderIcon(CButtonContainer *pBC, int ImageID, int SpriteID, const CUIRect *pRect, int Corners) { float Seconds = 0.6f; // 0.6 seconds for fade @@ -310,9 +311,9 @@ int CMenus::DoButton_GridHeaderIcon(CButtonContainer *pBC, int ImageID, int Spri return UI()->DoButtonLogic(pBC->GetID(), "", false, pRect); } +*/ int CMenus::DoButton_CheckBox_Common(const void *pID, const char *pText, const char *pBoxText, const CUIRect *pRect, bool Checked) -//void CMenus::ui_draw_checkbox_common(const void *id, const char *text, const char *boxtext, const CUIRect *r, const void *extra) { RenderTools()->DrawUIRect(pRect, vec4(0.0f, 0.0f, 0.0f, 0.25f), CUI::CORNER_ALL, 5.0f); diff --git a/src/game/client/components/menus.h b/src/game/client/components/menus.h index f895b4655..86cf0ee50 100644 --- a/src/game/client/components/menus.h +++ b/src/game/client/components/menus.h @@ -73,7 +73,7 @@ private: int DoIcon(int ImageId, int SpriteId, const CUIRect *pRect); void DoIconColor(int ImageId, int SpriteId, const CUIRect *pRect, const vec4& Color); int DoButton_GridHeader(const void *pID, const char *pText, int Checked, CUI::EAlignment Align, const CUIRect *pRect); - int DoButton_GridHeaderIcon(CButtonContainer *pBC, int ImageID, int SpriteID, const CUIRect *pRect, int Corners); + // int DoButton_GridHeaderIcon(CButtonContainer *pBC, int ImageID, int SpriteID, const CUIRect *pRect, int Corners); //static void ui_draw_browse_icon(int what, const CUIRect *r); //static void ui_draw_grid_header(const void *id, const char *text, int checked, const CUIRect *r, const void *extra);