Cannot SetTexCoord with Masked Texture?
Hi,
I tried using SetTexCoord on a Blizzard texture but I get this Lua error message: "Cannot set tex coords when texture has mask." Is this something new with 6.2.0? I can't find a way around this as usually I use wowprogramming.com but think it's outdated. No clue where you can find an updated API/Widgets list of functions. I tried using this on the new EncounterJournal Suggest frame: EncounterJournalSuggestFrame.Suggest1.icon to make it more square shaped like I usually do with circular textures ^^ Thanks for reading! |
Silly me, there are new functions for textures. The one I needed had the obvious name "SetMask"
Here is a complete list of functions for the texture widget: GetVertTile() SetMask("maskName") SetHorizTile GetTexCoord SetHeight GetTexture GetDrawLayer GetAtlas IsProtected CreateAnimationGroup SetVertTile GetBlendMode GetWidth Hide GetSize SetBlendMode GetNumPoints GetHorizTile SetGradient GetParent GetName IsDragging Show SetParent SetWidth SetNonBlocking() SetGradientAlpha SetDesaturated SetRotation SetTexCoord SetToFileData() GetObjectType IsMouseOver IsShown GetVertexColor GetLeft GetRight SetShown SetVertexColor SetAtlas GetBottom SetAlpha SetSize IsDesaturated SetPoint GetNonBlocking ClearAllPoints IsVisible SetAllPoints SetTexture GetAlpha IsObjectType GetHeight GetTop StopAnimating GetAnimationGroups GetPoint CanChangeProtectedState SetDrawLayer GetCenter GetRect IsForbidden To get this I just used: Lua Code:
|
I don't think any of this are new functions. At least i'm familiar with most of them.
|
Quote:
|
I played some with this, and if you want to replica the same textures then:
Lua Code:
|
Interesting stuff. Not completely sure what SetAtlas does but I can sort of understand that it links together a new texture with an already made texture? If so, what is the difference between using a virtual texture and inheriting it with the CreateTexture function and using SetAtlas and giving an XML texture an Atlas? Can't find any documentation about it.
|
Quote:
Atlases are textures with mappings onto standard textures that include normalized texture coordinates. useAtlasSize - Use the actual pixel size of the sub-texture as the in-game rectangle size. Example: Code:
<Texture atlas="_Garr_InfoBox-Top" horizTile="true" useAtlasSize="true"> Lua Code:
Source: http://us.battle.net/wow/en/forum/topic/13421662064 Sadly a lot of new stuff came with 6.0 are still widely unknown/unused/undocumented. |
|
Thanks a lot, especially for the kitty tutorial haha
That helped a lot! I am currently using TexCoords the primitive way so will have to use this to my advantage! |
All times are GMT -6. The time now is 12:23 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI