| 111 | |
| 112 | |
| 113 | void GuiConsoleTextCtrl::onPreRender() |
| 114 | { |
| 115 | if ( mConsoleExpression.isNotEmpty() ) |
| 116 | { |
| 117 | Con::evaluatef( "$guiConsoleTextCtrlTemp = %s;", mConsoleExpression.c_str() ); |
| 118 | |
| 119 | //Fixes a bug with the above not always grabbing the console text. |
| 120 | mResult = Con::getVariable("$guiConsoleTextCtrlTemp"); |
| 121 | |
| 122 | // Of the resulting string we will be printing, |
| 123 | // Find the number of lines and length of each. |
| 124 | mProfile->mFont->wrapString( mResult, U32_MAX, mStartLineOffset, mLineLen ); |
| 125 | } |
| 126 | else |
| 127 | mResult = String::EmptyString; |
| 128 | |
| 129 | calcResize(); |
| 130 | } |
| 131 | |
| 132 | void GuiConsoleTextCtrl::onRender( Point2I offset, const RectI &updateRect ) |
| 133 | { |
nothing calls this directly
no test coverage detected