From 65823d06257cc1a6312f9d92f225bbb875755026 Mon Sep 17 00:00:00 2001 From: Skull <86374920+skkuull@users.noreply.github.com> Date: Tue, 21 Jun 2022 19:30:26 +0300 Subject: [PATCH] shift+tab feature --- src/client/component/game_console.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/client/component/game_console.cpp b/src/client/component/game_console.cpp index ef8b5fda..9709d8e5 100644 --- a/src/client/component/game_console.cpp +++ b/src/client/component/game_console.cpp @@ -269,8 +269,17 @@ namespace game_console if (matches.size() > 24) { draw_hint_box(1, dvars::con_inputHintBoxColor->current.vector); - draw_hint_text(0, utils::string::va("%i matches (too many to show here)", matches.size()), + draw_hint_text(0, utils::string::va("%i matches (too many to show here). Press SHIFT + TAB to show them", matches.size()), dvars::con_inputDvarMatchColor->current.vector); + + if (game::playerKeys[0].keys[game::keyNum_t::K_SHIFT].down && game::playerKeys[0].keys[game::keyNum_t::K_TAB].down) + { + console::info("]%s\n", con.buffer); + for (int i = 0; i < matches.size(); i++) + { + console::info("\t%s\n", matches[i].name.data()); + } + } } else if (matches.size() == 1) {