widelands / wl_addons_server

Provides the add-ons server and all add-ons for the Widelands game.
https://www.widelands.org
Other
6 stars 4 forks source link

Some Add-ons show wrong images in Installed and Browse tab #152

Closed bunnybot closed 10 months ago

bunnybot commented 10 months ago

frankystoneMirrored from Codeberg Created on Thu Jan 25 10:10:04 CET 2024 by frankystone


Just noticed this... mainly add-ons provided by <@>Nordfriese show wrong images in Browse and Installed tab:

addons_images.png

From my understanding the add-ons type image (Script, Mapset, Theme, ...) should be shown there, not the image of the add-on? If so those images should be changed to prevent confusion.

bunnybot commented 10 months ago

NordfrieseMirrored from Codeberg On Thu Jan 25 10:49:37 CET 2024, Benedikt Straub (Nordfriese) wrote:


The big space on the left is for the add-on's own icon. If the add-on has no icon then the category image is used as fallback. The category itself is already displayed on the right next to the version string.

bunnybot commented 10 months ago

frankystoneMirrored from Codeberg On Thu Jan 25 16:17:26 CET 2024, (frankystone) wrote:


Hm, is there something special about such images? I saw you have two images icon.png and icon32.png but icon.png isn't referenced in your add-on.

I have one image, e.g. height_tools.png, in the subfolder /img which is 34x34 pixels. It is shown in the toolbar dropdown list and referenced in init.lua.

To get this image in the "Installed"-tab of odd-ons i have tried several things, e.g. rename it to icon32.png make it 32x32 pixels and store it in the base folder, with adapted reference, but no success. Should this work locally at all?

bunnybot commented 10 months ago

NordfrieseMirrored from Codeberg On Thu Jan 25 17:30:40 CET 2024, Benedikt Straub (Nordfriese) wrote:


The add-on directory may additionally contain an optional PNG file icon.png which will be shown in the add-ons manager. This image should be square and not larger than 64×64 pixels. If it is not present, the add-on’s category’s representative icon will be used instead. https://www.widelands.org/documentation/add-ons/

bunnybot commented 10 months ago

frankystoneMirrored from Codeberg On Thu Jan 25 17:33:18 CET 2024, (frankystone) wrote:


Oh… thanks!