forked from liza/Deliveroo
Minor tweaks
This commit is contained in:
parent
f56a66df29
commit
b54d46468f
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user