diff --git a/TextureAtlasViewer.lua b/TextureAtlasViewer.lua index 2809720..636381f 100644 --- a/TextureAtlasViewer.lua +++ b/TextureAtlasViewer.lua @@ -591,6 +591,23 @@ function TAV_DisplayContainerMixin:ShowAtlasInfo(name, atlasInfo) TAV_InfoPanel.IconHorizontalTile:SetAtlas(atlasInfo.tilesHorizontally and "ParagonReputation_Checkmark" or "communities-icon-redx"); TAV_InfoPanel.IconVerticalTile:SetAtlas(atlasInfo.tilesVertically and "ParagonReputation_Checkmark" or "communities-icon-redx"); TAV_InfoPanel.AlertIndicator:SetShown(atlasInfo.missing); + + TAV_InfoPanel.Lua:SetText(string.format( + 'tex:SetTexCoord(%s, %s, %s, %s)', + atlasInfo.leftTexCoord, + atlasInfo.rightTexCoord, + atlasInfo.topTexCoord, + atlasInfo.bottomTexCoord + )) + + TAV_InfoPanel.XML:SetText(string.format( + '', + atlasInfo.leftTexCoord, + atlasInfo.rightTexCoord, + atlasInfo.topTexCoord, + atlasInfo.bottomTexCoord + )) + TAV_InfoPanel:Show(); end diff --git a/TextureAtlasViewer.xml b/TextureAtlasViewer.xml index 54abac8..c740a44 100644 --- a/TextureAtlasViewer.xml +++ b/TextureAtlasViewer.xml @@ -681,7 +681,7 @@ - + @@ -721,69 +721,104 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + @@ -815,32 +850,32 @@ - + - + - + - + - +