| 63 | } |
| 64 | |
| 65 | float fraction(const ScriptConsole::Layer& layer) |
| 66 | { |
| 67 | if (layer.total <= 0) { |
| 68 | return 0.0f; |
| 69 | } |
| 70 | return std::clamp((float)layer.done / (float)layer.total, 0.0f, 1.0f); |
| 71 | } |
| 72 | |
| 73 | std::string rightText(const ScriptConsole::Layer& layer) |
| 74 | { |