Skip to content

Commit

Permalink
Add TOLD data and remove event step debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
obfuscoder committed Nov 23, 2020
1 parent b74bdad commit 25eb2bc
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 21 deletions.
1 change: 0 additions & 1 deletion Mods/tech/mdc/export.lua
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,6 @@ function loadMdc()
end

LuaExportActivityNextEvent = function(current)
log("LuaExportActivityNextEvent")
local data = LoGetSelfData()
if data ~= nil then
if theRoutine == nil then
Expand Down
56 changes: 36 additions & 20 deletions Mods/tech/mdc/kneeboard/01.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 25eb2bc

Please sign in to comment.