Skip to content

Commit d0f8d09

Browse files
Add files via upload
Latest script with lighting functions
1 parent c9e4625 commit d0f8d09

File tree

1 file changed

+28
-4
lines changed

1 file changed

+28
-4
lines changed

TolissCustom.lua

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
-- TolissXKeyPadHelper
22
-- Copyright (C) 2025 Ian Oliver
3-
-- Version 1.2
3+
-- Version 1.3
44

55
-- This program is free software: you can redistribute it and/or modify
66
-- it under the terms of the GNU General Public License as published by
@@ -16,7 +16,7 @@
1616
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
1717

1818

19-
print("[ *** IAN TolissXKeyPadHelper - Version 1.1 - 1 August 2025" )
19+
print("[ *** IAN TolissXKeyPadHelper - Version 1.2 - 5 August 2025" )
2020
print("[ *** - aircraft type is... ]" )
2121
print(PLANE_ICAO)
2222

@@ -301,7 +301,12 @@ function FloodLightsBright()
301301
end
302302

303303
function BrightnessNight()
304-
print("[ *** ian/BrightnessNight ]" )
304+
print("[ *** ian/BrightnessNight ]" )
305+
306+
307+
command_once("toliss_airbus/lightcommands/DomeLightDown") -- run twice to ensure dome lights off
308+
command_once("toliss_airbus/lightcommands/DomeLightDown")
309+
305310

306311
FloodLightsOff()
307312
CabinLightsMED()
@@ -310,6 +315,20 @@ function BrightnessNight()
310315
DUBright()
311316
end
312317

318+
function BrightnessNightDomeDim()
319+
print("[ *** ian/BrightnessNightDomeDim ]" )
320+
321+
command_once("toliss_airbus/lightcommands/DomeLightDown") -- run twice to ensure dome lights off
322+
command_once("toliss_airbus/lightcommands/DomeLightDown")
323+
command_once("toliss_airbus/lightcommands/DomeLightUp") -- and once up to ensure dome lights are dim
324+
325+
FloodLightsOff()
326+
CabinLightsMED()
327+
OHPDim()
328+
IntegralDim()
329+
DUBright()
330+
end
331+
313332
function PanelLightingOff()
314333
print("[ *** ian/PanelLightingOff]" )
315334

@@ -338,9 +357,12 @@ function RapidPowerOn()
338357
command_once("toliss_airbus/eleccommands/Bat2Toggle")
339358
command_once("toliss_airbus/eleccommands/ExtPowToggle")
340359
command_once("toliss_airbus/lightcommands/FSBSignOn")
341-
command_once("toliss_airbus/lightcommands/NSSignUp") -- run twice to makesure Wifi is OFF
360+
command_once("toliss_airbus/lightcommands/NSSignUp") -- run twice to make sure Wifi is OFF
342361
command_once("toliss_airbus/lightcommands/NSSignUp")
343362

363+
command_once("toliss_airbus/lightcommands/DomeLightUp") -- run twice to make sure dome is bright
364+
command_once("toliss_airbus/lightcommands/DomeLightUp")
365+
344366
XPLMSetDatai( crewoxy, 1 )
345367
fuelohparray[0]=1
346368
fuelohparray[1]=1
@@ -476,6 +498,8 @@ create_command("ian/RapidPowerOn", "Make all display units dim", "RapidPowerOn()
476498
create_command("ian/RapidPowerOff", "Make all display units dim", "RapidPowerOff()", "", "")
477499

478500
create_command("ian/BrightnessNight", "Make all display units dim", "BrightnessNight()", "", "")
501+
create_command("ian/BrightnessNightDomeDim", "Make all display units dim", "BrightnessNightDomeDim()", "", "")
502+
479503
create_command("ian/PanelLightingOff", "Make all display units dim", "PanelLightingOff()", "", "")
480504

481505
create_command("ian/WXRadarToggle", "Make all display units dim", "WXRadarToggle()", "", "")

0 commit comments

Comments
 (0)