[Solved]How to print frame size?

Place to get help with not working mods / modding interface.
Post Reply
User avatar
WIZ4
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Apr 07, 2016 1:36 pm
Contact:

[Solved]How to print frame size?

Post 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 612 times
but I get the error that "LuaStyle doesn't contain key width".
Am I doing something wrong, or is it just impossible?
Last edited by WIZ4 on Tue Jan 15, 2019 7:04 pm, edited 1 time in total.
My native language is russian. Sorry if my messages are difficult to read.

User avatar
WIZ4
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Apr 07, 2016 1:36 pm
Contact:

Re: [Solved]How to print frame size?

Post 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.
My native language is russian. Sorry if my messages are difficult to read.

Post Reply

Return to “Modding help”