Any way to know a game texture's dimension?
Hi! Sorry my english.
I wanted to know if there is a way to know the dimensions of one of the textures in the game, especially the ones of the UI. I know there is a list of the textures in the game and I thank it, it helped me a lot, but it doesn't say the dimensions of them. Can I get the dimensions with the Zgoo addon? Or is there another way to get them? Thank you! |
Quote:
Move mouse cursor over the object you want to inspect and type /zgoo mouse. It will show you all available methods for that object. Find GetDimensions() and click on ":" next to it. It will show you width and height of that object. |
That would give you the dimensions of the control, not the actual texture file that the control is displaying. afaik, there is no such way.
|
Which textures specifically do you want to know? I have converted a bunch of them to PNG files so I know these ones.
|
Oh, Zgoo helped me, but it says 1985 (a lot of numbers here), 1488 (a lot of numbers here), I think that is not the dimension of the texture, because I think it is not a valid dimension for a dds file, or I am wrong? :confused:
I wanted to know the dimensions of the health, stamina and magicka frames (I know there are three frames, center, left and right) textures. Also the compass three frames too (center, left and right). If I'm not wrong, each frame has a different texture. Thank you! EDIT: I'm watching the icons in the Image Viewer of Wykkyd Framework, I give you the .dds path of those I think the texture I'm looking for, but maybe they are not all of them, I can't find the diferent frames. - /esoui/art/unitattributevisualizer/attributebar_small_frame.dds - /esoui/art/unitframes/target_health_frame.dds |
It should be kinda easy to solve this.
Make a Control with a Texture Control within. Set the Dimensions to 1x1. Set SetResizeToFitFile and SetResizeToFitDescendents to true, load the texture and get the new dimensions. |
Quote:
Code:
Tex01 = wm:CreateControl(nil, Tex01, CT_TEXTURE) I created the control, and say what texture will have Tex01. I set the dimensions as you said, and then set resize to fit file and set resize to fit descendents. But Tex01 will have to know what file is that one so Tex01 can be resized at the size of that file, right? (wow.. I don't know if you understand what I want to say xD) Thanks! |
Quote:
|
Hmm... I'm getting this error:
Code:
user:/AddOns/TestAddon/TestAddon.lua:32: attempt to index a nil value Code:
Tex01 = wm:CreateControl(TOP, Tex01, CT_TEXTURE) Any ideas? Thank you, you all are helping me a lot. |
Change it back to nil. That's supposed to be the global name/reference you give to the frame you are creating. If you give it no name, you use nil. TOP is already a constant in ESO - it's a number that is used for anchoring and placement.
|
It's still giving me the error :/
|
- /esoui/art/unitattributevisualizer/attributebar_small_frame.dds
256x64 - /esoui/art/unitframes/target_health_frame.dds 256x16 |
Quote:
|
/esoui/art/compass/compass.dds
64x64 Here's galleries for the folders containing those images (has the other associated images): /compass /unitframes /unitattributevisualizer As far as how I got them, I used google to find an old (from beta) dump of the DDS files and then batch converted them to PNG files using GIMP. There's also a list of textures on the Wiki that is similarly from the beta (that list is actually taken from Wykyyd's framework). I'm hoping it's not too long before ZO officially release things and we can get an up-to-date version of this, as there are many textures that aren't on that list. |
Wow... This is so awesome. Thank you Stormknight! And thank you all those who helped me :D I learned a lot!
|
If you create a CT_TEXTURE control using the file you're curious about, couldn't you then just use GetTextureFileDimensions() or GetTextureInfo()?
|
All times are GMT -6. The time now is 09:16 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI