geode-sdk / geode

The ultimate Geometry Dash modding framework
https://geode-sdk.org/
Boost Software License 1.0
626 stars 109 forks source link

Image in LocalModInfoLayer doesn't scale to game graphics #779

Open Naxrin opened 1 month ago

Naxrin commented 1 month ago

Geode Issue

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

hiimjustin000 commented 1 month ago

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)

Naxrin commented 1 month ago

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

hiimjustin000 commented 1 month ago

You can't, for now.