1
0
forked from liza/Deliveroo

Minor tweaks

This commit is contained in:
Liza 2023-09-21 23:28:35 +02:00
parent f56a66df29
commit b54d46468f
Signed by: liza
GPG Key ID: 7199F8D727D55F67
3 changed files with 5 additions and 8 deletions

View File

@ -76,7 +76,7 @@ public sealed class DeliverooPlugin : IDalamudPlugin
public string Name => "Deliveroo";
private Stage CurrentStage
internal Stage CurrentStage
{
get => _currentStageInternal;
set
@ -85,7 +85,6 @@ public sealed class DeliverooPlugin : IDalamudPlugin
{
PluginLog.Information($"Changing stage from {_currentStageInternal} to {value}");
_currentStageInternal = value;
_turnInWindow.Debug = CurrentStage.ToString();
}
}
}
@ -657,7 +656,7 @@ public sealed class DeliverooPlugin : IDalamudPlugin
(FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)obj.Address, false);
}
private enum Stage
internal enum Stage
{
TargetPersonnelOfficer,
OpenGcSupply,

View File

@ -8,7 +8,7 @@ internal sealed class GcRewardItem : IEquatable<GcRewardItem>
public static GcRewardItem None { get; } = new GcRewardItem
{
ItemId = 0,
Name = "Buy Nothing",
Name = "---",
GrandCompany = GrandCompany.None,
Tier = RewardTier.First,
SubCategory = RewardSubCategory.Unknown,

View File

@ -70,8 +70,6 @@ internal sealed class TurnInWindow : Window
}
}
public string Debug { get; set; }
public override void OnOpen()
{
SelectedItemId = _configuration.SelectedPurchaseItemId;
@ -101,7 +99,7 @@ internal sealed class TurnInWindow : Window
ImGui.Spacing();
ImGui.BeginDisabled(state);
List<string> comboValues = new() { "Buy Nothing" };
List<string> comboValues = new() { GcRewardItem.None.Name };
foreach (var itemId in _configuration.ItemsAvailableForPurchase)
{
var name = _gcRewardsCache.Rewards[grandCompany].First(x => x.ItemId == itemId).Name;
@ -127,7 +125,7 @@ internal sealed class TurnInWindow : Window
ImGui.Unindent(27);
ImGui.Separator();
ImGui.Text($"Debug (State): {Debug}");
ImGui.Text($"Debug (State): {_plugin.CurrentStage}");
}
private unsafe int GetItemCount(uint itemId)