mirror of
https://github.com/weyne85/DML.git
synced 2025-10-29 16:57:49 +00:00
Version 0.9985
CivAir QoL fixes in ssbClient, cloneZone
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
unitZone={}
|
||||
unitZone.version = "1.2.0"
|
||||
unitZone.version = "1.2.1"
|
||||
unitZone.verbose = false
|
||||
unitZone.ups = 1
|
||||
unitZone.requiredLibs = {
|
||||
@@ -12,6 +12,7 @@ unitZone.requiredLibs = {
|
||||
1.1.0 - DML flag integration
|
||||
- method/uzMethod
|
||||
1.2.0 - uzOn?, uzOff?, triggerMethod
|
||||
1.2.1 - uzDirect
|
||||
|
||||
--]]--
|
||||
|
||||
@@ -96,6 +97,11 @@ function unitZone.createUnitZone(theZone)
|
||||
end
|
||||
end
|
||||
|
||||
-- uzDirect
|
||||
if cfxZones.hasProperty(theZone, "uzDirect") then
|
||||
theZone.uzDirect = cfxZones.getStringFromZoneProperty(theZone, "uzDirect", "*<none>")
|
||||
end
|
||||
|
||||
-- on/off flags
|
||||
theZone.uzPaused = false -- we are turned on
|
||||
theZone.triggerOnFlag = cfxZones.getStringFromZoneProperty(theZone, "uzOn?", "*<none1>")
|
||||
@@ -260,6 +266,15 @@ function unitZone.update()
|
||||
unitZone.bangState(aZone, newState)
|
||||
aZone.lastStatus = newState
|
||||
end
|
||||
|
||||
-- output direct state
|
||||
if aZone.uzDirect then
|
||||
if newState then
|
||||
cfxZones.setFlagValueMult(aZone.uzDirect, 1, aZone)
|
||||
else
|
||||
cfxZones.setFlagValueMult(aZone.uzDirect, 0, aZone)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user