Page 1 of 1

[Solved]How to print frame size?

Posted: Tue Jan 15, 2019 6:51 pm
by WIZ4
I created a frame:

Code: Select all

	local frame = player.gui.center.add { type = "frame", name = "frame",direction="horizontal"} 
	frame.style.width = 800
	frame.style.height = 500
and I want to read it width:
Screenshot_1.jpg
Screenshot_1.jpg (782.9 KiB) Viewed 822 times
but I get the error that "LuaStyle doesn't contain key width".
Am I doing something wrong, or is it just impossible?

Re: [Solved]How to print frame size?

Posted: Tue Jan 15, 2019 6:58 pm
by WIZ4
Oh, I did not notice that it is available only for writing. However, I solved the problem by print maximal_width or minimal_width. But I hope 0.17 it will allow.