Skip to content

Commit

Permalink
xrGame/ui/UIMMShniaga.cpp: removed old commented CS code (#382)
Browse files Browse the repository at this point in the history
It's not needed because we have SetVTextAlignment
  • Loading branch information
Xottab-DUTY committed Feb 12, 2024
1 parent dc51ba9 commit ad6d9bc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/xrGame/ui/UIMMShniaga.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,6 @@ void CUIMMShniaga::CreateList(xr_vector<CUIStatic*>& lst, CUIXml& xml_doc, LPCST
st->SetFont(pF);
st->SetTextComplexMode(false);
st->SetTextST(xml_doc.ReadAttrib("btn", i, "caption"));

// float font_height = st->GetFont()->GetHeight();
// UI().ClientToScreenScaledHeight(font_height);

//. st->SetTextOffset (0, (button_height-font_height)/2.0f);
st->SetTextColor(color);
st->SetTextAlignment(CGameFont::alCenter);
st->SetVTextAlignment(valCenter);
Expand Down

0 comments on commit ad6d9bc

Please sign in to comment.