geode icon indicating copy to clipboard operation
geode copied to clipboard

Image in LocalModInfoLayer doesn't scale to game graphics

Open Naxrin opened this issue 1 year ago • 4 comments

Geode Issue

  • [X] I confirm that this bug is NOT related to a mod but directly to Geode Loader itself.

Platform

Windows

SDK commit

2857ecf

Geode Version

v2.2.0 beta26

Mods Installed

Not related to this issue ig

Expected Behavior

I expect to add a title image for my self-made mod and the image perfectly fits the display like this: image

Actual Behavior

When it looks perfect in high graphics, it looks too giant in HD graphics and mobile: image

But if I resize the image to fit the hd graphics, it looks tiny in UHD.

Steps to Reproduce

As shown above. Any image can reproduce this.

Additional Information

There should be an auto-resize-fit-thing for images in LocalModInfoLayer

Naxrin avatar May 21 '24 15:05 Naxrin

Did you put the image in the resources folder?

If you want to put an image in about.md, you have to put the image in the resources folder, and then reference the image by putting, for example, ![Image](naxrin.rgb_icons/(image).png)

hiimjasmine00 avatar May 21 '24 19:05 hiimjasmine00

Did you put the image in the resources folder?

If you want to put an image in about.md, you have to put the image in the resources folder, and then reference the image by putting, for example, ![Image](naxrin.rgb_icons/(image).png)

ok it works thanks! I‘ve not ever noticed only images in resources folder scale to graphics, since many other mods directly put images in root directory But anyway, how can I put a link in about.md to make both in-game popup and mod desc in webpage can properly display the image? e.g.: image

Naxrin avatar May 22 '24 05:05 Naxrin

You can't, for now.

hiimjasmine00 avatar May 22 '24 14:05 hiimjasmine00