Topic: Changing edge.png
Kusy![]() Topic Opener |
Posted at: 2024-04-22, 23:10
Hello there! Can a world addon replace the 'edge.png' file from 'Widelands\data\world\pics'? ![]() ![]() |
Nordfriese![]() |
Posted at: 2024-04-22, 23:18
Hi, ![]() ![]() |
Kusy![]() Topic Opener |
Posted at: 2024-04-22, 23:25
Thanks for the express reply! Yeah, if it's possible to change it with a UI addon it's fine for me. Personally I feel it would be more at home in world addons, but then again I can understand why it's considered part of the UI. ![]() ![]() |
Kusy![]() Topic Opener |
Posted at: 2024-05-12, 10:32
Ok, so simply adding the edge.png into a theme wad doesn't seem to work. Interestingly, it works on every other image in that folder. I also tried to replace it in the data folder of Widelands and that does work, so it's not the image that's the problem. ![]() ![]() |
Nordfriese![]() |
Posted at: 2024-05-12, 11:41
Oh, I checked the code and it seems that this one file is being loaded directly from the filesystem, bypassing the theme lookup performed for other images. I'll make a branch to fix this… ![]() ![]() |
Nordfriese![]() |
Posted at: 2024-05-12, 11:56
This was easy, PR is up: https://codeberg.org/wl/widelands/pulls/4814 ![]() ![]() |
Kusy![]() Topic Opener |
Posted at: 2024-05-12, 13:09
Awesome! ![]() ![]() |