| 6617 | } |
| 6618 | |
| 6619 | void CEditor::RenderPressedKeys(CUIRect View) |
| 6620 | { |
| 6621 | if(!g_Config.m_EdShowkeys) |
| 6622 | return; |
| 6623 | |
| 6624 | Ui()->MapScreen(); |
| 6625 | CTextCursor Cursor; |
| 6626 | Cursor.SetPosition(vec2(View.x + 10, View.y + View.h - 24 - 10)); |
| 6627 | Cursor.m_FontSize = 24.0f; |
| 6628 | |
| 6629 | int NKeys = 0; |
| 6630 | for(int i = 0; i < KEY_LAST; i++) |
| 6631 | { |
| 6632 | if(Input()->KeyIsPressed(i)) |
| 6633 | { |
| 6634 | if(NKeys) |
| 6635 | TextRender()->TextEx(&Cursor, " + ", -1); |
| 6636 | TextRender()->TextEx(&Cursor, Input()->KeyName(i), -1); |
| 6637 | NKeys++; |
| 6638 | } |
| 6639 | } |
| 6640 | } |
| 6641 | |
| 6642 | void CEditor::RenderSavingIndicator(CUIRect View) |
| 6643 | { |
nothing calls this directly
no test coverage detected