Page 1 of 1

Lua and non Lua build menus

Posted: 11 Aug 2007, 19:57
by CaptainMaim
I was wondering, why isn't it optional to disable the default LUA menu structure so it uses the original non-LUA structure? I'd like to be able to use either rather than forced to use one.

Posted: 11 Aug 2007, 20:15
by trepan
It is possible, it simply hasn't been written
(assuming you mean the control panel grid dimensions, textured buttons, etc...)

Posted: 12 Aug 2007, 08:32
by CaptainMaim
yeah, it's like this. My Dad really likes the non LUA build menus and such, but there's too many cool things about LUA scripts to ignore using them. But he can't stand the default LUA build menus. He says "they're too small" or whatever. I was wondering if a the default and or bigger build menu buttons could be made?

Posted: 12 Aug 2007, 08:51
by KDR_11k
Can't you just modify the ctrlpanel.txt to your liking?

Posted: 12 Aug 2007, 20:49
by CaptainMaim
Not really no.

Posted: 12 Aug 2007, 20:57
by MelTraX
Why not?

In case you don't know, there are 2 ctrlpanel.txt files.. One is directly in the Spring directory (used when LuaUI is disabled); the other is in LuaUI and used when LuaUI is enabled..

Posted: 13 Aug 2007, 00:02
by trepan
In the interim ... edit the last line of $SPRING/LuaUI/layout.lua:

change "LayoutButtons = DefaultHandler" to "LayoutButtons = nil"

You can also remove the first active line in main.lua to avoid reloading
ctrlpanel.txt with the one in LuaUI/ (in case you also want to use the
standard ctrlpanel.txt settings without editting the LuaUI version).

Posted: 13 Aug 2007, 00:44
by CaptainMaim
Thanks! That did the trick.