Need help understanding why these texture are not filling the background...
I have a ZO_ScrollList template for a row that includes a backdrop. I do not understand why the backdrop is drawing the way that it is... The highlight backdrop is not even doing the same thing as the default backdrop...
I really want this looking like the default UI backpack inventroy except wider... I'm using the same background textures as the inventory based on what /zgoo showed me. I have been trying stuff to get it working but no luck so far... Anyone know what I need to do? Thanks. What it looks like: Using ControlOutline addon ( with a slight mod ): Here is my row template xml: Code:
<GuiXml> |
I trapped into this, too. :)
Code:
<Texture name="Highlight" textureFile="EsoUI/Art/Miscellaneous/listItem_highlight.dds" alpha="0" level="1" virtual="true"> Search for: ZO_ScrollList_EnableSelection(addonList, "ZO_ThinListHighlight", addonListRow_Select) |
Quote:
|
Quote:
|
Votan - That TextureCoords is working... I just have no idea why bottom=".625" helps????
|
Quote:
|
guys, really...
(thanks circonian, glad he can get a mod out by the time i only got the idea of how to do it :D) |
Quote:
|
This may not be what you want, maybe you have other plans for the highlight, but instead of creating it in your row template you can just pass a highlight template to ZO_ScrollList_EnableSelection(...)
and pick a different highlight texture: Lua Code:
If you don't need a callback & just want a highlight you can just leave the selectCallback nil & it will just highlight/unhighlight the rows for you when they are clicked. |
Quote:
|
Quote:
It is used for example if you have set of icons on the same texture - something like this: If your control should show just the green part of the texture, you will use coordinates: XML Code:
XML Code:
|
I just rechecked in my inventory to find out why there is 37.5% transparent on the highlight : the texture is centered vertically and looks thinner than the icon. (edit eeerff only because when the icon looks bigger when mouseovered...)
so if you want exactly the same look, just find a way to vertical-center it.(edit : don't mind me i'm just typing out loud) (like maybe just 18.75% toward the bottom,idk). but still it doesn't explain why they would leave this 37% transparent, there must be an easier way... (edit : i don't take that back) now edit with the picture, what i said was totally stupid. i should have known, my coffee is still in the mug rerere edit : something to do with this? SetAutoAdjustWrappedCoords()... no idea... but anyway the result of whatever the method is is that bottom coord of 0.625 |
Thanks for all the help!!!
Thanks everyone.
Got it looking good now. Even got the icon scaling animation in. I stop using ZO_ScrollList for the highlighting and did it manually. This is the same way that the default inventory does in inventory.lua and inventoryslot.lua. I was able to then reuse the existing virtual animation templates. |
How can I show the texture borders like Wandamey and circonian did? Is it a feature of TextureIt, another add-on or something else?
|
Quote:
|
Quote:
|
All times are GMT -6. The time now is 05:01 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI