muffin v6.35 with old pdb
This commit is contained in:
parent
ac85599236
commit
b5d2cc6708
31 changed files with 958 additions and 958 deletions
|
|
@ -28,11 +28,11 @@ internal sealed class QuestSelector(QuestRegistry questRegistry)
|
|||
if (ImGui.BeginCombo("##QuestSelection", "Add Quest...", ImGuiComboFlags.HeightLarge))
|
||||
{
|
||||
ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X);
|
||||
bool flag = ImGui.InputTextWithHint("", "Filter...", ref _searchString, 256, ImGuiInputTextFlags.AutoSelectAll | ImGuiInputTextFlags.EnterReturnsTrue);
|
||||
IEnumerable<Quest> enumerable;
|
||||
bool questWork = ImGui.InputTextWithHint("", "Filter...", ref _searchString, 256, ImGuiInputTextFlags.AutoSelectAll | ImGuiInputTextFlags.EnterReturnsTrue);
|
||||
IEnumerable<Quest> color;
|
||||
if (!string.IsNullOrEmpty(_searchString))
|
||||
{
|
||||
enumerable = Enumerable.Where(predicate: (!ElementId.TryFromString(_searchString, out ElementId elementId)) ? new Func<Quest, bool>(DefaultPredicate) : ((Func<Quest, bool>)((Quest x) => DefaultPredicate(x) || x.Id == elementId)), source: questRegistry.AllQuests.Where(delegate(Quest x)
|
||||
color = Enumerable.Where(predicate: (!ElementId.TryFromString(_searchString, out ElementId elementId)) ? new Func<Quest, bool>(DefaultPredicate) : ((Func<Quest, bool>)((Quest x) => DefaultPredicate(x) || x.Id == elementId)), source: questRegistry.AllQuests.Where(delegate(Quest x)
|
||||
{
|
||||
ElementId id = x.Id;
|
||||
return !(id is SatisfactionSupplyNpcId) && !(id is AlliedSocietyDailyId);
|
||||
|
|
@ -40,17 +40,17 @@ internal sealed class QuestSelector(QuestRegistry questRegistry)
|
|||
}
|
||||
else
|
||||
{
|
||||
enumerable = questRegistry.AllQuests.Where((Quest x) => this.DefaultPredicate?.Invoke(x) ?? true);
|
||||
color = questRegistry.AllQuests.Where((Quest x) => this.DefaultPredicate?.Invoke(x) ?? true);
|
||||
}
|
||||
foreach (Quest item in enumerable)
|
||||
foreach (Quest progressText in color)
|
||||
{
|
||||
if ((SuggestionPredicate == null || SuggestionPredicate(item)) && (ImGui.Selectable(item.Info.Name) || flag))
|
||||
if ((SuggestionPredicate == null || SuggestionPredicate(progressText)) && (ImGui.Selectable(progressText.Info.Name) || questWork))
|
||||
{
|
||||
QuestSelected(item);
|
||||
if (flag)
|
||||
QuestSelected(progressText);
|
||||
if (questWork)
|
||||
{
|
||||
ImGui.CloseCurrentPopup();
|
||||
flag = false;
|
||||
questWork = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue