如何禁用窗口大小调整并仅设置全屏模式
我是第一次进行modpack,我希望能够在窗口中禁用调整大小,并且游戏只能在全屏幕中使用,因为当窗口调整大小时,我的游戏菜单会完全失去其形状,如果有人帮助我,我真的很感激。
I am doing a modpack for the first time and I would like to be able to disable the resizing in the window and that the game can only be used in full screen because when the window is resized my game menu loses its shape completely, if someone helps me I would really appreciate it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我有点麻烦地了解强迫全屏的目的。正如Siphalor所说,我认为这不是一个很好的解决方案。
我猜您的问题是您的按钮的尺寸固定,因此当您放大窗口时,它们不合适。
解决方案可能是管理按钮的大小,与窗口的大小成比例,而不是在按钮上放置固定尺寸并阻止窗口大小的任何更改。
I’m having a little trouble understanding the purpose here of forcing fullscreen. As Siphalor said, I don’t think it’s a good solution.
I guess the problem you have is that your buttons have a fixed size, so when you enlarge the window, they don’t fit.
A solution could be to manage the size of the buttons in proportion to the size of the window and not to put a fixed size on the buttons and block any change in the size of the window.