mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Added tooltip that items in Changed Items can be clicked to create links.
This commit is contained in:
parent
f372cc001f
commit
13b275c83f
1 changed files with 13 additions and 1 deletions
|
|
@ -195,10 +195,22 @@ namespace Penumbra.UI
|
|||
{
|
||||
foreach( var item in Mod.Data.ChangedItems )
|
||||
{
|
||||
if( ImGui.Selectable( item.Key ) && item.Value is Item it )
|
||||
var ret = ImGui.Selectable( item.Key );
|
||||
var it = item.Value as Item;
|
||||
if( it == null )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if( ret )
|
||||
{
|
||||
ChatUtil.LinkItem( it );
|
||||
}
|
||||
|
||||
if( ImGui.IsItemHovered() )
|
||||
{
|
||||
ImGui.SetTooltip( "Left click to create link in chat." );
|
||||
}
|
||||
}
|
||||
|
||||
ImGui.EndListBox();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue