From 25eb2bc09632f76f73b784949a28ed17fd40d1a0 Mon Sep 17 00:00:00 2001 From: Obfuscoder Date: Mon, 23 Nov 2020 19:25:50 +0100 Subject: [PATCH] Add TOLD data and remove event step debug log --- Mods/tech/mdc/export.lua | 1 - Mods/tech/mdc/kneeboard/01.lua | 56 ++++++++++++++++++++++------------ 2 files changed, 36 insertions(+), 21 deletions(-) diff --git a/Mods/tech/mdc/export.lua b/Mods/tech/mdc/export.lua index 3e58100..ced77e7 100644 --- a/Mods/tech/mdc/export.lua +++ b/Mods/tech/mdc/export.lua @@ -557,7 +557,6 @@ function loadMdc() end LuaExportActivityNextEvent = function(current) - log("LuaExportActivityNextEvent") local data = LoGetSelfData() if data ~= nil then if theRoutine == nil then diff --git a/Mods/tech/mdc/kneeboard/01.lua b/Mods/tech/mdc/kneeboard/01.lua index 073166f..8835f94 100644 --- a/Mods/tech/mdc/kneeboard/01.lua +++ b/Mods/tech/mdc/kneeboard/01.lua @@ -75,27 +75,43 @@ multicell(15, 10, 15, 11, mdc.loadout.chf) multicell(16, 10, 16, 11, mdc.loadout.flr) multicell(17, 10, 17, 11, mdc.loadout.fuel) -columns = 11 -headline(19, "AIRBASES") - +columns = 6 +headline(19, "TOLD") head(20, 0, "") -multihead(20, 1, 20, 3, "NAME") -head(20, 4, "TCN") -head(20, 5, "ATIS") -head(20, 6, "GND") -head(20, 7, "TWR") -head(20, 8, "RWY") -head(20, 9, "ELEV") -head(20, 10, "ILS") +head(20, 1, "TAKEOFF") +head(20, 2, "TARGET") +head(20, 3, "JOKER") +head(20, 4, "BINGO") +head(20, 5, "LAND") + +head(21, 0, "FUEL") +cell(21, 1, mdc.told.fuel.takeoff) +cell(21, 2, mdc.told.fuel.target) +cell(21, 3, mdc.told.fuel.joker) +cell(21, 4, mdc.told.fuel.bingo) +cell(21, 5, mdc.told.fuel.land) + +columns = 11 +headline(23, "AIRBASES") + +head(24, 0, "") +multihead(24, 1, 24, 3, "NAME") +head(24, 4, "TCN") +head(24, 5, "ATIS") +head(24, 6, "GND") +head(24, 7, "TWR") +head(24, 8, "RWY") +head(24, 9, "ELEV") +head(24, 10, "ILS") for i, airbase in ipairs(mdc.airbases) do - head(20+i, 0, airbase.type) - multicell(20+i, 1, 20+i, 3, airbase.name) - cell(20+i, 4, airbase.tcn) - cell(20+i, 5, airbase.atis) - cell(20+i, 6, airbase.ground) - cell(20+i, 7, airbase.tower) - cell(20+i, 8, airbase.runway) - cell(20+i, 9, airbase.elevation) - cell(20+i, 10, airbase.ils) + head(24+i, 0, airbase.type) + multicell(24+i, 1, 24+i, 3, airbase.name) + cell(24+i, 4, airbase.tcn) + cell(24+i, 5, airbase.atis) + cell(24+i, 6, airbase.ground) + cell(24+i, 7, airbase.tower) + cell(24+i, 8, airbase.runway) + cell(24+i, 9, airbase.elevation) + cell(24+i, 10, airbase.ils) end