forked from aly/qstbak
muffin v7.5.0
This commit is contained in:
parent
afafd5e377
commit
a6481e7b9a
67 changed files with 4281 additions and 2372 deletions
|
|
@ -1,3 +1,4 @@
|
|||
using System;
|
||||
using System.Numerics;
|
||||
using Dalamud.Bindings.ImGui;
|
||||
using Dalamud.Interface.Utility.Raii;
|
||||
|
|
@ -24,16 +25,17 @@ internal sealed class QuestSequenceWindow : LWindow, IPersistableWindowConfig
|
|||
public QuestSequenceWindow(IDalamudPluginInterface pluginInterface, Configuration configuration, QuestSequenceComponent questSequenceComponent)
|
||||
: base("Quest Sequence Viewer###QuestionableQuestSequenceViewer", ImGuiWindowFlags.NoTitleBar)
|
||||
{
|
||||
//IL_0077: Unknown result type (might be due to invalid IL or missing references)
|
||||
_pluginInterface = pluginInterface;
|
||||
_configuration = configuration;
|
||||
_questSequenceComponent = questSequenceComponent;
|
||||
base.Size = new Vector2(950f, 700f);
|
||||
base.SizeCondition = ImGuiCond.FirstUseEver;
|
||||
base.SizeConstraints = new WindowSizeConstraints
|
||||
{
|
||||
MinimumSize = new Vector2(750f, 550f),
|
||||
MaximumSize = new Vector2(float.MaxValue, float.MaxValue)
|
||||
};
|
||||
WindowSizeConstraints value = default(WindowSizeConstraints);
|
||||
((WindowSizeConstraints)(ref value))._002Ector();
|
||||
((WindowSizeConstraints)(ref value)).MinimumSize = new Vector2(750f, 550f);
|
||||
((WindowSizeConstraints)(ref value)).MaximumSize = new Vector2(float.MaxValue, float.MaxValue);
|
||||
((Window)this).SizeConstraints = value;
|
||||
}
|
||||
|
||||
public void SaveWindowConfig()
|
||||
|
|
@ -50,42 +52,83 @@ internal sealed class QuestSequenceWindow : LWindow, IPersistableWindowConfig
|
|||
|
||||
public override void DrawContent()
|
||||
{
|
||||
//IL_0090: Unknown result type (might be due to invalid IL or missing references)
|
||||
//IL_0095: Unknown result type (might be due to invalid IL or missing references)
|
||||
//IL_0097: Unknown result type (might be due to invalid IL or missing references)
|
||||
//IL_00b0: Unknown result type (might be due to invalid IL or missing references)
|
||||
//IL_00b5: Unknown result type (might be due to invalid IL or missing references)
|
||||
//IL_00b7: Unknown result type (might be due to invalid IL or missing references)
|
||||
//IL_00f4: Unknown result type (might be due to invalid IL or missing references)
|
||||
//IL_00f9: Unknown result type (might be due to invalid IL or missing references)
|
||||
//IL_00fb: Unknown result type (might be due to invalid IL or missing references)
|
||||
bool isOpen = base.IsOpen;
|
||||
QuestSequenceComponent.DrawCustomHeader(ref isOpen);
|
||||
base.IsOpen = isOpen;
|
||||
ImGui.Spacing();
|
||||
ImGui.Spacing();
|
||||
using (ImRaii.PushColor(ImGuiCol.Tab, new Vector4(0.15f, 0.13f, 0.2f, 0.7f)))
|
||||
ColorDisposable val = ImRaii.PushColor(ImGuiCol.Tab, new Vector4(0.15f, 0.13f, 0.2f, 0.7f), true);
|
||||
try
|
||||
{
|
||||
using (ImRaii.PushColor(ImGuiCol.TabHovered, new Vector4(0.35f, 0.3f, 0.45f, 0.9f)))
|
||||
ColorDisposable val2 = ImRaii.PushColor(ImGuiCol.TabHovered, new Vector4(0.35f, 0.3f, 0.45f, 0.9f), true);
|
||||
try
|
||||
{
|
||||
using (ImRaii.PushColor(ImGuiCol.TabActive, new Vector4(0.28f, 0.24f, 0.35f, 1f)))
|
||||
ColorDisposable val3 = ImRaii.PushColor(ImGuiCol.TabActive, new Vector4(0.28f, 0.24f, 0.35f, 1f), true);
|
||||
try
|
||||
{
|
||||
using ImRaii.IEndObject endObject = ImRaii.TabBar("QuestSequenceTabs", ImGuiTabBarFlags.None);
|
||||
if (!endObject)
|
||||
TabBarDisposable val4 = ImRaii.TabBar((ImU8String)"QuestSequenceTabs", ImGuiTabBarFlags.None);
|
||||
try
|
||||
{
|
||||
return;
|
||||
}
|
||||
using (ImRaii.IEndObject endObject2 = ImRaii.TabItem("Current Quest", ImGuiTabItemFlags.None))
|
||||
{
|
||||
if (endObject2)
|
||||
if (!val4)
|
||||
{
|
||||
ImGui.Spacing();
|
||||
_questSequenceComponent.DrawCurrentQuestTab();
|
||||
return;
|
||||
}
|
||||
}
|
||||
ImGuiTabItemFlags flags = (_selectLookupTabNextFrame ? ImGuiTabItemFlags.SetSelected : ImGuiTabItemFlags.None);
|
||||
using (ImRaii.IEndObject endObject3 = ImRaii.TabItem("Quest Lookup", flags))
|
||||
{
|
||||
if (endObject3)
|
||||
TabItemDisposable val5 = ImRaii.TabItem((ImU8String)"Current Quest", ImGuiTabItemFlags.None);
|
||||
try
|
||||
{
|
||||
ImGui.Spacing();
|
||||
_questSequenceComponent.DrawQuestLookupTab();
|
||||
if (TabItemDisposable.op_Implicit(val5))
|
||||
{
|
||||
ImGui.Spacing();
|
||||
_questSequenceComponent.DrawCurrentQuestTab();
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
((TabItemDisposable)(ref val5)).Dispose();
|
||||
}
|
||||
ImGuiTabItemFlags imGuiTabItemFlags = (_selectLookupTabNextFrame ? ImGuiTabItemFlags.SetSelected : ImGuiTabItemFlags.None);
|
||||
TabItemDisposable val6 = ImRaii.TabItem((ImU8String)"Quest Lookup", imGuiTabItemFlags);
|
||||
try
|
||||
{
|
||||
if (TabItemDisposable.op_Implicit(val6))
|
||||
{
|
||||
ImGui.Spacing();
|
||||
_questSequenceComponent.DrawQuestLookupTab();
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
((TabItemDisposable)(ref val6)).Dispose();
|
||||
}
|
||||
_selectLookupTabNextFrame = false;
|
||||
}
|
||||
_selectLookupTabNextFrame = false;
|
||||
finally
|
||||
{
|
||||
((TabBarDisposable)(ref val4)).Dispose();
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
((IDisposable)val3)?.Dispose();
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
((IDisposable)val2)?.Dispose();
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
((IDisposable)val)?.Dispose();
|
||||
}
|
||||
QuestSequenceComponent.DrawWindowBorder();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue