@@ -634,7 +634,7 @@ StyleFilters.triggers.args.location = ACH:Group(L["Location"], nil, 30, nil, fun
634
634
StyleFilters .triggers .args .location .args .map = ACH :Group (' ' , nil , 1 )
635
635
StyleFilters .triggers .args .location .args .map .inline = true
636
636
StyleFilters .triggers .args .location .args .map .args .mapIDEnabled = ACH :Toggle (L [" Use Map ID or Name" ], L [" If enabled, the style filter will only activate when you are in one of the maps specified in Map ID." ], 1 , nil , nil , 200 )
637
- StyleFilters .triggers .args .location .args .map .args .mapIDs = ACH :Input (L [" Add Map ID" ], nil , 2 , nil , nil , nil , function (_ , value ) local triggers = GetFilter (true ) triggers .location .mapIDs [value ] = true NP :ConfigureAll () end , function () local triggers = GetFilter (true ) return not triggers .location .mapIDEnabled end , nil , function (_ , value ) local triggers = GetFilter (true ) return not (strmatch (value , ' ^[%s%p]-$' ) or triggers .location .mapIDs [value ]) end )
637
+ StyleFilters .triggers .args .location .args .map .args .mapIDs = ACH :Input (L [" Add Map ID" ], nil , 2 , nil , nil , nil , function (_ , value ) local triggers = GetFilter (true ) triggers .location .mapIDs [value ] = true NP :ConfigureAll () end , function () local triggers = GetFilter (true ) return not triggers .location .mapIDEnabled end , nil , function (_ , value ) local triggers = GetFilter (true ) return not (strmatch (value , ' ^[%s%p]-$' ) or triggers .location .mapIDs [value ]) end )
638
638
StyleFilters .triggers .args .location .args .map .args .removeMapID = ACH :Select (L [" Remove Map ID" ], nil , 3 , removeLocationList , nil , nil , nil , function (_ , value ) local triggers = GetFilter (true ) triggers .location .mapIDs [value ] = nil NP :ConfigureAll () end , function () local triggers = GetFilter (true ) local ids = triggers .location .mapIDs return not (triggers .location .mapIDEnabled and ids and next (ids )) end )
639
639
640
640
StyleFilters .triggers .args .location .args .instance = ACH :Group (' ' , nil , 2 )
@@ -646,13 +646,13 @@ StyleFilters.triggers.args.location.args.instance.args.removeInstanceID = ACH:Se
646
646
StyleFilters .triggers .args .location .args .zoneName = ACH :Group (' ' , nil , 3 )
647
647
StyleFilters .triggers .args .location .args .zoneName .inline = true
648
648
StyleFilters .triggers .args .location .args .zoneName .args .zoneNamesEnabled = ACH :Toggle (L [" Use Zone Names" ], L [" If enabled, the style filter will only activate when you are in one of the zones specified in Add Zone Name." ], 1 , nil , nil , 200 )
649
- StyleFilters .triggers .args .location .args .zoneName .args .zoneNames = ACH :Input (L [" Add Zone Name" ], nil , 2 , nil , nil , nil , function (_ , value ) local triggers = GetFilter (true ) triggers .location .zoneNames [value ] = true NP :ConfigureAll () end , function () local triggers = GetFilter (true ) return not triggers .location .zoneNamesEnabled end , nil , function (_ , value ) local triggers = GetFilter (true ) return not (strmatch (value , ' ^[%s%p]-$' ) or triggers .location .zoneNames [value ]) end )
649
+ StyleFilters .triggers .args .location .args .zoneName .args .zoneNames = ACH :Input (L [" Add Zone Name" ], nil , 2 , nil , nil , nil , function (_ , value ) local triggers = GetFilter (true ) triggers .location .zoneNames [value ] = true NP :ConfigureAll () end , function () local triggers = GetFilter (true ) return not triggers .location .zoneNamesEnabled end , nil , function (_ , value ) local triggers = GetFilter (true ) return not (strmatch (value , ' ^[%s%p]-$' ) or triggers .location .zoneNames [value ]) end )
650
650
StyleFilters .triggers .args .location .args .zoneName .args .removeZoneName = ACH :Select (L [" Remove Zone Name" ], nil , 3 , removeLocationList , nil , nil , nil , function (_ , value ) local triggers = GetFilter (true ) triggers .location .zoneNames [value ] = nil NP :ConfigureAll () end , function () local triggers = GetFilter (true ) local zone = triggers .location .zoneNames return not (triggers .location .zoneNamesEnabled and zone and next (zone )) end )
651
651
652
652
StyleFilters .triggers .args .location .args .subZoneName = ACH :Group (' ' , nil , 4 )
653
653
StyleFilters .triggers .args .location .args .subZoneName .inline = true
654
654
StyleFilters .triggers .args .location .args .subZoneName .args .subZoneNamesEnabled = ACH :Toggle (L [" Use Subzone Names" ], L [" If enabled, the style filter will only activate when you are in one of the subzones specified in Add Subzone Name." ], 1 , nil , nil , 200 )
655
- StyleFilters .triggers .args .location .args .subZoneName .args .subZoneNames = ACH :Input (L [" Add Subzone Name" ], nil , 2 , nil , nil , nil , function (_ , value ) local triggers = GetFilter (true ) triggers .location .subZoneNames [value ] = true NP :ConfigureAll () end , function () local triggers = GetFilter (true ) return not triggers .location .subZoneNamesEnabled end )
655
+ StyleFilters .triggers .args .location .args .subZoneName .args .subZoneNames = ACH :Input (L [" Add Subzone Name" ], nil , 2 , nil , nil , nil , function (_ , value ) local triggers = GetFilter (true ) triggers .location .subZoneNames [value ] = true NP :ConfigureAll () end , function () local triggers = GetFilter (true ) return not triggers .location .subZoneNamesEnabled end )
656
656
StyleFilters .triggers .args .location .args .subZoneName .args .removeSubZoneName = ACH :Select (L [" Remove Subzone Name" ], nil , 3 , removeLocationList , nil , nil , nil , function (_ , value ) local triggers = GetFilter (true ) triggers .location .subZoneNames [value ] = nil NP :ConfigureAll () end , function () local triggers = GetFilter (true ) local zone = triggers .location .subZoneNames return not (triggers .location .subZoneNamesEnabled and zone and next (zone )) end )
657
657
658
658
StyleFilters .triggers .args .location .args .btns = ACH :Group (L [" Add Current" ], nil , 5 )
0 commit comments