Skip to content

Commit

Permalink
Use the static image lookup for char_icons
Browse files Browse the repository at this point in the history
  • Loading branch information
in1tiate committed May 10, 2024
1 parent f2cf702 commit a1ec230
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/aocharbutton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void AOCharButton::set_passworded() { ui_passworded->show(); }
void AOCharButton::set_image(QString p_character)
{
QString image_path = ao_app->get_image_suffix(
ao_app->get_character_path(p_character, "char_icon"));
ao_app->get_character_path(p_character, "char_icon"), true);

this->setText("");

Expand Down
6 changes: 4 additions & 2 deletions src/charselect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,10 @@ void Courtroom::character_loading_finished()
// create the character tree item
QTreeWidgetItem *treeItem = new QTreeWidgetItem();
treeItem->setText(0, char_list.at(n).name);
treeItem->setIcon(0, QIcon(ao_app->get_image_suffix(
ao_app->get_character_path(char_list.at(n).name, "char_icon"))));
treeItem->setIcon(
0, QIcon(ao_app->get_image_suffix(
ao_app->get_character_path(char_list.at(n).name, "char_icon"),
true)));
treeItem->setText(1, QString::number(n));
// category logic
QTreeWidgetItem *category;
Expand Down

0 comments on commit a1ec230

Please sign in to comment.