| 49 | } |
| 50 | |
| 51 | void ScriptConsole::reset(void) |
| 52 | { |
| 53 | std::lock_guard<std::mutex> lock(mMutex); |
| 54 | mLines.clear(); |
| 55 | mOpen = false; |
| 56 | mGen++; |
| 57 | for (auto& layer : mLayers) { |
| 58 | layer = Layer{}; |
| 59 | } |
| 60 | mIo = Layer{}; |
| 61 | mIoNote.clear(); |
| 62 | mIoRateDone = 0; |
| 63 | mLayerSlots = 0; |
| 64 | mIoSlot = false; |
| 65 | } |
| 66 | |
| 67 | // Stops a bar without emptying it: what it reached, and what it was working |
| 68 | // on, stay on screen. Only a rate is dropped — nothing is moving any more. |