| 1790 | } |
| 1791 | |
| 1792 | void CMessageQueue::DrawLabel(float x, float y, float* clr, const char* msg, ...) |
| 1793 | { |
| 1794 | va_list args; |
| 1795 | va_start(args, msg); |
| 1796 | char buffer[4096]; |
| 1797 | cry_vsprintf(buffer, msg, args); |
| 1798 | |
| 1799 | gEnv->pRenderer->Draw2dLabel((float)x, (float)y, 1.f, clr, false, "%s", buffer); |
| 1800 | ITextModeConsole* t = gEnv->pSystem->GetITextModeConsole(); |
| 1801 | if (t) |
| 1802 | t->PutText((int)(x / 4 - 2), (int)(y / 10 - 1), buffer); |
| 1803 | |
| 1804 | va_end(args); |
| 1805 | } |
| 1806 | |
| 1807 | const char* CMessageQueue::DebugMessageForHandle(SSendableHandle hdl) |
| 1808 | { |
no test coverage detected