mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-03 12:01:20 +00:00
tunit_create: use type image icon if available
This commit is contained in:
parent
013acd316f
commit
6b3baa2a2b
@ -300,7 +300,7 @@ void tunit_create::list_item_clicked(twindow& window)
|
||||
u->genders().front());
|
||||
|
||||
find_widget<timage>(&window, "type_image", false)
|
||||
.set_label(u->image() + tc);
|
||||
.set_label((u->icon().empty() ? u->image() : u->icon()) + tc);
|
||||
|
||||
tlabel& u_name = find_widget<tlabel>(&window, "type_name", false);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user