Topic: Changing edge.png
Kusy Topic Opener |
Posted at: 2024-04-22, 22:10
Hello there! Can a world addon replace the 'edge.png' file from 'Widelands\data\world\pics'? Top Quote |
Nordfriese |
Posted at: 2024-04-22, 22:18
Hi, Top Quote |
Kusy Topic Opener |
Posted at: 2024-04-22, 22: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. Top Quote |
Kusy Topic Opener |
Posted at: 2024-05-12, 09: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. Top Quote |
Nordfriese |
Posted at: 2024-05-12, 10: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… Top Quote |
Nordfriese |
Posted at: 2024-05-12, 10:56
This was easy, PR is up: https://codeberg.org/wl/widelands/pulls/4814 Top Quote |
Kusy Topic Opener |
Posted at: 2024-05-12, 12:09
Awesome! Top Quote |