public void RemveNewItem(FashionSubType type) { if (type == FashionSubType.None) { return; } List <PItem> equip = FashionShow(type, newProp); RemoveItem(equip); NewHintShow(); }
public bool TypeHint(FashionSubType type) { List <PItem> equip = FashionShow(type, newProp); if (equip == null) { return(false); } else { return(equip.Count > 0 ? true : false); } }
private void SetDisableChildren(FashionSubType type) { var list = Module_Cangku.instance.FashionShow(type); if (list == null) { return; } for (int i = 0; i < node.childCount; i++) { var c = node.GetChild(i); if (list.Contains(c.name)) { c.SafeSetActive(false); } } }
private List <PItem> FashionShow(FashionSubType type, List <PItem> newProp) { List <PItem> equip = new List <PItem>(); for (int i = 0; i < newProp.Count; i++) { PropItemInfo p = newProp[i]?.GetPropItem(); if (p == null || !p.IsValidVocation(modulePlayer.proto)) { continue; } if (p.itemType != PropType.FashionCloth) { continue; } if ((int)type == p.subType) { equip.Add(newProp[i]); } } return(equip); }
public List <string> FashionShow(FashionSubType type) { if (type == FashionSubType.TwoPieceSuit || type == FashionSubType.FourPieceSuit) { return(null); } List <string> nameList = new List <string>(); for (int i = 0; i < m_allFashion.Count; i++) { PropItemInfo p = m_allFashion[i]; if (p == null || !p.IsValidVocation(modulePlayer.proto) || p.mesh == null || p.mesh.Length <= 0) { continue; } if (p.itemType != PropType.FashionCloth || (int)type != p.subType) { continue; } nameList.Add(p.mesh[0]); } return(nameList); }
public BindNodeInfo GetNode(FashionSubType type) { var idx = (int)type; return(bindNodes == null || idx < 0 || idx >= bindNodes.Length ? null : bindNodes[idx]); }