Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for #799 which is mainly about character alignment in the AH-64D … #802

Merged
merged 1 commit into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Aircraft AH-64D Plugin/Gauges/CMWS/CMWSDisplay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ public CMWSDisplay()
_displayBackgroundPanel.DrawBorder = false;

AddCMWSPart("Threat Display", new Point(326d, 29d), new Size(110d, 110d), _interfaceDeviceName, "CMWS Threat Display");
AddTextDisplay("Line 1", new Point(206d, 29d), new Size(144d, 55d), _interfaceDeviceName, "Line 1", 26, "F OUT", TextHorizontalAlignment.Left, "");
AddTextDisplay("Line 2", new Point(206d, 84d), new Size(144d, 55d), _interfaceDeviceName, "Line 2", 26, "C OUT", TextHorizontalAlignment.Left, "");

AddTextDisplay("Line 1", new Point(206d, 29d), new Size(180d, 55d), _interfaceDeviceName, "Line 1", 26, "FOUT", TextHorizontalAlignment.Left, @"0={;6=|;9=}");
AddTextDisplay("Line 2", new Point(206d, 84d), new Size(180d, 55d), _interfaceDeviceName, "Line 2", 26, "COUT", TextHorizontalAlignment.Left, @"0={;6=|;9=}");
_frameGlassPanel = AddPanel("CMWS Glass", new Point(206, 29), new Size(230d, 110d), "{AH-64D}/Images/MFD/MFD_glass.png", _interfaceDeviceName);
_frameGlassPanel.Opacity = 0.3d;
_frameGlassPanel.DrawBorder = false;
Expand Down
4 changes: 2 additions & 2 deletions Aircraft AH-64D Plugin/Interfaces/ExportFunctions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ function driver.processLowImportance(mainPanelDevice)
li = helios.parseIndication(24) -- 24 CMWS Unit
if li then
if li["#83#"] and li["#83#"] ~= "" then -- Chaff & Flares
helios.send(2082, string.format("%1s %s", helios.ensureString(li["#83#"]), helios.ensureString(li["#85#"])))
helios.send(2083, string.format("%1s %s", helios.ensureString(li["#84#"]), helios.ensureString(li["#86#"])))
helios.send(2082, string.format("%1s%-3s", helios.ensureString(li["#83#"]), helios.ensureString(li["#85#"])))
helios.send(2083, string.format("%1s%-3s", helios.ensureString(li["#84#"]), helios.ensureString(li["#86#"])))
-- The CMWS flags are held in variables which either are declared or not, and when the exist, they are an empty string
helios.send(2084, string.format("%0.1f", li["#87#"] and 1 or 0)) -- Ready (this seems to have an inverse which is #89#)
helios.send(2085, string.format("%0.1f", li["#88#"] and 1 or 0)) -- Dispense (this seems to have an inverse which is #90#)
Expand Down
Binary file modified Helios/Fonts/A-10C_ALQ_213.ttf
Binary file not shown.