You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
using Dalamud.Interface.Windowing;
|
|
using ImGuiNET;
|
|
using System;
|
|
|
|
namespace Expedience
|
|
{
|
|
public class PatCountUI : Window, IDisposable
|
|
{
|
|
public PatCountUI() : base("Pat Count")
|
|
{
|
|
IsOpen = false;
|
|
|
|
Flags = ImGuiWindowFlags.NoDecoration | ImGuiWindowFlags.AlwaysAutoResize;
|
|
RespectCloseHotkey = false;
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
}
|
|
|
|
public override void Draw()
|
|
{
|
|
int pats = Service.patCounter.GetCounter();
|
|
ImGui.Text($"{Service.patCounter.uiDesc}: {pats}");
|
|
|
|
// add more counters if they want to be there
|
|
foreach (var counter in Service.plugin.emoteCounters)
|
|
{
|
|
if (counter != null && counter != Service.patCounter && !string.IsNullOrEmpty(counter.uiDesc) && counter.isActive)
|
|
{
|
|
int numEmotes = counter.GetCounter();
|
|
if (numEmotes > 0)
|
|
{
|
|
ImGui.Text($"{counter.uiDesc}: {numEmotes}");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|