NScumm.Scumm.ScummEngine.NewLine C# (CSharp) Метод

NewLine() приватный Метод

private NewLine ( ) : bool
Результат bool
        bool NewLine()
        {
            _nextLeft = _string[0].Position.X;
            if (_charset.Center)
            {
                _nextLeft -= _charset.GetStringWidth(0, _charsetBuffer, _charsetBufPos) / 2;
                if (_nextLeft < 0)
                    _nextLeft = Game.Version >= 6 ? _string[0].Position.X : 0;
            }

            if (_game.Version == 0)
            {
                return false;
            }
            else if (_game.Platform != Platform.FMTowns && _string[0].Height != 0)
            {
                _nextTop += _charset.GetFontHeight();
            }
            else
            {
                bool useCJK = UseCjkMode;
                // SCUMM5 FM-Towns doesn't use the height of the ROM font here.
//                if (_game.Platform == Platform.FMTowns && Game.Version == 5)
//                    _useCJKMode = false;
                _nextTop += _charset.GetFontHeight();
                UseCjkMode = useCJK;
            }

            if (_game.Version > 3)
            {
                // FIXME: is this really needed?
                _charset.DisableOffsX = true;
            }

            return true;
        }
ScummEngine