How can i make spring use my ctrlpanel.txt from startup ?
Right now i have to type /ctrlpanel at start of each game.
automatically use ctrlpanel.txt
Moderator: Moderators
Re: automatically use ctrlpanel.txt
from LuaUI/main.lua:
my guess is place ctrlpanel.txt into the LuaUI folder replacing the default one or uncomment this line whichever works
Code: Select all
Spring.SendCommands({"ctrlpanel " .. LUAUI_DIRNAME .. "ctrlpanel.txt"})
Re: automatically use ctrlpanel.txt
Thanks,
Moving ctrlpanel.txt from .spring to spring/LuaUI did the trick.
Moving ctrlpanel.txt from .spring to spring/LuaUI did the trick.