Original code
Code: Select all
elseif(keypress == "L") then
--[[ store currently selected object in log table ]]
table.insert(starlog, gObject)
nme = gObject:name()
HeaderDisplay("Adding '" .. nme .. "' to sensor log", 4, false, 0, false)
handled = true
elseif(keypress == "l") then
--[[ toggles Sensor and Sensor log display ]]
if(gDisplayLog == true ) then
gDisplayLog = false
gConsoleType = sensorType
gConsoleName = "SENSORS"
else
gDisplayLog = true
gConsoleType = sensorLogType
gConsoleName = "SENSOR LOG"
end
handled = true
My fix
Code: Select all
elseif(keypress == "S") then
--[[ store currently selected object in log table ]]
table.insert(starlog, gObject)
nme = gObject:name()
HeaderDisplay("Adding '" .. nme .. "' to sensor log", 4, false, 0, false)
handled = true
elseif(keypress == "s") then
--[[ toggles Sensor and Sensor log display ]]
if(gDisplayLog == true ) then
gDisplayLog = false
gConsoleType = sensorType
gConsoleName = "SENSORS"
else
gDisplayLog = true
gConsoleType = sensorLogType
gConsoleName = "SENSOR LOG"
end
handled = true
I do not have the coding skills to create a better solution, does anyone else
have any ideas (using the "alt" key?)
This is such a great script that I hate to see any conflicts with the main Celestia program.
ps. I think that my remapping is logical and easy to use, I would be glad to post it if anyone is interested.