Skip to content

Commit

Permalink
KOTOR: Add alignment centered only vertical (type 10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nostritius authored and DrMcCoy committed Nov 7, 2017
1 parent 0ccfdd5 commit 08e09fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/engines/kotor/gui/widgets/kotorwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,10 @@ KotORWidget::Text KotORWidget::createText(const Aurora::GFF3Struct &gff) {
text.text = TalkMan.getString(text.strRef);

// TODO: KotORWidget::getText(): Alignment
if (alignment == 18) {
if (alignment == 10) {
text.halign = 0.5f;
text.valign = 1.0f;
} else if (alignment == 18) {
text.halign = 0.5f;
text.valign = 0.5f;
}
Expand Down

0 comments on commit 08e09fa

Please sign in to comment.