| 151 | } |
| 152 | |
| 153 | void GuiTextEditCtrl::execConsoleCallback() |
| 154 | { |
| 155 | // Execute the console command! |
| 156 | if ( mConsoleCommand[0] ) |
| 157 | { |
| 158 | char buf[16]; |
| 159 | dSprintf( buf, sizeof( buf ), "%d", getId() ); |
| 160 | Con::setVariable( "$ThisControl", buf ); |
| 161 | Con::evaluate( mConsoleCommand, false ); |
| 162 | } |
| 163 | |
| 164 | // Update the console variable: |
| 165 | if ( mConsoleVariable[0] ) |
| 166 | Con::setVariable( mConsoleVariable, mTextBuffer.getPtr8() ); |
| 167 | } |
| 168 | |
| 169 | void GuiTextEditCtrl::updateHistory( StringBuffer *inTxt, bool moveIndex ) |
| 170 | { |
nothing calls this directly
no test coverage detected