muffin v7.4.12
This commit is contained in:
parent
e3e5a401c3
commit
0f9f445830
38 changed files with 13646 additions and 10442 deletions
|
|
@ -10,15 +10,18 @@ internal sealed class RemainingTasksComponent
|
|||
|
||||
private readonly GatheringController _gatheringController;
|
||||
|
||||
public RemainingTasksComponent(QuestController questController, GatheringController gatheringController)
|
||||
private readonly FateController _fateController;
|
||||
|
||||
public RemainingTasksComponent(QuestController questController, GatheringController gatheringController, FateController fateController)
|
||||
{
|
||||
_questController = questController;
|
||||
_gatheringController = gatheringController;
|
||||
_fateController = fateController;
|
||||
}
|
||||
|
||||
public void Draw()
|
||||
{
|
||||
IList<string> remainingTaskNames = _gatheringController.GetRemainingTaskNames();
|
||||
IList<string> remainingTaskNames = _fateController.GetRemainingTaskNames();
|
||||
if (remainingTaskNames.Count > 0)
|
||||
{
|
||||
ImGui.Separator();
|
||||
|
|
@ -26,23 +29,38 @@ internal sealed class RemainingTasksComponent
|
|||
foreach (string item in remainingTaskNames)
|
||||
{
|
||||
ImU8String text = new ImU8String(3, 1);
|
||||
text.AppendLiteral("G: ");
|
||||
text.AppendLiteral("F: ");
|
||||
text.AppendFormatted(item);
|
||||
ImGui.TextUnformatted(text);
|
||||
}
|
||||
ImGui.EndDisabled();
|
||||
return;
|
||||
}
|
||||
IList<string> remainingTaskNames2 = _questController.GetRemainingTaskNames();
|
||||
if (remainingTaskNames2.Count <= 0)
|
||||
IList<string> remainingTaskNames2 = _gatheringController.GetRemainingTaskNames();
|
||||
if (remainingTaskNames2.Count > 0)
|
||||
{
|
||||
ImGui.Separator();
|
||||
ImGui.BeginDisabled();
|
||||
foreach (string item2 in remainingTaskNames2)
|
||||
{
|
||||
ImU8String text2 = new ImU8String(3, 1);
|
||||
text2.AppendLiteral("G: ");
|
||||
text2.AppendFormatted(item2);
|
||||
ImGui.TextUnformatted(text2);
|
||||
}
|
||||
ImGui.EndDisabled();
|
||||
return;
|
||||
}
|
||||
IList<string> remainingTaskNames3 = _questController.GetRemainingTaskNames();
|
||||
if (remainingTaskNames3.Count <= 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
ImGui.Separator();
|
||||
ImGui.BeginDisabled();
|
||||
foreach (string item2 in remainingTaskNames2)
|
||||
foreach (string item3 in remainingTaskNames3)
|
||||
{
|
||||
ImGui.TextUnformatted(item2);
|
||||
ImGui.TextUnformatted(item3);
|
||||
}
|
||||
ImGui.EndDisabled();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue