Skip to content

Commit ed8d2e2

Browse files
committed
Add kneeboard pages for presets and navaids
1 parent 11e0b41 commit ed8d2e2

File tree

15 files changed

+83
-38
lines changed

15 files changed

+83
-38
lines changed

Mods/tech/mdc/kneeboard/01.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- 1
1+
-- 01 - lineup/loadout/procedures
22
local lfs = require('lfs')
33
local dataPath = lfs.writedir() .. 'Data\\mdc\\'
44
local modPath = lfs.writedir() .. 'Mods\\tech\\mdc\\'

Mods/tech/mdc/kneeboard/02.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- 2
1+
-- 02 - flight/comms plan
22
local lfs = require('lfs')
33
local dataPath = lfs.writedir() .. 'Data\\mdc\\'
44
local modPath = lfs.writedir() .. 'Mods\\tech\\mdc\\'

Mods/tech/mdc/kneeboard/03.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- 3
1+
-- 03 - notes
22
local lfs = require('lfs')
33
local dataPath = lfs.writedir() .. 'Data\\mdc\\'
44
local modPath = lfs.writedir() .. 'Mods\\tech\\mdc\\'

Mods/tech/mdc/kneeboard/04.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- 4
1+
-- 04 - support
22
local lfs = require('lfs')
33
local dataPath = lfs.writedir() .. 'Data\\mdc\\'
44
local modPath = lfs.writedir() .. 'Mods\\tech\\mdc\\'

Mods/tech/mdc/kneeboard/05.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- 4
1+
-- 05 - other flights
22
local lfs = require('lfs')
33
local dataPath = lfs.writedir() .. 'Data\\mdc\\'
44
local modPath = lfs.writedir() .. 'Mods\\tech\\mdc\\'

Mods/tech/mdc/kneeboard/06.lua

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,20 @@
1-
-- 5
1+
-- 06 - presets
22
local lfs = require('lfs')
33
local dataPath = lfs.writedir() .. 'Data\\mdc\\'
44
local modPath = lfs.writedir() .. 'Mods\\tech\\mdc\\'
55

66
dofile(modPath..'mdc.lua')
77
dofile(dataPath..'mdc.lua')
88

9-
headline(0, "RAMROD")
9+
headline(0, "PRESETS")
1010

11-
columns = 10
12-
for i = 1, string.len(mdc.ramrod) do
13-
head(1, i-1, i-1)
14-
cell(2, i-1, string.sub(mdc.ramrod, i, i))
15-
end
16-
17-
headline(3, "DRYAD")
18-
19-
columns = 11
20-
head(4, 0, "")
21-
for i, header in ipairs(mdc.dryad.header) do
22-
head(4, i, i - 1)
23-
end
11+
columns = 6
12+
head(1, 0, "#")
13+
head(1, 1, "FREQ")
14+
multihead(1, 2, 1, 5, "NAME")
2415

25-
for i, row in ipairs(mdc.dryad.rows) do
26-
head(4 + i, 0, row.header)
27-
for j, col in ipairs(row.columns) do
28-
cell(4 + i, j, col)
29-
end
16+
for i, preset in ipairs(mdc.presets) do
17+
cell(1 + i, 0, i)
18+
cell(1 + i, 1, preset.freq)
19+
multicell(1 + i, 2, 1 + i, 5, preset.name)
3020
end

Mods/tech/mdc/kneeboard/07.lua

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,30 @@
1-
-- 7
1+
-- 07 - crypto
22
local lfs = require('lfs')
33
local dataPath = lfs.writedir() .. 'Data\\mdc\\'
44
local modPath = lfs.writedir() .. 'Mods\\tech\\mdc\\'
55

66
dofile(modPath..'mdc.lua')
77
dofile(dataPath..'mdc.lua')
88

9-
plate(dataPath .. '/plates/' .. mdc.plates.departure.ad)
9+
headline(0, "RAMROD")
10+
11+
columns = 10
12+
for i = 1, string.len(mdc.ramrod) do
13+
head(1, i-1, i-1)
14+
cell(2, i-1, string.sub(mdc.ramrod, i, i))
15+
end
16+
17+
headline(3, "DRYAD")
18+
19+
columns = 11
20+
head(4, 0, "")
21+
for i, header in ipairs(mdc.dryad.header) do
22+
head(4, i, i - 1)
23+
end
24+
25+
for i, row in ipairs(mdc.dryad.rows) do
26+
head(4 + i, 0, row.header)
27+
for j, col in ipairs(row.columns) do
28+
cell(4 + i, j, col)
29+
end
30+
end

Mods/tech/mdc/kneeboard/08.lua

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,25 @@
1-
-- 7
1+
-- 08 - navaids
22
local lfs = require('lfs')
33
local dataPath = lfs.writedir() .. 'Data\\mdc\\'
44
local modPath = lfs.writedir() .. 'Mods\\tech\\mdc\\'
55

66
dofile(modPath..'mdc.lua')
77
dofile(dataPath..'mdc.lua')
88

9-
plate(dataPath .. '/plates/' .. mdc.plates.departure.procedure)
9+
headline(0, "NAVAIDS")
10+
11+
columns = 12
12+
13+
head(1, 0, "ID")
14+
multihead(1, 1, 1, 4, "NAME")
15+
head(1, 5, "TCN")
16+
multihead(1, 6, 1, 10, "POSITION")
17+
head(1, 11, "ELEV")
18+
19+
for i, item in ipairs(mdc.navaids) do
20+
cell(1 + i, 0, item.id)
21+
multicell(1 + i, 1, 1 + i, 4, item.name)
22+
cell(1 + i, 5, item.tcn)
23+
multicell(1 + i, 6, 1 + i, 10, item.pos)
24+
cell(1 + i, 11, item.elev)
25+
end

Mods/tech/mdc/kneeboard/09.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
-- 7
1+
-- 09 - departure ad
22
local lfs = require('lfs')
33
local dataPath = lfs.writedir() .. 'Data\\mdc\\'
44
local modPath = lfs.writedir() .. 'Mods\\tech\\mdc\\'
55

66
dofile(modPath..'mdc.lua')
77
dofile(dataPath..'mdc.lua')
88

9-
plate(dataPath .. '/plates/' .. mdc.plates.recovery.ad)
9+
plate(dataPath .. '/plates/' .. mdc.plates.departure.ad)

Mods/tech/mdc/kneeboard/10.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
-- 7
1+
-- 10 - departure procedure
22
local lfs = require('lfs')
33
local dataPath = lfs.writedir() .. 'Data\\mdc\\'
44
local modPath = lfs.writedir() .. 'Mods\\tech\\mdc\\'
55

66
dofile(modPath..'mdc.lua')
77
dofile(dataPath..'mdc.lua')
88

9-
plate(dataPath .. '/plates/' .. mdc.plates.recovery.procedure)
9+
plate(dataPath .. '/plates/' .. mdc.plates.departure.procedure)

0 commit comments

Comments
 (0)