Version 0.9995

radio menu, delicates
This commit is contained in:
Christian Franz
2022-06-09 08:33:51 +02:00
parent ca1bbd8e66
commit 1e5cb8d35e
12 changed files with 495 additions and 26 deletions

View File

@@ -5,7 +5,7 @@
-- Copyright (c) 2021, 2022 by Christian Franz and cf/x AG
--
cfxZones = {}
cfxZones.version = "2.7.8"
cfxZones.version = "2.7.9"
--[[-- VERSION HISTORY
- 2.2.4 - getCoalitionFromZoneProperty
- getStringFromZoneProperty
@@ -78,6 +78,8 @@ cfxZones.version = "2.7.8"
- doPollFlag supports 'pulse'
- pulseFlag
- unpulse
- 2.7.9 - getFlagValue QoL for <none>
- setFlagValue QoL for <none>
--]]--
@@ -1244,6 +1246,11 @@ function cfxZones.setFlagValue(theFlag, theValue, theZone)
return
end
-- some QoL: detect "<none>"
if dcsCommon.containsString(theFlag, "<none>") then
trigger.action.outText("+++Zone: warning - setFlag has '<none>' flag name in zone <" .. zoneName .. ">", 30)
end
-- now do wildcard processing. we have alphanumeric
if dcsCommon.stringStartsWith(theFlag, "*") then
theFlag = zoneName .. theFlag
@@ -1271,6 +1278,11 @@ function cfxZones.getFlagValue(theFlag, theZone)
return tonumber(trigger.misc.getUserFlag(theFlag))
end
-- some QoL: detect "<none>"
if dcsCommon.containsString(theFlag, "<none>") then
trigger.action.outText("+++Zone: warning - getFlag has '<none>' flag name in zone <" .. zoneName .. ">", 30)
end
-- now do wildcard processing. we have alphanumeric
if dcsCommon.stringStartsWith(theFlag, "*") then
theFlag = zoneName .. theFlag