| 86 | } |
| 87 | |
| 88 | bool CommandRegion::update_tip_text(string& tip) |
| 89 | { |
| 90 | if (m_cursor == NO_CURSOR) |
| 91 | return false; |
| 92 | |
| 93 | unsigned int item_idx = cursor_index(); |
| 94 | if (item_idx >= m_items.size() || m_items[item_idx].empty()) |
| 95 | return false; |
| 96 | |
| 97 | const command_type cmd = (command_type) m_items[item_idx].idx; |
| 98 | tip = make_stringf("[L-Click] %s", |
| 99 | get_command_description(cmd, true).c_str()); |
| 100 | |
| 101 | if (command_to_key(cmd) != '\0') |
| 102 | { |
| 103 | tip += " (%)"; |
| 104 | insert_commands(tip, { cmd }); |
| 105 | } |
| 106 | |
| 107 | // tip += "\n[R-Click] Describe"; |
| 108 | |
| 109 | return true; |
| 110 | } |
| 111 | |
| 112 | bool CommandRegion::update_alt_text(string &alt) |
| 113 | { |
nothing calls this directly
no test coverage detected