| | |
| | | /// <summary> |
| | | /// 获取逻辑列表 |
| | | /// </summary> |
| | | public static void GetLogicList(bool needRefresh = false)//增加强制刷新 |
| | | public static void GetLogicList() |
| | | { |
| | | if (Logic.LogicList.Count != 0 || !needRefresh) |
| | | if (Logic.LogicList.Count != 0) |
| | | { |
| | | //自动化列表为0才去获取自动化列表; |
| | | return; |
| | |
| | | //2-功能图标 |
| | | //3-云端图标 |
| | | //4-场景图标 |
| | | //5-地理围栏 |
| | | for (int i = 0; i < logic.input.Count; i++) |
| | | { |
| | | if (logic.input[i] == null) |
| | |
| | | |
| | | } |
| | | break; |
| | | case 8: |
| | | { |
| | | iconInt = 5; |
| | | |
| | | } |
| | | break; |
| | | case 10: |
| | | { |
| | | iconInt = 4; |
| | | |
| | | } |
| | | break; |
| | | |
| | | } |
| | | |
| | | if (!iconIntValue.Contains(iconInt)) |
| | |
| | | strIcon = "LogicIcon/selectTheScene.png"; |
| | | } |
| | | break; |
| | | case 5: |
| | | { |
| | | |
| | | strIcon = "LogicIcon/selectlocation.png"; |
| | | } |
| | | break; |
| | | case 11: |
| | | { |
| | | //分割条件和目标的图标 |