Skip to content

Commit

Permalink
improve game icon glow
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseAaronLopezGarcia committed Jul 6, 2023
1 parent be42a64 commit 32fd0db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion extras/menus/arkMenu/src/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ void Menu::draw(bool selected){
e_icon->draw_scale(xoffset+2, curentry_yoffset+5+anim*40, 0.75f, 0.75f);
}
else {
common::printText(xoffset, curentry_yoffset+(height/2), "...", WHITE_COLOR, 10.f, 1);
int cw = common::calcTextWidth("...", 1.f, 0);
float factor = float(e_icon->getWidth())/float(cw);
common::printText(xoffset, curentry_yoffset+(height/2), "...", WHITE_COLOR, factor, 1, NULL, 0);
e_icon->draw(xoffset+5, curentry_yoffset+5+anim*40);
}
}
Expand Down

0 comments on commit 32fd0db

Please sign in to comment.