Working on UI, navigation, minor fixing
This commit is contained in:
1 parent
a0550daf4b
commit
03681bedaf
38 files changed
+8303
-772
No files matched your search
@@ -216,7 +216,7 @@ void DialogueOverlay::drawDialogue(Renderer& renderer, const PresentationModel&
|
||||
}
|
||||
|
||||
const float bodyTextScale = 1.0f;
|
||||
const float bodyMaxWidthPx = W - nameX - 48.f-x;
|
||||
const float bodyMaxWidthPx = W - nameX - 48.f-x-60.f;
|
||||
|
||||
const std::string wrappedBody = wrapTextToWidth(model.visibleText, *bodyRenderer, bodyMaxWidthPx, bodyTextScale);
|
||||
bodyRenderer->drawText(wrappedBody, bodyX, bodyY, bodyTextScale, false, { 1.0f, 1.0f, 1.0f, 1.0f });
|
||||
|
||||
Reference in new issue
Block a user