diff options
author | BLooperZ | 2019-08-01 00:21:07 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2019-11-18 02:02:14 +0100 |
commit | 83285746b0cbaa7223592fa008af22b31484e0d6 (patch) | |
tree | 098748cb88cfc67cd39982e0f4fabaee69ec03df /engines/toon/toon.cpp | |
parent | fd7efe4fb6fd07b4c3831cbe0082027b9782f919 (diff) | |
download | scummvm-rg350-83285746b0cbaa7223592fa008af22b31484e0d6.tar.gz scummvm-rg350-83285746b0cbaa7223592fa008af22b31484e0d6.tar.bz2 scummvm-rg350-83285746b0cbaa7223592fa008af22b31484e0d6.zip |
TOON: add support for cutscene subtitles
Diffstat (limited to 'engines/toon/toon.cpp')
-rw-r--r-- | engines/toon/toon.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/engines/toon/toon.cpp b/engines/toon/toon.cpp index 46132a4fd2..4d2578ee59 100644 --- a/engines/toon/toon.cpp +++ b/engines/toon/toon.cpp @@ -3290,7 +3290,18 @@ void ToonEngine::drawConversationLine() { if (_currentTextLine && _showConversationText) { _fontRenderer->setFontColorByCharacter(_currentTextLineCharacterId); _fontRenderer->setFont(_currentFont); - _fontRenderer->renderMultiLineText(_currentTextLineX, _currentTextLineY, _currentTextLine, 0); + _fontRenderer->renderMultiLineText(_currentTextLineX, _currentTextLineY, _currentTextLine, 0, *_mainSurface); + } +} + +void ToonEngine::drawCustomText(int16 x, int16 y, char* line, Graphics::Surface* frame, char color) { + if (line) { + byte col = color; // 0xce + _fontRenderer->setFontColor(0, col, col); + //_fontRenderer->setFontColorByCharacter(_currentTextLineCharacterId); + _gameState->_currentScrollValue = 0; + _fontRenderer->setFont(_currentFont); + _fontRenderer->renderMultiLineText(x, y, line, 0, *frame); } } |