Skip to content

PortraitLayers

Rinaldo Bueno edited this page Jun 15, 2023 · 4 revisions

Tags Reference

All PortraitLayers properties
<PortraitLayers>
  <Layer>
    <AttachTo></AttachTo> <!-- joined/notJoined/won/lose -->
    <Source></Source> <!-- [subTexture ID from atlas]  -->
    <Color></Color>  <!-- hex color  -->
    <IsTeamColor>True</IsTeamColor>  <!-- boolean, will use the Team color on the layer -->
    <IsColorA></IsColorA>  <!-- boolean, will use the archer colorA on the layer -->
    <IsColorB></IsColorB>  <!-- boolean, will use the archer colorB on the layer -->
    <IsNeutral></IsNeutral> [bool]
    <IsTeamBlue></IsTeamBlue> [bool]
    <IsTeamRed></IsTeamRed> [bool]
  </Layer>
</PortraitLayers>

Sample

For a working sample of PortraitLayers, use the following this sample:

https://github.com/RedDude/ArcherLoader/wiki/Layers#color-layer-sample

For customs

In your custom archerData.xml

you can have a single or many you want, but they need to be children of

<PortraitLayers>
  <Layer>
  </Layer>
</PortraitLayers>

or

<PortraitLayer>
</PortraitLayer>

For Base Archers

To portrait layer a base archer, just add the layers on a spriteData

where For="" attribute is the name of the Archer. ie For="PINK", For="PINK_ALT", For="PINK_SECRET"

<sprite_string id="red/color/layer" Category="layer" For="RED">
  <PortraitLayer>
    <Layer>
    </Layer>
  </PortraitLayer>
</sprite_string>

Clone this wiki locally