Applying LuaGuiElement.style.height/width = 128 for example does not make a 128x128 element. Reproduce
Code: Select all
/c
game.player.gui.center.clear()
x = game.player.gui.center.add{type='frame'}
x.style.width = 128
x.style.height=128
Why?
I'm trying to get a screen-sized window but using display_resolution makes it larger than the screen.
Code: Select all
/c
game.player.gui.center.clear()
x = game.player.gui.center.add{type='frame'}
x.style.width = game.player.display_resolution.width
x.style.height=game.player.display_resolution.height