Skip to content

Commit

Permalink
fix: escape key and lib updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kalilistic committed Oct 9, 2021
1 parent bb0e64c commit 5397b33
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/Kapture.Test/Kapture.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Dalamud.DrunkenToad" Version="1.1.3" />
<PackageReference Include="Dalamud.DrunkenToad" Version="1.1.4" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.1" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
Expand All @@ -33,7 +33,7 @@
</ItemGroup>

<ItemGroup>
<Reference Include="Dalamud, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null">
<Reference Include="Dalamud, Version=6.0.0.6, Culture=neutral, PublicKeyToken=null">
<HintPath>C:\Users\caleb\AppData\Roaming\XIVLauncher\addon\Hooks\dev\Dalamud.dll</HintPath>
</Reference>
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Kapture/Kapture.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
<ItemGroup>
<PackageReference Include="ILRepack" Version="2.0.18" />
<PackageReference Include="DalamudPackager" Version="2.1.2" />
<PackageReference Include="Dalamud.DrunkenToad" Version="1.1.3" />
<PackageReference Include="Dalamud.DrunkenToad" Version="1.1.4" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
9 changes: 4 additions & 5 deletions src/Kapture/Kapture/UserInterface/LootWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
using System.Numerics;

using CheapLoc;
using Dalamud.DrunkenToad;
using Dalamud.Interface;
using Dalamud.Interface.Colors;
using ImGuiNET;

namespace Kapture
Expand All @@ -21,7 +21,6 @@ public LootWindow(KapturePlugin plugin)
: base(plugin, Loc.Localize("LootOverlayWindow", "Loot") + "###Kapture_Loot_Window")
{
this.plugin = plugin;
this.RespectCloseHotkey = false;
}

/// <inheritdoc />
Expand All @@ -36,11 +35,11 @@ public override void Draw()
var col1 = 200f * ImGuiHelpers.GlobalScale;
var col2 = 270f * ImGuiHelpers.GlobalScale;

ImGui.TextColored(ImGuiColors2.ToadViolet, Loc.Localize("LootItemName", "Item"));
ImGui.TextColored(ImGuiColors.DalamudViolet, Loc.Localize("LootItemName", "Item"));
ImGui.SameLine(col1);
ImGui.TextColored(ImGuiColors2.ToadViolet, Loc.Localize("LootEventType", "Event"));
ImGui.TextColored(ImGuiColors.DalamudViolet, Loc.Localize("LootEventType", "Event"));
ImGui.SameLine(col2);
ImGui.TextColored(ImGuiColors2.ToadViolet, Loc.Localize("LootPlayer", "Player"));
ImGui.TextColored(ImGuiColors.DalamudViolet, Loc.Localize("LootPlayer", "Player"));
ImGui.Separator();

foreach (var lootEvent in lootEvents)
Expand Down
1 change: 1 addition & 0 deletions src/Kapture/Kapture/UserInterface/PluginWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ protected PluginWindow(KapturePlugin plugin, string windowName, ImGuiWindowFlags
: base(windowName, flags)
{
this.Plugin = plugin;
this.RespectCloseHotkey = false;
}

/// <summary>
Expand Down
10 changes: 5 additions & 5 deletions src/Kapture/Kapture/UserInterface/RollWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
using System.Numerics;

using CheapLoc;
using Dalamud.DrunkenToad;
using Dalamud.Interface;
using Dalamud.Interface.Colors;
using ImGuiNET;

namespace Kapture
Expand Down Expand Up @@ -36,11 +36,11 @@ public override void Draw()
var col1 = 200f * ImGuiHelpers.GlobalScale;
var col2 = 258f * ImGuiHelpers.GlobalScale;

ImGui.TextColored(ImGuiColors2.ToadViolet, Loc.Localize("MonitorItemName", "Item"));
ImGui.TextColored(ImGuiColors.DalamudViolet, Loc.Localize("MonitorItemName", "Item"));
ImGui.SameLine(col1);
ImGui.TextColored(ImGuiColors2.ToadViolet, Loc.Localize("MonitorRollers", "Rollers"));
ImGui.TextColored(ImGuiColors.DalamudViolet, Loc.Localize("MonitorRollers", "Rollers"));
ImGui.SameLine(col2);
ImGui.TextColored(ImGuiColors2.ToadViolet, Loc.Localize("MonitorWinner", "Winner"));
ImGui.TextColored(ImGuiColors.DalamudViolet, Loc.Localize("MonitorWinner", "Winner"));

foreach (var lootRoll in lootRolls.ToList())
{
Expand All @@ -54,7 +54,7 @@ public override void Draw()
if (!ImGui.IsItemHovered()) continue;
ImGui.BeginTooltip();
ImGui.PushTextWrapPos(ImGui.GetFontSize() * 35.0f);
ImGui.TextColored(ImGuiColors2.ToadViolet, lootRoll.ItemName);
ImGui.TextColored(ImGuiColors.DalamudViolet, lootRoll.ItemName);
ImGui.Separator();
foreach (var roller in lootRoll.Rollers)
{
Expand Down
1 change: 1 addition & 0 deletions src/Kapture/Kapture/UserInterface/SettingsWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public SettingsWindow(KapturePlugin plugin)
{
this.plugin = plugin;
this.UpdateItemList();
this.RespectCloseHotkey = true;
}

private enum Tab
Expand Down

0 comments on commit 5397b33

Please sign in to comment.