muffin v7.4
This commit is contained in:
parent
8a7847ff37
commit
a4175abacd
54 changed files with 95984 additions and 123967 deletions
|
|
@ -110,7 +110,7 @@ internal sealed class DutyConfigComponent : ConfigComponent
|
|||
ImGui.SameLine();
|
||||
int currentItem = (int)base.Configuration.Duties.DefaultDutyMode;
|
||||
ImGui.SetNextItemWidth(200f);
|
||||
if (ImGui.Combo("##DefaultDutyMode", ref currentItem, in DutyModeLabels, DutyModeLabels.Length))
|
||||
if (ImGui.Combo((ImU8String)"##DefaultDutyMode", ref currentItem, (ReadOnlySpan<string>)DutyModeLabels, DutyModeLabels.Length))
|
||||
{
|
||||
base.Configuration.Duties.DefaultDutyMode = (EDutyMode)currentItem;
|
||||
Save();
|
||||
|
|
@ -201,11 +201,11 @@ internal sealed class DutyConfigComponent : ConfigComponent
|
|||
DutyOptions dutyOptions;
|
||||
bool flag = _questRegistry.TryGetDutyByContentFinderConditionId(num, out dutyOptions);
|
||||
ImGui.TableNextRow();
|
||||
string[] items;
|
||||
string[] array;
|
||||
int currentItem;
|
||||
if (flag)
|
||||
{
|
||||
items = (dutyOptions.Enabled ? SupportedCfcOptions : UnsupportedCfcOptions);
|
||||
array = (dutyOptions.Enabled ? SupportedCfcOptions : UnsupportedCfcOptions);
|
||||
currentItem = 0;
|
||||
if (base.Configuration.Duties.WhitelistedDutyCfcIds.Contains(num))
|
||||
{
|
||||
|
|
@ -218,7 +218,7 @@ internal sealed class DutyConfigComponent : ConfigComponent
|
|||
}
|
||||
else
|
||||
{
|
||||
items = new string[2] { "Disabled", "Enabled" };
|
||||
array = new string[2] { "Disabled", "Enabled" };
|
||||
currentItem = (base.Configuration.Duties.WhitelistedDutyCfcIds.Contains(num) ? 1 : 0);
|
||||
}
|
||||
if (ImGui.TableNextColumn())
|
||||
|
|
@ -232,14 +232,14 @@ internal sealed class DutyConfigComponent : ConfigComponent
|
|||
{
|
||||
ImGui.TextUnformatted(text);
|
||||
ImGui.Separator();
|
||||
table = new ImU8String(13, 1);
|
||||
table.AppendLiteral("TerritoryId: ");
|
||||
table.AppendFormatted(value2);
|
||||
ImGui.BulletText(table);
|
||||
table = new ImU8String(26, 1);
|
||||
table.AppendLiteral("ContentFinderConditionId: ");
|
||||
table.AppendFormatted(num);
|
||||
ImGui.BulletText(table);
|
||||
ImU8String text2 = new ImU8String(13, 1);
|
||||
text2.AppendLiteral("TerritoryId: ");
|
||||
text2.AppendFormatted(value2);
|
||||
ImGui.BulletText(text2);
|
||||
ImU8String text3 = new ImU8String(26, 1);
|
||||
text3.AppendLiteral("ContentFinderConditionId: ");
|
||||
text3.AppendFormatted(num);
|
||||
ImGui.BulletText(text3);
|
||||
if (flag)
|
||||
{
|
||||
ImGui.BulletText("Duty Support: Available");
|
||||
|
|
@ -257,13 +257,13 @@ internal sealed class DutyConfigComponent : ConfigComponent
|
|||
}
|
||||
if (ImGui.TableNextColumn())
|
||||
{
|
||||
table = new ImU8String(16, 1);
|
||||
table.AppendLiteral("##DungeonEnabled");
|
||||
table.AppendFormatted(num);
|
||||
using (ImRaii.PushId(table))
|
||||
ImU8String id = new ImU8String(16, 1);
|
||||
id.AppendLiteral("##DungeonEnabled");
|
||||
id.AppendFormatted(num);
|
||||
using (ImRaii.PushId(id))
|
||||
{
|
||||
ImGui.SetNextItemWidth(200f);
|
||||
if (ImGui.Combo(string.Empty, ref currentItem, in items, items.Length))
|
||||
if (ImGui.Combo((ImU8String)string.Empty, ref currentItem, (ReadOnlySpan<string>)array, array.Length))
|
||||
{
|
||||
base.Configuration.Duties.WhitelistedDutyCfcIds.Remove(num);
|
||||
base.Configuration.Duties.BlacklistedDutyCfcIds.Remove(num);
|
||||
|
|
@ -291,10 +291,10 @@ internal sealed class DutyConfigComponent : ConfigComponent
|
|||
{
|
||||
continue;
|
||||
}
|
||||
table = new ImU8String(13, 1);
|
||||
table.AppendLiteral("##DungeonMode");
|
||||
table.AppendFormatted(num);
|
||||
using (ImRaii.PushId(table))
|
||||
ImU8String id2 = new ImU8String(13, 1);
|
||||
id2.AppendLiteral("##DungeonMode");
|
||||
id2.AppendFormatted(num);
|
||||
using (ImRaii.PushId(id2))
|
||||
{
|
||||
EDutyMode value3;
|
||||
bool flag2 = base.Configuration.Duties.DutyModeOverrides.TryGetValue(num, out value3);
|
||||
|
|
@ -302,16 +302,16 @@ internal sealed class DutyConfigComponent : ConfigComponent
|
|||
Name = "Use Default";
|
||||
string[] dutyModeLabels = DutyModeLabels;
|
||||
int num3 = 0;
|
||||
string[] array = new string[1 + dutyModeLabels.Length];
|
||||
array[num3] = Name;
|
||||
string[] array2 = new string[1 + dutyModeLabels.Length];
|
||||
array2[num3] = Name;
|
||||
num3++;
|
||||
ReadOnlySpan<string> readOnlySpan = new ReadOnlySpan<string>(dutyModeLabels);
|
||||
readOnlySpan.CopyTo(new Span<string>(array).Slice(num3, readOnlySpan.Length));
|
||||
readOnlySpan.CopyTo(new Span<string>(array2).Slice(num3, readOnlySpan.Length));
|
||||
num3 += readOnlySpan.Length;
|
||||
string[] items2 = array;
|
||||
string[] array3 = array2;
|
||||
int currentItem2 = (int)(num2 + 1);
|
||||
ImGui.SetNextItemWidth(150f);
|
||||
if (ImGui.Combo(string.Empty, ref currentItem2, in items2, items2.Length))
|
||||
if (ImGui.Combo((ImU8String)string.Empty, ref currentItem2, (ReadOnlySpan<string>)array3, array3.Length))
|
||||
{
|
||||
if (currentItem2 == 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue