Skip to content

Commit

Permalink
KOTOR: Replace fnt_d16x16 with fnt_d16x16b for all widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
vkremianskii committed May 26, 2018
1 parent 1c635e0 commit 950d7c7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/engines/kotor/gui/chargen/chargenname.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ CharacterGenerationNameMenu::CharacterGenerationNameMenu(CharacterGenerationInfo
addBackground(kBackgroundTypeMenu);

_nameLabel = getLabel("NAME_BOX_EDIT");
_nameLabel->setFont("fnt_d16x16b");
_nameLabel->setText("_");

EventMan.enableTextInput(true);
Expand Down
2 changes: 0 additions & 2 deletions src/engines/kotor/gui/dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ DialogGUI::DialogGUI(bool k2)
lblMessage->setSize(w, rh);
lblMessage->setHorizontalTextAlign(Graphics::Aurora::kHAlignCenter);
lblMessage->setVerticalTextAlign(Graphics::Aurora::kVAlignBottom);
lblMessage->setFont("fnt_d16x16b");

WidgetListBox *lbReplies = getListBox("LB_REPLIES");
lbReplies->setItemSelectionEnabled(true);
Expand All @@ -75,7 +74,6 @@ DialogGUI::DialogGUI(bool k2)
++it) {
WidgetLabel *label = static_cast<WidgetLabel *>(*it);
label->enableHighlight();
label->setFont("fnt_d16x16b");
addWidget(label);
}
}
Expand Down
4 changes: 4 additions & 0 deletions src/engines/kotor/gui/widgets/kotorwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,10 @@ void KotORWidget::load(const Aurora::GFF3Struct &gff) {
Text text = createText(gff);

if (!text.font.empty()) {
// Font "fnt_d16x16" in KotOR is broken, replace it with
// "fnt_d16x16b" which is otherwise identical
if (text.font == "fnt_d16x16")
text.font = "fnt_d16x16b";
// Buttons in Jade are too small for their text
// If widget height is less than the font needs
// increase to font height and reposition
Expand Down

0 comments on commit 950d7c7

Please sign in to comment.