|
|
@ -3641,6 +3641,9 @@ namespace olc |
|
|
|
if (c == '\n') |
|
|
|
if (c == '\n') |
|
|
|
{ |
|
|
|
{ |
|
|
|
planningMarker.x = 0; planningMarker.y += 8.0f; |
|
|
|
planningMarker.x = 0; planningMarker.y += 8.0f; |
|
|
|
|
|
|
|
drawingMarker.x+=lettersWidth; |
|
|
|
|
|
|
|
maxWidth=std::max(maxWidth,drawingMarker.x); |
|
|
|
|
|
|
|
drawingMarker.x = 0; drawingMarker.y += 8.0f; |
|
|
|
} |
|
|
|
} |
|
|
|
else if (c == ' ') |
|
|
|
else if (c == ' ') |
|
|
|
{ |
|
|
|
{ |
|
|
@ -3757,6 +3760,12 @@ namespace olc |
|
|
|
if (c == '\n') |
|
|
|
if (c == '\n') |
|
|
|
{ |
|
|
|
{ |
|
|
|
planningMarker.x = 0; planningMarker.y += 8.0f * scale; |
|
|
|
planningMarker.x = 0; planningMarker.y += 8.0f * scale; |
|
|
|
|
|
|
|
for(PixelGameEngine::StringDecalData&letter:letters){ |
|
|
|
|
|
|
|
DrawPartialSprite(vi2d(pos + drawingMarker), fontRenderable.Sprite(), vi2d(letter.sourcePos), vi2d(letter.sourceSize), scale, Sprite::Flip::NONE,letter.col); |
|
|
|
|
|
|
|
drawingMarker.x += 8.0f * scale; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
letters.clear(); |
|
|
|
|
|
|
|
drawingMarker.x = 0; drawingMarker.y += 8.0f * scale; |
|
|
|
} |
|
|
|
} |
|
|
|
else if (c == ' ') |
|
|
|
else if (c == ' ') |
|
|
|
{ |
|
|
|
{ |
|
|
@ -3888,6 +3897,9 @@ namespace olc |
|
|
|
if (c == '\n') |
|
|
|
if (c == '\n') |
|
|
|
{ |
|
|
|
{ |
|
|
|
planningMarker.x = 0; planningMarker.y += 8.0f; |
|
|
|
planningMarker.x = 0; planningMarker.y += 8.0f; |
|
|
|
|
|
|
|
drawingMarker.x+=lettersWidth; |
|
|
|
|
|
|
|
maxWidth=std::max(maxWidth,drawingMarker.x); |
|
|
|
|
|
|
|
drawingMarker.x=0;drawingMarker.y+=8.0f; |
|
|
|
} |
|
|
|
} |
|
|
|
else if (c == ' ') |
|
|
|
else if (c == ' ') |
|
|
|
{ |
|
|
|
{ |
|
|
@ -3978,6 +3990,12 @@ namespace olc |
|
|
|
if (c == '\n') |
|
|
|
if (c == '\n') |
|
|
|
{ |
|
|
|
{ |
|
|
|
planningMarker.x = 0; planningMarker.y += 8.0f * scale; |
|
|
|
planningMarker.x = 0; planningMarker.y += 8.0f * scale; |
|
|
|
|
|
|
|
for(PixelGameEngine::StringDecalData&letter:letters){ |
|
|
|
|
|
|
|
DrawPartialSprite(vi2d(pos + drawingMarker), GetFontSprite(), vi2d(letter.sourcePos), vi2d(letter.sourceSize), scale,Sprite::Flip::NONE, letter.col); |
|
|
|
|
|
|
|
drawingMarker.x += float(vFontSpacing[letter.c - 32].y) * scale; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
letters.clear(); |
|
|
|
|
|
|
|
drawingMarker.x = 0; drawingMarker.y += 8.0f * scale; |
|
|
|
} |
|
|
|
} |
|
|
|
else if (c == ' ') |
|
|
|
else if (c == ' ') |
|
|
|
{ |
|
|
|
{ |
|
|
|