muffin v7.4
This commit is contained in:
parent
8a7847ff37
commit
a4175abacd
54 changed files with 95984 additions and 123967 deletions
|
|
@ -641,7 +641,7 @@ internal sealed class SinglePlayerDutyConfigComponent : ConfigComponent
|
|||
foreach (SinglePlayerDutyInfo dutyInfo in dutyInfos)
|
||||
{
|
||||
ImGui.TableNextRow();
|
||||
string[] items = (dutyInfo.EnabledByDefault ? SupportedCfcOptions : UnsupportedCfcOptions);
|
||||
string[] array = (dutyInfo.EnabledByDefault ? SupportedCfcOptions : UnsupportedCfcOptions);
|
||||
int currentItem = 0;
|
||||
if (base.Configuration.SinglePlayerDuties.WhitelistedSinglePlayerDutyCfcIds.Contains(dutyInfo.ContentFinderConditionId))
|
||||
{
|
||||
|
|
@ -651,7 +651,6 @@ internal sealed class SinglePlayerDutyConfigComponent : ConfigComponent
|
|||
{
|
||||
currentItem = 2;
|
||||
}
|
||||
ImU8String text;
|
||||
if (ImGui.TableNextColumn())
|
||||
{
|
||||
ImGui.AlignTextToFramePadding();
|
||||
|
|
@ -663,14 +662,14 @@ internal sealed class SinglePlayerDutyConfigComponent : ConfigComponent
|
|||
{
|
||||
ImGui.TextUnformatted(dutyInfo.Name);
|
||||
ImGui.Separator();
|
||||
text = new ImU8String(13, 1);
|
||||
ImU8String text = new ImU8String(13, 1);
|
||||
text.AppendLiteral("TerritoryId: ");
|
||||
text.AppendFormatted(dutyInfo.TerritoryId);
|
||||
ImGui.BulletText(text);
|
||||
text = new ImU8String(26, 1);
|
||||
text.AppendLiteral("ContentFinderConditionId: ");
|
||||
text.AppendFormatted(dutyInfo.ContentFinderConditionId);
|
||||
ImGui.BulletText(text);
|
||||
ImU8String text2 = new ImU8String(26, 1);
|
||||
text2.AppendLiteral("ContentFinderConditionId: ");
|
||||
text2.AppendFormatted(dutyInfo.ContentFinderConditionId);
|
||||
ImGui.BulletText(text2);
|
||||
}
|
||||
}
|
||||
if (!dutyInfo.Enabled)
|
||||
|
|
@ -686,15 +685,15 @@ internal sealed class SinglePlayerDutyConfigComponent : ConfigComponent
|
|||
{
|
||||
continue;
|
||||
}
|
||||
text = new ImU8String(6, 1);
|
||||
text.AppendLiteral("##Duty");
|
||||
text.AppendFormatted(dutyInfo.ContentFinderConditionId);
|
||||
using (ImRaii.PushId(text))
|
||||
ImU8String id = new ImU8String(6, 1);
|
||||
id.AppendLiteral("##Duty");
|
||||
id.AppendFormatted(dutyInfo.ContentFinderConditionId);
|
||||
using (ImRaii.PushId(id))
|
||||
{
|
||||
using (ImRaii.Disabled(!dutyInfo.Enabled))
|
||||
{
|
||||
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.SinglePlayerDuties.WhitelistedSinglePlayerDutyCfcIds.Remove(dutyInfo.ContentFinderConditionId);
|
||||
base.Configuration.SinglePlayerDuties.BlacklistedSinglePlayerDutyCfcIds.Remove(dutyInfo.ContentFinderConditionId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue