ESOUI - View Single Post - Need help with getting some textures
View Single Post
05/17/14, 05:00 AM   #4
Mitsarugi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 23
Originally Posted by Seerah View Post
Well, what is the error?

Also, that can't be what is in your code... You have WindowBorder: as your variable name. Lastly, ZO_DefaultBackdrop works better, in my experience, if you give that window a name. Your variable is already global, you can use that name.
the error is (using Zbug):
lua Code:
  1. Error: 4 / 4   Time: 13:06:27   Gametime: 323.748   Count: 1
  3. Load[WindowTemplates.xml(76, 17)] (Control): Error: Unable to create control [$(parent)MungeOverlay].

Originally Posted by Garkin View Post
You will need to get icon textures from itemlinks:
Lua Code:
  1. local icon, sellPrice, meetsUsageRequirement, equipType, itemStyle = GetItemLinkInfo(itemLink)

How to create a fake item link and where you can get itemId's is described in old feature request for your TreasureMaps

And exactly as Seerah said, if you use ZO_DefaultBackdrop, your window must have name. Its because ZO_DefaultBackdrop contains texture with name "$(parent)MungeOverlay".
thanks i'll try that out
as for the code i use it was like this (just renamed it to "window")
Lua Code:
  1. local AtlasMapBackGroundDummy = wm:CreateControl("AtlasMapBackGroundDummy",  AtlasWindow, CT_TEXTURE)
  2.   AtlasMapBackGroundDummy:SetDimensions(548, 548)
  3.   AtlasMapBackGroundDummy:SetAnchor(RIGHT, AtlasWindow, nil, -46, 80)
  4.   AtlasMapBackGroundDummy:SetDrawLayer(0)
  6.   local AtlasMapBackGround = wm:CreateControlFromVirtual(nil, AtlasMapBackGroundDummy, "ZO_DefaultBackdrop")
  7.   AtlasMapBackGround:SetAnchorFill(AtlasMapBackGroundDummy)
  8.   AtlasMapBackGround:SetDrawLayer(0)
@xMitsarugix - (EU server)

Last edited by Mitsarugi : 05/17/14 at 05:08 AM.
  Reply With Quote