mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-02-19 22:17:44 +01:00
Let left- and right-clicks on equip icons behave as on the combo.
This commit is contained in:
parent
59284157c6
commit
a2eb6ccc1f
2 changed files with 32 additions and 11 deletions
|
|
@ -3,6 +3,7 @@ using System.Numerics;
|
|||
using Dalamud.Interface;
|
||||
using Glamourer.Services;
|
||||
using ImGuiNET;
|
||||
using Lumina.Misc;
|
||||
using OtterGui;
|
||||
using OtterGui.Raii;
|
||||
using Penumbra.GameData.Structs;
|
||||
|
|
@ -25,6 +26,14 @@ public enum DataChange : byte
|
|||
|
||||
public static class UiHelpers
|
||||
{
|
||||
/// <summary> Open a combo popup with another method than the combo itself. </summary>
|
||||
public static void OpenCombo(string comboLabel)
|
||||
{
|
||||
var windowId = ImGui.GetID(comboLabel);
|
||||
var popupId = ~Crc32.Get("##ComboPopup", windowId);
|
||||
ImGui.OpenPopup(popupId);
|
||||
}
|
||||
|
||||
public static void DrawIcon(this EquipItem item, TextureService textures, Vector2 size)
|
||||
{
|
||||
var isEmpty = item.ModelId.Id == 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue