public static InventoryManager.INVENTORY_TYPE GetInventoryType(EquipSetInfo setInfo, int index) { switch (index) { default: { EquipItemInfo equipItemInfo = setInfo.item[index]; if (equipItemInfo != null) { int equipmentTypeIndex = UIBehaviour.GetEquipmentTypeIndex(equipItemInfo.tableData.type); return((InventoryManager.INVENTORY_TYPE)(equipmentTypeIndex + 1)); } return(InventoryManager.INVENTORY_TYPE.ONE_HAND_SWORD); } case 3: return(InventoryManager.INVENTORY_TYPE.ARMOR); case 4: return(InventoryManager.INVENTORY_TYPE.HELM); case 5: return(InventoryManager.INVENTORY_TYPE.ARM); case 6: return(InventoryManager.INVENTORY_TYPE.LEG); } }
public void SetEquipSet(EquipSetInfo equipSet, int setNo) { if (!object.ReferenceEquals(equipSet, null)) { List <CharaInfo.EquipItem> equips = equipSet.ConvertSelfEquipSetItemList(setNo, true); SetEquipSet(equips, true); } }
public EquipSetInfo SwapArmorAndHelm() { EquipSetInfo equipSetInfo = new EquipSetInfo(item, name, showHelm); equipSetInfo.item[3] = item[4]; equipSetInfo.item[4] = item[3]; return(equipSetInfo); }
private void OnQuery_NON_ABILITY() { EquipSetInfo equipSetInfo = new EquipSetInfo(selectEquipSetData.equipSetInfo.item, selectEquipSetData.equipSetInfo.name, selectEquipSetData.equipSetInfo.showHelm); equipSetInfo.item[selectEquipSetData.index] = EquipItem; GameSection.ChangeEvent("ABILITY", new object[2] { equipSetInfo, MonoBehaviourSingleton <StatusManager> .I.GetLocalEquipSetAbility(selectEquipSetData.setNo, new EquipItemAbilityCollection.SwapData(selectEquipSetData.index, EquipItem)) }); }
public override void UpdateUI() { if (isSelfData) { localEquipSet = MonoBehaviourSingleton <StatusManager> .I.GetEquipSet(selfCharaEquipSetNo); } else { localEquipSet = MonoBehaviourSingleton <StatusManager> .I.CreateEquipSetData(record.charaInfo.equipSet); } OnUpdateFriendDetailUI(); }
public void SetupLoadInfo(EquipSetInfo equip_set, ulong weapon_uniq_id, ulong armor_uniq_id, ulong helm_uniq_id, ulong arm_uniq_id, ulong leg_uniq_id, bool show_helm) { EquipItemInfo equipItemInfo = (weapon_uniq_id != 0L) ? MonoBehaviourSingleton <InventoryManager> .I.equipItemInventory.Find(weapon_uniq_id) : equip_set.item[0]; EquipItemInfo equipItemInfo2 = (armor_uniq_id != 0L) ? MonoBehaviourSingleton <InventoryManager> .I.equipItemInventory.Find(armor_uniq_id) : equip_set.item[3]; EquipItemInfo equipItemInfo3 = (!show_helm) ? null : ((helm_uniq_id != 0L) ? MonoBehaviourSingleton <InventoryManager> .I.equipItemInventory.Find(helm_uniq_id) : equip_set.item[4]); EquipItemInfo equipItemInfo4 = (arm_uniq_id != 0L) ? MonoBehaviourSingleton <InventoryManager> .I.equipItemInventory.Find(arm_uniq_id) : equip_set.item[5]; EquipItemInfo equipItemInfo5 = (leg_uniq_id != 0L) ? MonoBehaviourSingleton <InventoryManager> .I.equipItemInventory.Find(leg_uniq_id) : equip_set.item[6]; SetupLoadInfo((equipItemInfo != null) ? equipItemInfo.tableID : 0, (equipItemInfo2 != null) ? equipItemInfo2.tableID : 0, (equipItemInfo3 != null) ? equipItemInfo3.tableID : 0, (equipItemInfo4 != null) ? equipItemInfo4.tableID : 0, (equipItemInfo5 != null) ? equipItemInfo5.tableID : 0); }
private void OnQuery_ABILITY() { EquipSetInfo equipSetInfo = new EquipSetInfo(selectEquipSetData.equipSetInfo.item, selectEquipSetData.equipSetInfo.name, selectEquipSetData.equipSetInfo.showHelm); equipSetInfo.item[selectEquipSetData.index] = EquipItem; UserStatus userStatus = MonoBehaviourSingleton <UserInfoManager> .I.userStatus; GameSection.SetEventData(new object[3] { equipSetInfo, MonoBehaviourSingleton <StatusManager> .I.GetLocalEquipSetAbility(selectEquipSetData.setNo, new EquipItemAbilityCollection.SwapData(selectEquipSetData.index, EquipItem)), new EquipSetDetailStatusAndAbilityTable.BaseStatus(userStatus.atk, userStatus.def, userStatus.hp, null) }); }
private static EquipItemTable.EquipItemData[] CreateEquipItemData(EquipSetInfo equips) { EquipItemTable.EquipItemData[] array = new EquipItemTable.EquipItemData[equips.item.Length]; int i = 0; for (int num = array.Length; i < num; i++) { if (equips.item[i] != null) { EquipItemTable.EquipItemData equipItemData = array[i] = equips.item[i].tableData; } } return(array); }
private EquipItemAndSkillData[] _GetEquipSetAttachSkillListData(EquipSetInfo equip_set) { int num = equip_set.item.Length; EquipItemAndSkillData[] array = new EquipItemAndSkillData[num]; int i = 0; for (int num2 = num; i < num2; i++) { EquipItemAndSkillData equipItemAndSkillData = new EquipItemAndSkillData(); equipItemAndSkillData.equipItemInfo = equip_set.item[i]; equipItemAndSkillData.skillSlotUIData = GetSkillSlotData(equipItemAndSkillData.equipItemInfo); array[i] = equipItemAndSkillData; } return(array); }
protected virtual void OnQuery_STATUS() { EquipSetInfo equipSetInfo = MonoBehaviourSingleton <StatusManager> .I.CreateEquipSetData(data.equipSet); object[] array = new object[3] { equipSetInfo, MonoBehaviourSingleton <StatusManager> .I.GetEquipSetAbility(equipSetInfo, null), new EquipSetDetailStatusAndAbilityTable.BaseStatus(data.atk, data.def, data.hp, data.equipSet) }; GameSection.SetEventData(new object[3] { array, false, false }); }
private IEnumerator DoInitialize() { bool wait = true; degree = GetCtrl(UI.OBJ_DEGREE_ROOT).GetComponent <DegreePlate>(); UserStatus status = MonoBehaviourSingleton <UserInfoManager> .I.userStatus; EquipSetInfo equip_set = MonoBehaviourSingleton <StatusManager> .I.GetEquipSet(status.eSetNo); uint visual_armor = uint.Parse(status.armorUniqId); uint visual_helm = uint.Parse(status.helmUniqId); uint visual_arm = uint.Parse(status.armUniqId); uint visual_leg = uint.Parse(status.legUniqId); bool is_show_helm = MonoBehaviourSingleton <StatusManager> .I.GetEquippingShowHelm(status.eSetNo) == 1; PlayerLoadInfo load_info = new PlayerLoadInfo(); load_info.SetupLoadInfo(equip_set, 0uL, visual_armor, visual_helm, visual_arm, visual_leg, is_show_helm); OutGameSettingsManager.ProfileScene param = MonoBehaviourSingleton <OutGameSettingsManager> .I.profileScene; UIRenderTexture rt = InitRenderTexture(UI.TEX_MODEL, param.cameraFieldOfView, false); if (!object.ReferenceEquals(rt, null)) { rt.nearClipPlane = param.nearClip; } EnableRenderTexture(UI.TEX_MODEL); SetRenderPlayerModel((Enum)UI.TEX_MODEL, load_info, PLAYER_ANIM_TYPE.GetStatus(MonoBehaviourSingleton <UserInfoManager> .I.userStatus.sex), param.playerPos, new Vector3(0f, param.playerRot, 0f), is_show_helm, (Action <PlayerLoader>) delegate(PlayerLoader x) { ((_003CDoInitialize_003Ec__IteratorF4) /*Error near IL_01e7: stateMachine*/)._003C_003Ef__this.playerLoader = x; ((_003CDoInitialize_003Ec__IteratorF4) /*Error near IL_01e7: stateMachine*/)._003Cwait_003E__0 = false; }); if (eventListener == null) { eventListener = GetCtrl(UI.OBJ_PROFILE_BG).GetComponent <UIEventListener>(); UIEventListener uIEventListener = eventListener; uIEventListener.onDrag = (UIEventListener.VectorDelegate)Delegate.Combine(uIEventListener.onDrag, new UIEventListener.VectorDelegate(OnDrag)); } while (wait) { yield return((object)null); } base.Initialize(); }
public override void Initialize() { currentEventData = (GameSection.GetEventData() as object[]); equipSet = (currentEventData[0] as EquipSetInfo); abilityCollection = (currentEventData[1] as EquipItemAbilityCollection[]); baseStatus = (currentEventData[2] as BaseStatus); EquipItemInfo[] item = equipSet.item; foreach (EquipItemInfo equipItemInfo in item) { if (equipItemInfo != null) { AbilityItemInfo abilityItem = equipItemInfo.GetAbilityItem(); if (abilityItem != null) { abilityItems.Add(abilityItem); } } } Array.Sort(abilityCollection, delegate(EquipItemAbilityCollection l, EquipItemAbilityCollection r) { if (r.ability.ap != l.ability.ap) { return(r.ability.ap - l.ability.ap); } return((int)(l.ability.id - r.ability.id)); }); isEquipSubWeapon = (equipSet.item[1] != null || equipSet.item[2] != null); selectEquipIndex = 0; SetSupportEncoding(UI.LBL_HP, true); SetSupportEncoding(UI.LBL_ATK, true); SetSupportEncoding(UI.LBL_DEF, true); int j = 0; for (int num = uiAtkElem.Length; j < num; j++) { SetSupportEncoding(uiAtkElem[j], true); SetSupportEncoding(uiDefElem[j], true); } InitializeCaption(); base.Initialize(); }
protected StatusEquipSetCopyModel.RequestSendForm CopyEquipSetInfo(EquipSetInfo equipSet, int equipSetNo) { StatusEquipSetCopyModel.RequestSendForm requestSendForm = new StatusEquipSetCopyModel.RequestSendForm(); requestSendForm.no = equipSetNo; requestSendForm.name = equipSet.name; requestSendForm.wuid0 = ((equipSet.item[0] == null) ? "0" : equipSet.item[0].uniqueID.ToString()); requestSendForm.wuid1 = ((equipSet.item[1] == null) ? "0" : equipSet.item[1].uniqueID.ToString()); requestSendForm.wuid2 = ((equipSet.item[2] == null) ? "0" : equipSet.item[2].uniqueID.ToString()); requestSendForm.auid = ((equipSet.item[3] == null) ? "0" : equipSet.item[3].uniqueID.ToString()); requestSendForm.ruid = ((equipSet.item[5] == null) ? "0" : equipSet.item[5].uniqueID.ToString()); requestSendForm.luid = ((equipSet.item[6] == null) ? "0" : equipSet.item[6].uniqueID.ToString()); requestSendForm.huid = ((equipSet.item[4] == null) ? "0" : equipSet.item[4].uniqueID.ToString()); requestSendForm.show = equipSet.showHelm; int i = 0; for (int num = equipSet.item.Length; i < num; i++) { EquipItemInfo equipItemInfo = equipSet.item[i]; if (equipItemInfo != null) { SkillSlotUIData[] skillSlotData = GetSkillSlotData(equipItemInfo); if (skillSlotData != null) { int j = 0; for (int num2 = skillSlotData.Length; j < num2; j++) { SkillItemInfo itemData = skillSlotData[j].itemData; requestSendForm.euids.Add(equipItemInfo.uniqueID.ToString()); requestSendForm.suids.Add((itemData == null) ? "0" : itemData.uniqueID.ToString()); int num3 = j; if (equipItemInfo.IsExceedSkillSlot(num3)) { num3 = equipItemInfo.GetExceedSkillSlotNo(num3); } requestSendForm.slots.Add(num3); } } } } return(requestSendForm); }
protected EquipItemAndSkillData[] GetEquipSetAttachSkillListData(int equip_set_no) { EquipSetInfo equipSet = MonoBehaviourSingleton <StatusManager> .I.GetEquipSet(equip_set_no); return(_GetEquipSetAttachSkillListData(equipSet)); }
public LocalEquipSetData(int _no, int _index, EquipSetInfo _set) { setNo = _no; index = _index; equipSetInfo = _set; }
protected override void EquipParam() { EquipItemInfo compareItemData = GetCompareItemData(); EquipItemInfo select_item = EquipItem; EquipSetInfo equipSetInfo = new EquipSetInfo(selectEquipSetData.equipSetInfo.item, selectEquipSetData.equipSetInfo.name, selectEquipSetData.equipSetInfo.showHelm); bool flag = false; int num = Array.FindIndex(selectEquipSetData.equipSetInfo.item, (EquipItemInfo item) => item != null && select_item != null && item.uniqueID == select_item.uniqueID); if (num != -1) { flag = true; } if (!flag) { equipSetInfo.item[selectEquipSetData.index] = select_item; } else { equipSetInfo.item[num] = compareItemData; equipSetInfo.item[selectEquipSetData.index] = select_item; } MonoBehaviourSingleton <StatusManager> .I.CalcSelfStatusParam(equipSetInfo, out int _atk, out int _def, out int _hp, out int _, out int _); SetLabelText((Enum)UI.LBL_STATUS_ATK, _atk.ToString()); SetLabelText((Enum)UI.LBL_STATUS_DEF, _def.ToString()); SetLabelText((Enum)UI.LBL_STATUS_HP, _hp.ToString()); int atk = 0; int def = 0; int hp = 0; int atk2 = 0; int def2 = 0; int hp2 = 0; if (!flag) { CalcEquipAttachSkillStatus(compareItemData, out atk, out def, out hp); CalcEquipAttachSkillStatus(select_item, out atk2, out def2, out hp2); } else { atk += atk2; def += def2; hp += hp2; atk2 = atk; def2 = def; hp2 = hp; } if (selectEquipSetData.index != 1 && selectEquipSetData.index != 2) { int num2 = (compareItemData != null) ? (compareItemData.atk + compareItemData.elemAtk + atk) : 0; int num3 = (select_item != null) ? (select_item.atk + select_item.elemAtk + atk2) : 0; int num4 = num3 - num2; string format = (num4 <= 0) ? "{0}" : base.sectionData.GetText("DISP_PLUS"); SetLabelCompareParam((Enum)UI.LBL_STATUS_ADD_ATK, num3, num2, string.Format(format, num4)); SetActive((Enum)UI.LBL_STATUS_ADD_ATK, num4 != 0); int num5 = (compareItemData != null) ? (compareItemData.def + def) : 0; int num6 = (select_item != null) ? (select_item.def + def2) : 0; int num7 = num6 - num5; string format2 = (num7 <= 0) ? "{0}" : base.sectionData.GetText("DISP_PLUS"); SetLabelCompareParam((Enum)UI.LBL_STATUS_ADD_DEF, num6, num5, string.Format(format2, num7)); SetActive((Enum)UI.LBL_STATUS_ADD_DEF, num7 != 0); int num8 = (compareItemData != null) ? (compareItemData.hp + hp) : 0; int num9 = (select_item != null) ? (select_item.hp + hp2) : 0; int num10 = num9 - num8; string format3 = (num10 <= 0) ? "{0}" : base.sectionData.GetText("DISP_PLUS"); SetLabelCompareParam((Enum)UI.LBL_STATUS_ADD_HP, num9, num8, string.Format(format3, num10)); SetActive((Enum)UI.LBL_STATUS_ADD_HP, num10 != 0); } else { int num11 = atk; int num12 = atk2; int num13 = num12 - num11; string format4 = (num13 <= 0) ? "{0}" : base.sectionData.GetText("DISP_PLUS"); SetLabelCompareParam((Enum)UI.LBL_STATUS_ADD_ATK, num12, num11, string.Format(format4, num13)); SetActive((Enum)UI.LBL_STATUS_ADD_ATK, num13 != 0); int num14 = def; int num15 = def2; int num16 = num15 - num14; string format5 = (num16 <= 0) ? "{0}" : base.sectionData.GetText("DISP_PLUS"); SetLabelCompareParam((Enum)UI.LBL_STATUS_ADD_DEF, num15, num14, string.Format(format5, num16)); SetActive((Enum)UI.LBL_STATUS_ADD_DEF, num16 != 0); int num17 = hp; int num18 = hp2; int num19 = num18 - num17; string format6 = (num19 <= 0) ? "{0}" : base.sectionData.GetText("DISP_PLUS"); SetLabelCompareParam((Enum)UI.LBL_STATUS_ADD_HP, num18, num17, string.Format(format6, num19)); SetActive((Enum)UI.LBL_STATUS_ADD_HP, num19 != 0); } SetActive((Enum)UI.OBJ_SELL_ROOT, false); if (select_item == null) { string text = base.sectionData.GetText("NON_DATA"); if (compareItemData != null) { if (compareItemData.tableData.IsWeapon()) { SetActive((Enum)UI.OBJ_ELEM_ROOT, compareItemData.elemAtk > 0); SetElementSprite((Enum)UI.SPR_ELEM, compareItemData.GetElemAtkType()); SetLabelCompareParam((Enum)UI.LBL_ATK, -compareItemData.atk, 0, 0); SetLabelCompareParam((Enum)UI.LBL_ELEM, -compareItemData.elemAtk, 0, 0); } else { SetActive((Enum)UI.OBJ_ELEM_ROOT, compareItemData.elemDef > 0); SetDefElementSprite((Enum)UI.SPR_ELEM, compareItemData.GetElemDefType()); SetLabelCompareParam((Enum)UI.LBL_DEF, -compareItemData.def, 0, 0); SetLabelCompareParam((Enum)UI.LBL_ELEM, -compareItemData.elemDef, 0, 0); } } else { bool flag2 = selectEquipSetData.index < 3; SetLabelCompareParam((Enum)UI.LBL_ATK, 0, 0, -1); SetLabelCompareParam((Enum)UI.LBL_DEF, 0, 0, -1); SetActive((Enum)UI.OBJ_ATK_ROOT, flag2); SetActive((Enum)UI.OBJ_DEF_ROOT, !flag2); SetActive((Enum)UI.OBJ_ELEM_ROOT, false); } SetLabelText((Enum)UI.LBL_NAME, base.sectionData.GetText("EMPTY")); SetLabelCompareParam((Enum)UI.LBL_LV_NOW, 0, 0, text); SetLabelCompareParam((Enum)UI.LBL_LV_MAX, 0, 0, text); SetActive((Enum)UI.OBJ_SKILL_BUTTON_ROOT, false); SetActive((Enum)UI.TBL_ABILITY, false); SetActive((Enum)UI.STR_NON_ABILITY, false); SetActive((Enum)UI.SPR_IS_EVOLVE, false); SetEquipmentTypeIcon((Enum)UI.SPR_TYPE_ICON, (Enum)UI.SPR_TYPE_ICON_BG, (Enum)UI.SPR_TYPE_ICON_RARITY, (EquipItemTable.EquipItemData)null); } else { SetActive((Enum)UI.TBL_ABILITY, true); base.EquipParam(); } }
public static bool JudgeLimit(ArenaTable.ArenaData arenaData, EquipSetInfo equipSet) { return(JudgeLimit(arenaData, CreateEquipItemData(equipSet))); }
public override void Initialize() { setNo = (int)(GameSection.GetEventData() as object[])[0]; info = ((GameSection.GetEventData() as object[])[1] as EquipSetInfo); base.Initialize(); }
public override void UpdateUI() { //IL_00aa: Unknown result type (might be due to invalid IL or missing references) //IL_014e: Unknown result type (might be due to invalid IL or missing references) //IL_0253: Unknown result type (might be due to invalid IL or missing references) //IL_02da: Unknown result type (might be due to invalid IL or missing references) //IL_0356: Unknown result type (might be due to invalid IL or missing references) int badgeTotalNum = MonoBehaviourSingleton <SmithManager> .I.GetBadgeTotalNum(); SetBadge((Enum)UI.BTN_STUDIO, badgeTotalNum, 1, 8, -8, true); DrawEquipModeButton(); int sex = MonoBehaviourSingleton <UserInfoManager> .I.userStatus.sex; if (showEquipMode) { EquipSetInfo equipSetInfo = localEquipSet[equipSetNo]; int i = 0; for (int num = icons.Length; i < num; i++) { EquipItemInfo equipItemInfo = equipSetInfo.item[i]; Transform ctrl = GetCtrl(icons[i]); ctrl.GetComponentsInChildren <ItemIcon>(true, Temporary.itemIconList); int j = 0; for (int count = Temporary.itemIconList.Count; j < count; j++) { Temporary.itemIconList[j].get_gameObject().SetActive(true); } Temporary.itemIconList.Clear(); ItemIcon itemIcon = ItemIcon.CreateEquipItemIconByEquipItemInfo(equipItemInfo, sex, GetCtrl(icons[i]), null, -1, "DETAIL", i, false, -1, false, null, false, false); int num2 = -1; string text = string.Empty; if (equipItemInfo != null && equipItemInfo.tableID != 0) { EquipItemTable.EquipItemData tableData = equipItemInfo.tableData; num2 = tableData.GetIconID(sex); text = string.Format(StringTable.Get(STRING_CATEGORY.MAIN_STATUS, 1u), equipItemInfo.level); } itemIcon.get_gameObject().SetActive(num2 != -1); SetEvent((Enum)iconsBtn[i], (num2 == -1) ? "EQUIP" : "DETAIL", i); SetLabelText((Enum)lblEquipLevel[i], text); SetLabelText((Enum)lblShadowEquipLevel[i], text); if (num2 != -1) { itemIcon.SetEquipExt(equipItemInfo, base.GetComponent <UILabel>((Enum)lblEquipLevel[i])); } Transform ctrl2 = GetCtrl(iconsBtn[i]); bool flag = equipItemInfo != null && equipItemInfo.tableID != 0; if (flag) { int button_event_data = i; SetSkillIconButton(ctrl2, UI.OBJ_SKILL_BUTTON_ROOT, "SkillIconButtonTOP", equipItemInfo.tableData, GetSkillSlotData(equipItemInfo), "SKILL_ICON_BUTTON", button_event_data); } FindCtrl(ctrl2, UI.OBJ_SKILL_BUTTON_ROOT).get_gameObject().SetActive(flag); } } else { int k = 0; for (int num3 = visualEquip.visualItem.Length; k < num3; k++) { EquipItemInfo equipItemInfo2 = visualEquip.visualItem[k]; Transform ctrl3 = GetCtrl(iconsVisual[k]); ctrl3.GetComponentsInChildren <ItemIcon>(true, Temporary.itemIconList); int l = 0; for (int count2 = Temporary.itemIconList.Count; l < count2; l++) { Temporary.itemIconList[l].get_gameObject().SetActive(true); } Temporary.itemIconList.Clear(); ItemIcon itemIcon2 = ItemIcon.CreateEquipItemIconByEquipItemInfo(equipItemInfo2, sex, ctrl3, null, -1, "AVATAR", k, false, -1, false, null, false, false); SetLongTouch(itemIcon2.transform, "VISUAL_DETAIL", k); int num4 = -1; if (equipItemInfo2 != null) { num4 = equipItemInfo2.tableData.GetIconID(sex); } itemIcon2.get_gameObject().SetActive(num4 != -1); SetEvent((Enum)iconsVisualBtn[k], "AVATAR", k); SetLongTouch((Enum)iconsVisualBtn[k], "VISUAL_DETAIL", (object)k); } } DrawEquipSetModel(); UI?nullable = tweenTarget; if (nullable.HasValue) { ResetTween((Enum)tweenTarget, 0); PlayTween((Enum)tweenTarget, true, (EventDelegate.Callback)null, false, 0); } SetActive((Enum)UI.OBJ_STUDIO_BUTTON_ROOT, showEquipMode); SetActive((Enum)UI.TGL_VISIBLE_UI_BUTTON, !showEquipMode); SetToggle((Enum)UI.TGL_SHOW_EQUIP_TYPE, showEquipMode); if (visualEquip.isVisibleHelm != (localEquipSet[equipSetNo].showHelm == 1)) { ResetTween((Enum)UI.BTN_VISIBLE_HELM, 0); ResetTween((Enum)UI.BTN_INVISIBLE_HELM, 0); if (localEquipSet[equipSetNo].showHelm == 1) { PlayTween((Enum)UI.BTN_INVISIBLE_HELM, true, (EventDelegate.Callback)null, false, 0); } else { PlayTween((Enum)UI.BTN_VISIBLE_HELM, true, (EventDelegate.Callback)null, false, 0); } visualEquip.isVisibleHelm = (localEquipSet[equipSetNo].showHelm == 1); } SetToggleButton((Enum)UI.TGL_VISIBLE_HELM_BUTTON, visualEquip.isVisibleHelm, (Action <bool>) delegate(bool is_active) { visualEquip.isVisibleHelm = is_active; localEquipSet[equipSetNo].showHelm = (visualEquip.isVisibleHelm ? 1 : 0); ResetTween((Enum)UI.BTN_VISIBLE_HELM, 0); ResetTween((Enum)UI.BTN_INVISIBLE_HELM, 0); if (is_active) { PlayTween((Enum)UI.BTN_INVISIBLE_HELM, true, (EventDelegate.Callback)null, false, 0); } else { PlayTween((Enum)UI.BTN_VISIBLE_HELM, true, (EventDelegate.Callback)null, false, 0); } UpdateModel(); }); DrawEquipSetCopyModeButton(); base.UpdateUI(); }
protected override void LoadModel() { if (record != null) { PlayerLoadInfo playerLoadInfo = record.playerLoadInfo; if (isSelfData) { if (reloadModel) { if (isQuestResult) { playerLoadInfo = PlayerLoadInfo.FromCharaInfo(record.charaInfo, true, true, true, isVisualMode); EquipItemTable.EquipItemData equipItemData = null; if (playerLoadInfo.weaponModelID == -1) { EquipSetInfo equipSet = MonoBehaviourSingleton <StatusManager> .I.GetEquipSet(selfCharaEquipSetNo); equipItemData = Singleton <EquipItemTable> .I.GetEquipItemData(equipSet.item[0].tableID); if (equipItemData != null) { playerLoadInfo.weaponModelID = equipItemData.GetModelID(MonoBehaviourSingleton <UserInfoManager> .I.userStatus.sex); playerLoadInfo.weaponColor0 = equipItemData.modelColor0; playerLoadInfo.weaponColor1 = equipItemData.modelColor1; playerLoadInfo.weaponColor2 = equipItemData.modelColor2; playerLoadInfo.weaponEffectID = equipItemData.effectID; playerLoadInfo.weaponEffectColor = equipItemData.effectColor; playerLoadInfo.weaponEffectParam = equipItemData.effectParam; playerLoadInfo.weaponSpAttackType = (uint)equipItemData.spAttackType; } } else { playerLoadInfo.weaponModelID = record.playerLoadInfo.weaponModelID; playerLoadInfo.weaponColor0 = record.playerLoadInfo.weaponColor0; playerLoadInfo.weaponColor1 = record.playerLoadInfo.weaponColor1; playerLoadInfo.weaponColor2 = record.playerLoadInfo.weaponColor2; playerLoadInfo.weaponEffectID = record.playerLoadInfo.weaponEffectID; playerLoadInfo.weaponEffectColor = record.playerLoadInfo.weaponEffectColor; playerLoadInfo.weaponEffectParam = record.playerLoadInfo.weaponEffectParam; playerLoadInfo.weaponSpAttackType = record.playerLoadInfo.weaponSpAttackType; } record.animID = -1; } else { playerLoadInfo = PlayerLoadInfo.FromUserStatus(true, isVisualMode, selfCharaEquipSetNo); } } else if (AlwaysNowStatusModel || record.playerLoadInfo.weaponModelID == -1) { record.playerLoadInfo = PlayerLoadInfo.FromUserStatus(true, isVisualMode, -1); record.animID = -1; playerLoadInfo = record.playerLoadInfo; } } else if (isVisualMode) { playerLoadInfo = record.playerLoadInfo; } else { playerLoadInfo = PlayerLoadInfo.FromCharaInfo(record.charaInfo, true, true, true, isVisualMode); playerLoadInfo.weaponModelID = record.playerLoadInfo.weaponModelID; playerLoadInfo.weaponColor0 = record.playerLoadInfo.weaponColor0; playerLoadInfo.weaponColor1 = record.playerLoadInfo.weaponColor1; playerLoadInfo.weaponColor2 = record.playerLoadInfo.weaponColor2; playerLoadInfo.weaponEffectID = record.playerLoadInfo.weaponEffectID; playerLoadInfo.weaponEffectColor = record.playerLoadInfo.weaponEffectColor; playerLoadInfo.weaponEffectParam = record.playerLoadInfo.weaponEffectParam; playerLoadInfo.weaponSpAttackType = record.playerLoadInfo.weaponSpAttackType; } SetRenderPlayerModel(playerLoadInfo); } }