private void RefreshIcons() { if (EquipGlobal.IsWearing(EquipLibType.ELT.Weapon)) { this.SetIcon("BtnWeapon", EquipmentManager.Instance.dicEquips.get_Item(EquipmentManager.Instance.WeaponLib.wearingId).cfgId); } else { this.CloseIcon("BtnWeapon"); } if (EquipGlobal.IsWearing(EquipLibType.ELT.Waist)) { this.SetIcon("BtnWaistPendant", EquipmentManager.Instance.dicEquips.get_Item(EquipmentManager.Instance.WaistLib.wearingId).cfgId); } else { this.CloseIcon("BtnWaistPendant"); } if (EquipGlobal.IsWearing(EquipLibType.ELT.Necklace)) { this.SetIcon("BtnNecklace", EquipmentManager.Instance.dicEquips.get_Item(EquipmentManager.Instance.NecklaceLib.wearingId).cfgId); } else { this.CloseIcon("BtnNecklace"); } if (EquipGlobal.IsWearing(EquipLibType.ELT.Shirt)) { this.SetIcon("BtnCloth", EquipmentManager.Instance.dicEquips.get_Item(EquipmentManager.Instance.ClothesLib.wearingId).cfgId); } else { this.CloseIcon("BtnCloth"); } if (EquipGlobal.IsWearing(EquipLibType.ELT.Pant)) { this.SetIcon("BtnTrousers", EquipmentManager.Instance.dicEquips.get_Item(EquipmentManager.Instance.PantsLib.wearingId).cfgId); } else { this.CloseIcon("BtnTrousers"); } if (EquipGlobal.IsWearing(EquipLibType.ELT.Shoe)) { this.SetIcon("BtnShoe", EquipmentManager.Instance.dicEquips.get_Item(EquipmentManager.Instance.ShoesLib.wearingId).cfgId); } else { this.CloseIcon("BtnShoe"); } }
private void RefreshIcons() { if (EquipGlobal.IsWearing(EquipLibType.ELT.Weapon)) { this.SetIcon(this.BtnWeapon.get_gameObject(), EquipGlobal.GetEquipCfgIDByPos(EquipLibType.ELT.Weapon)); } else { this.CloseIcon(this.BtnWeapon.get_gameObject()); } if (EquipGlobal.IsWearing(EquipLibType.ELT.Waist)) { this.SetIcon(this.BtnWeapon.get_gameObject(), EquipGlobal.GetEquipCfgIDByPos(EquipLibType.ELT.Waist)); } else { this.CloseIcon(this.BtnWaistPendant.get_gameObject()); } if (EquipGlobal.IsWearing(EquipLibType.ELT.Necklace)) { this.SetIcon(this.BtnWeapon.get_gameObject(), EquipGlobal.GetEquipCfgIDByPos(EquipLibType.ELT.Necklace)); } else { this.CloseIcon(this.BtnNecklace.get_gameObject()); } if (EquipGlobal.IsWearing(EquipLibType.ELT.Shirt)) { this.SetIcon(this.BtnWeapon.get_gameObject(), EquipGlobal.GetEquipCfgIDByPos(EquipLibType.ELT.Shirt)); } else { this.CloseIcon(this.BtnCloth.get_gameObject()); } if (EquipGlobal.IsWearing(EquipLibType.ELT.Pant)) { this.SetIcon(this.BtnWeapon.get_gameObject(), EquipGlobal.GetEquipCfgIDByPos(EquipLibType.ELT.Pant)); } else { this.CloseIcon(this.BtnTrousers.get_gameObject()); } if (EquipGlobal.IsWearing(EquipLibType.ELT.Shoe)) { this.SetIcon(this.BtnWeapon.get_gameObject(), EquipGlobal.GetEquipCfgIDByPos(EquipLibType.ELT.Shoe)); } else { this.CloseIcon(this.BtnShoe.get_gameObject()); } if (EquipGlobal.IsWearing(EquipLibType.ELT.Weapon)) { this.SetIcon(this.BtnWeapon.get_gameObject(), EquipGlobal.GetEquipCfgIDByPos(EquipLibType.ELT.Weapon)); } else { this.CloseIcon(this.BtnPopular.get_gameObject()); } if (EquipGlobal.IsWearing(EquipLibType.ELT.Weapon)) { this.SetIcon(this.BtnWeapon.get_gameObject(), EquipGlobal.GetEquipCfgIDByPos(EquipLibType.ELT.Weapon)); } else { this.CloseIcon(this.BtnWing.get_gameObject()); } }