Originally Posted by Seerah
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:
Error: 4 / 4 Time: 13:06:27 Gametime: 323.748 Count: 1
Load[WindowTemplates.xml(76, 17)] (Control): Error: Unable to create control [$(parent)MungeOverlay].
Originally Posted by Garkin
You will need to get icon textures from itemlinks:
Lua Code:
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
EDIT:
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:
local AtlasMapBackGroundDummy = wm:CreateControl("AtlasMapBackGroundDummy", AtlasWindow, CT_TEXTURE)
AtlasMapBackGroundDummy:SetDimensions(548, 548)
AtlasMapBackGroundDummy:SetAnchor(RIGHT, AtlasWindow, nil, -46, 80)
AtlasMapBackGroundDummy:SetDrawLayer(0)
local AtlasMapBackGround = wm:CreateControlFromVirtual(nil, AtlasMapBackGroundDummy, "ZO_DefaultBackdrop")
AtlasMapBackGround:SetAnchorFill(AtlasMapBackGroundDummy)
AtlasMapBackGround:SetDrawLayer(0)