summaryrefslogtreecommitdiff
path: root/scripts/slipro.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/slipro.lua')
-rwxr-xr-xscripts/slipro.lua34
1 files changed, 12 insertions, 22 deletions
diff --git a/scripts/slipro.lua b/scripts/slipro.lua
index 14b9107..ed4cd63 100755
--- a/scripts/slipro.lua
+++ b/scripts/slipro.lua
@@ -1,24 +1,12 @@
--- SLIPRO Lua Script v2.5
--- Copyright (c)2011-2013 by EK and Zappadoc - All Rights Reserved.
--- Use this script to build all functions associated with
+-- SLIPRO Lua Script v3
+-- Copyright (c)2012-2013 by Zappadoc - All Rights Reserved.
+-- this script builds all functions associated with
-- left and right panels of SLIPRO device
--- changed by Zappadoc - 2012-10-29
+-- last change by Zappadoc - 2013-02
-- ============================================================
-- Left and Right Panel functions
-- ============================================================
-function isAppIRacing(sim)
- if sim == "iRacingSim.exe" or sim == "iRacingSim64.exe" then
- return true
- end
- return false
-end
-function isAppRFactor(sim)
- if sim == "rFactor.exe" or sim == "rFactor2.exe" then
- return true
- end
- return false
-end
-- IN function of left panel
-- param: recieve from SLI Manager the current switch position
@@ -388,21 +376,23 @@ function rightDigitsEvent(swFunction)
if swValue == 4 then
lpt = GetPartialTimeInfo("currentpartial", sector)
elseif swValue == 5 then
- lpt = GetPartialTimeInfo("bestpartial", sector)
+ diffFlag = true
+ lpt = GetPartialTimeInfo("vsbestlap", sector)
elseif swValue == 6 then
- lpt = GetPartialTimeInfo("sessionbest", sector)
+ diffFlag = true
+ lpt = GetPartialTimeInfo("vsoptimallap", sector)
elseif swValue == 7 then
diffFlag = true
- lpt = GetPartialTimeInfo("diffbestpartial", sector)
+ lpt = GetPartialTimeInfo("vsoptimalsector", sector)
elseif swValue == 8 then
diffFlag = true
- lpt = GetPartialTimeInfo("diffsessionbest", sector)
+ lpt = GetPartialTimeInfo("vssessionbestlap", sector)
elseif swValue == 9 then
diffFlag = true
- lpt = GetPartialTimeInfo("diffoptimalpartial", sector)
+ lpt = GetPartialTimeInfo("vssessionoptimallap", sector)
elseif swValue == 10 then
diffFlag = true
- lpt = GetPartialTimeInfo("diffsessionoptimal", sector)
+ lpt = GetPartialTimeInfo("vssessionoptimalsector", sector)
end
else
lpt = 0.0