Lua and non Lua build menus

Lua and non Lua build menus

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

Post Reply
CaptainMaim
Posts: 265
Joined: 04 Sep 2005, 01:25

Lua and non Lua build menus

Post 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.
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

It is possible, it simply hasn't been written
(assuming you mean the control panel grid dimensions, textured buttons, etc...)
CaptainMaim
Posts: 265
Joined: 04 Sep 2005, 01:25

Post 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?
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Can't you just modify the ctrlpanel.txt to your liking?
CaptainMaim
Posts: 265
Joined: 04 Sep 2005, 01:25

Post by CaptainMaim »

Not really no.
MelTraX
Posts: 470
Joined: 02 Jan 2007, 16:18

Post 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..
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post 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).
CaptainMaim
Posts: 265
Joined: 04 Sep 2005, 01:25

Post by CaptainMaim »

Thanks! That did the trick.
Post Reply

Return to “General Discussion”