如何将pygame_gui UI按钮上使用的图像缩放到其他屏幕

时间:2020-05-06 14:40:38

标签: python pygame

我正在使用pygame_gui作为pygame项目的GUI。 https://pygame-gui.readthedocs.io/en/latest/quick_start.html 我在pygame_gui中使用UIButtons,我根据屏幕分辨率大小设置了它们的尺寸。我必须在pygame_gui按钮上使用图像,但是当在不同屏幕上使用时图像不会随按钮缩放。 https://pygame-gui.readthedocs.io/en/latest/theme_reference/theme_button.html#images 如何缩放按钮上的图像以及按钮大小? 有其他替代方法吗?

0 个答案:

没有答案