mirror of
https://github.com/weyne85/DML.git
synced 2025-10-29 16:57:49 +00:00
Version 0.9995
radio menu, delicates
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user