mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-19 23:24:18 +01:00
Merge branch 'master' of https://github.com/goaaats/Dalamud
This commit is contained in:
commit
d66a195697
1 changed files with 11 additions and 1 deletions
|
|
@ -138,7 +138,7 @@ namespace Dalamud.Interface
|
||||||
{
|
{
|
||||||
for (var i = 0; i < this.searchTask.Result.Count; i++)
|
for (var i = 0; i < this.searchTask.Result.Count; i++)
|
||||||
{
|
{
|
||||||
if (ImGui.Selectable(this.searchTask.Result[i].Name, this.selectedItemIndex == i))
|
if (ImGui.Selectable(this.searchTask.Result[i].Name, this.selectedItemIndex == i, ImGuiSelectableFlags.AllowDoubleClick))
|
||||||
{
|
{
|
||||||
this.selectedItemIndex = i;
|
this.selectedItemIndex = i;
|
||||||
|
|
||||||
|
|
@ -156,6 +156,16 @@ namespace Dalamud.Interface
|
||||||
this.selectedItemTex?.Dispose();
|
this.selectedItemTex?.Dispose();
|
||||||
this.selectedItemTex = null;
|
this.selectedItemTex = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ImGui.IsMouseDoubleClicked(0))
|
||||||
|
{
|
||||||
|
OnItemChosen?.Invoke(this, this.searchTask.Result[i]);
|
||||||
|
if (this.closeOnChoose)
|
||||||
|
{
|
||||||
|
this.selectedItemTex?.Dispose();
|
||||||
|
isOpen = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue