protected override void OnQuery_GUILD_REQUEST() { GuildRequestItem selectedItem = MonoBehaviourSingleton <GuildRequestManager> .I.GetSelectedItem(); string arg = MonoBehaviourSingleton <GuildRequestManager> .I.GetNeedPoint(questInfo.questData.tableData.rarity).ToString(); string needTimeWithFormat = MonoBehaviourSingleton <GuildRequestManager> .I.GetNeedTimeWithFormat(questInfo.questData.tableData.rarity); string houndRemainTimeWithFormat = selectedItem.GetHoundRemainTimeWithFormat(); TimeSpan needTime = MonoBehaviourSingleton <GuildRequestManager> .I.GetNeedTime(questInfo.questData.tableData.rarity); TimeSpan houndRemainTime = selectedItem.GetHoundRemainTime(); string eventData = (!(0.0 < houndRemainTime.TotalSeconds) || !(houndRemainTime < needTime)) ? string.Format(StringTable.Get(STRING_CATEGORY.GUILD_REQUEST, 0u), arg, needTimeWithFormat) : string.Format(StringTable.Get(STRING_CATEGORY.GUILD_REQUEST, 5u), arg, needTimeWithFormat, houndRemainTimeWithFormat); GameSection.SetEventData(eventData); }
private void UpdateHoundRemainTime(GuildRequestItem item, Transform parent) { //IL_0080: Unknown result type (might be due to invalid IL or missing references) //IL_00ae: Unknown result type (might be due to invalid IL or missing references) //IL_00d4: Unknown result type (might be due to invalid IL or missing references) //IL_00e6: Unknown result type (might be due to invalid IL or missing references) double totalSeconds = item.GetHoundRemainTime().TotalSeconds; string empty = string.Empty; Transform val = FindCtrl(parent, UI.LBL_HOUND_REMAIN_TIME); UILabel component = val.GetComponent <UILabel>(); if (item.crystalNum > 0) { string format = StringTable.Get(STRING_CATEGORY.GUILD_REQUEST, 15u); string arg = StringTable.Get(STRING_CATEGORY.GUILD_REQUEST, (uint)(16 + item.slotNo - 1)); if (totalSeconds < 0.0) { empty = string.Format(format, arg, UIUtility.TimeFormat(0, true)); SetLabelText(val, empty); SetColor(val, Color.get_yellow()); component.effectStyle = UILabel.Effect.None; } else { empty = string.Format(format, arg, UIUtility.TimeFormat((int)totalSeconds, true)); SetLabelText(val, empty); SetColor(val, Color.get_yellow()); component.effectStyle = UILabel.Effect.None; } } else { empty = StringTable.Get(STRING_CATEGORY.GUILD_REQUEST, 12u); SetLabelText(val, empty); SetColor(val, Color.get_white()); component.effectStyle = UILabel.Effect.Outline8; component.effectColor = Color.get_black(); } }
public void SetBeforeTime() { beforeHoundRemainTime = item.GetHoundRemainTime(); beforeQuestRemainTime = item.GetQuestRemainTime(); }