Thread Tools Display Modes
04/07/21, 01:02 PM   #1
Saenic
 
Saenic's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 7
Patterned background for custom window

I am writing on an Addon for my guild and for that I want to create a new window with some information. I managed to show the window using the example here https://wiki.esoui.com/Example.xml

Now I want to change the background to look like the patterned inventory oder character screen backgrounds. Anyone knows how to do this?
I had a look at BeamMeUp, but couldn't figure out how the background is set there.
  Reply With Quote
04/07/21, 01:09 PM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
The background control is this line here:
Code:
 <Backdrop name="$(parent)_BG" inherits="ZO_DefaultBackdrop"><AnchorFill/></Backdrop>
It inherits from ZO_DefaultBackdrop which provides the texture.
You can change the inherit control to something else, so that it will use this texture.
e.g. to ZO_CenterlessBackdrop, ZO_ThinBackdrop, and so on -> see file linked below for the templates
The ZO_DefaultBackdrop is defined here:
https://github.com/esoui/esoui/blob/...plates.xml#L91


Or you create your own backdrop control with own textures.



Edit:
https://github.com/esoui/esoui/tree/...game/inventory


Could be this one, not sure if the landing area is the whole inventory or not
https://github.com/esoui/esoui/blob/...ngarea.xml#L18

But from the invetory.xml file, where the ZO_PlayerInventory List control is defined:
https://github.com/esoui/esoui/blob/...ntory.xml#L135
-> It looks like th landing area is the background: https://github.com/esoui/esoui/blob/...ntory.xml#L139

Code:
<Controls>
                <Backdrop name="$(parent)BG" hidden="true">
                    <AnchorFill />

                    <Edge file="EsoUI/Art/Miscellaneous/insetHighlight_edge.dds" edgeFileWidth="128" edgeFileHeight="16" />
                    <Center file="EsoUI/Art/Miscellaneous/insetHighlight_center.dds" />

                    <Insets left="4" top="4" right="-4" bottom="-4" />
                </Backdrop>
            </Controls>

Last edited by Baertram : 04/07/21 at 01:16 PM.
  Reply With Quote
04/08/21, 01:25 AM   #3
Saenic
 
Saenic's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 7
Originally Posted by Baertram View Post
The background control is this line here:
It inherits from ZO_DefaultBackdrop which provides the texture.
You can change the inherit control to something else, so that it will use this texture.
e.g. to ZO_CenterlessBackdrop, ZO_ThinBackdrop, and so on -> see file linked below for the templates
The ZO_DefaultBackdrop is defined here:
https://github.com/esoui/esoui/blob/...plates.xml#L91
Thanks, I didn't know about this list. It was
Code:
<Backdrop name="$(parent)_BG" inherits="ZO_MinorMungeBackdrop_SemiTransparentBlack"><AnchorFill/></Backdrop>
  Reply With Quote

ESOUI » Developer Discussions » Graphics Help » Patterned background for custom window

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off