ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Graphics Help (https://www.esoui.com/forums/forumdisplay.php?f=176)
-   -   Patterned background for custom window (https://www.esoui.com/forums/showthread.php?t=9676)

Saenic 04/07/21 01:02 PM

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.

Baertram 04/07/21 01:09 PM

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>


Saenic 04/08/21 01:25 AM

Quote:

Originally Posted by Baertram (Post 43680)
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>


All times are GMT -6. The time now is 05:59 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI