<GuiXml>
  <Controls>
    <TopLevelControl name="CBs_MoveFrame" clampedToScreen="true" movable="true" mouseEnabled="true" virtual="true" />
    <TopLevelControl name="CBs_CombineFrame" clampedToScreen="true" movable="false" mouseEnabled="true" virtual="true">
      <Anchor point="CENTER" relativePoint="CENTER" relativeTo="GuiRoot"/>
      <Controls>
        <Control name="$(parent)HideAll" clampedToScreen="true" />
      </Controls>
    </TopLevelControl>
    <TopLevelControl name="CBs_Frame" clampedToScreen="true" movable="false" mouseEnabled="true" virtual="true">
      <Anchor point="CENTER" relativePoint="CENTER" relativeTo="GuiRoot"/>
    </TopLevelControl>
    <Control name="CBs_HideAll" clampedToScreen="true" virtual="true">
      <Controls>
        <Texture name="$(parent)BG" level="0" textureFile="/EsoUI/Art/ActionBar/abilityInset.dds">
          <Anchor point="TOPLEFT" relativeTo="$(parent)" />
          <Anchor point="BOTTOMRIGHT" relativeTo="$(parent)" />
        </Texture>
        <Button name="$(parent)ToggleSettings" relativeTo="$(parent)">
          <Anchor point="TOPLEFT" relativeTo="$(parent)" relativePoint="TOPRIGHT" offsetX="-19" />
          <Anchor point="BOTTOMRIGHT" relativeTo="$(parent)" />
          <Textures name="$(parent)Textures" normal="/EsoUI/Art/Chatwindow/chat_options_up.dds" pressed="/EsoUI/Art/Chatwindow/chat_options_down.dds" mouseOver="/EsoUI/Art/Chatwindow/chat_options_over.dds" />
        </Button>
        <Button name="$(parent)Button" relativeTo="$(parent)">
          <Anchor point="TOPLEFT" relativeTo="$(parent)" />
          <Anchor point="BOTTOMRIGHT" relativeTo="$(parent)" offsetX="-19" />
          <Textures name="$(parent)Textures" mouseOver="/EsoUI/Art/Buttons/decline_over.dds" pressed="/EsoUI/Art/Buttons/decline_down.dds" />
          <MouseButton button="1" enabled="true" />
          <MouseButton button="2" enabled="true" />
        </Button>
      </Controls>
    </Control>

    <Control name="CBs_Button" clampedToScreen="true" movable="false" virtual="true">
      <Controls>
        <Button name="$(parent)Button" mouseOverBlendMode="ADD">
          <AnchorFill />
          <MouseButton button="1" enabled="true" />
          <MouseButton button="2" enabled="true" />
          <Textures normal="/EsoUI/Art/ActionBar/abilityFrame64_up.dds" pressed="/EsoUI/Art/ActionBar/abilityFrame64_down.dds" mouseOver="/EsoUI/Art/ActionBar/actionBar_mouseOver.dds" />
        </Button>

        <Texture name="$(parent)BG" level="0" textureFile="/EsoUI/Art/ActionBar/abilityInset.dds">
          <Anchor point="TOPLEFT" relativeTo="$(parent)" />
          <Anchor point="BOTTOMRIGHT" relativeTo="$(parent)" />
        </Texture>
        <Texture name="$(parent)Icon" level="1">
          <Anchor point="CENTER" relativeTo="$(parent)" />
        </Texture>
        <Texture name="$(parent)CooldownIcon" level="1">
          <TextureCoords left="0" right="1" top="0" bottom="0" />
          <Anchor point="TOPLEFT" relativeTo="$(parent)Icon" relativePoint="TOPLEFT" />
          <Anchor point="BOTTOMRIGHT" relativeTo="$(parent)Icon" relativePoint="BOTTOMRIGHT" />
        </Texture>
        <Texture name="$(parent)Status" textureFile="/EsoUI/Art/ActionBar/ActionSlot_toggledon.dds" tier="HIGH" hidden="true">
          <Anchor point="TOPLEFT" relativeTo="$(parent)Icon" relativePoint="TOPLEFT" />
          <Anchor point="BOTTOMRIGHT" relativeTo="$(parent)Icon" relativePoint="BOTTOMRIGHT" />
        </Texture>

        <Cooldown name="$(parent)Cooldown" inherits="ZO_DefaultCooldown" tier="HIGH" alpha="0.7">
          <Anchor point="TOPLEFT" relativeTo="$(parent)Icon" relativePoint="TOPLEFT" />
          <Anchor point="BOTTOMRIGHT" relativeTo="$(parent)Icon" relativePoint="BOTTOMRIGHT" />
        </Cooldown>
        <Texture name="$(parent)CooldownCompleteAnimation" textureFile="/EsoUI/Art/ActionBar/coolDown_completeEFX.dds" blendMode="ADD" tier="HIGH" hidden="true">
          <Anchor point="TOPLEFT" relativeTo="$(parent)Icon" relativePoint="TOPLEFT" />
          <Anchor point="BOTTOMRIGHT" relativeTo="$(parent)Icon" relativePoint="BOTTOMRIGHT" />
        </Texture>

        <Label name="$(parent)ButtonText" wrapMode="ELLIPSIS" horizontalAlignment="CENTER" tier="HIGH" verticalAlignment="BOTTOM" font="ZoFontGameSmall">
          <Anchor point="BOTTOM" relativeTo="$(parent)Button" relativePoint="BOTTOM" />
        </Label>

        <Label name="$(parent)CooldownTime" inherits="ZO_CollectibleTileDefaultLabel" hidden="true" clampedToScreen="true">
          <Anchor point="TOPLEFT" relativeTo="$(parent)Icon" relativePoint="TOPLEFT" />
          <Anchor point="BOTTOMRIGHT" relativeTo="$(parent)Icon" relativePoint="BOTTOMRIGHT" />
        </Label>
      </Controls>
    </Control>

    <TopLevelControl name="CBs_Settings" clampedToScreen="true" movable="true" mouseEnabled="true" virtual="true">
      <Anchor point="CENTER" relativePoint="CENTER"/>
      <Dimensions x="544" y="944" />
      <DimensionConstraints minX="544" minY="944" />
      <Controls>
        <Backdrop name="$(parent)Bg" integralWrapping="true">
          <Anchor point="TOPLEFT" offsetX="-8" offsetY="-6"/>
          <Anchor point="BOTTOMRIGHT" offsetX="4" offsetY="4"/>

          <Edge file="EsoUI/Art/ChatWindow/chat_BG_edge.dds" edgeFileWidth="256" edgeFileHeight="256" edgeSize="32"/>
          <Center file="EsoUI/Art/ChatWindow/chat_BG_center.dds" />
          <Insets left="32" top="32" right="-32" bottom="-32" />
        </Backdrop>
        <Label name="$(parent)Title" font="ZoFontWinH1" modifyTextType="UPPERCASE">
          <Anchor point="TOPLEFT" offsetX="22" offsetY="22" />
        </Label>

        <Texture name="$(parent)Divider" inherits="ZO_Options_Divider">
          <Anchor point="TOPLEFT" relativeTo="$(parent)Title" relativePoint="BOTTOMLEFT" offsetY="2"/>
        </Texture>

        <Label name="$(parent)Label" inherits="ZO_Options_SectionTitleLabel">
          <Anchor point="TOPLEFT" relativeTo="$(parent)Divider" relativePoint="TOPLEFT" offsetY="5"/>
        </Label>

        <Control name="$(parent)List" inherits="ZO_ScrollList">
          <Anchor point="TOPLEFT" relativeTo="$(parent)Label" relativePoint="BOTTOMLEFT" offsetY="22"/>
          <Anchor point="BOTTOMRIGHT" offsetX="-22" offsetY="-22" />
        </Control>

        <Button name="CBs_" clickSound="Click" relativeTo="$(parent)">
          <Anchor point="TOPRIGHT" relativeTo="$(parent)" relativePoint="TOPRIGHT" offsetX="-10" offsetY="10" />
          <Dimensions x="22" y="22" />
        </Button>

        <Button name="$(parent)Close" clickSound="Click" relativeTo="$(parent)">
          <Anchor point="TOPRIGHT" relativeTo="$(parent)" relativePoint="TOPRIGHT" offsetX="-10" offsetY="10" />
          <Dimensions x="22" y="22" />
          <Textures name="$(parent)Textures" normal="/EsoUI/Art/Buttons/decline_up.dds" mouseOver="/EsoUI/Art/Buttons/decline_over.dds" pressed="/EsoUI/Art/Buttons/decline_down.dds" />
        </Button>

        <Button name="$(parent)Refresh" clickSound="Click" relativeTo="$(parent)">
          <Anchor point="TOPRIGHT" relativeTo="$(parent)Close" relativePoint="TOPRIGHT" offsetX="-32" />
          <Dimensions x="22" y="22" />
          <Textures name="$(parent)Textures" normal="/EsoUI/Art/Buttons/edit_save_up.dds" mouseOver="/EsoUI/Art/Buttons/edit_save_over.dds" pressed="/EsoUI/Art/Buttons/edit_save_down.dds" />
        </Button>

        <Button name="$(parent)Move" clickSound="Click" relativeTo="$(parent)">
          <Anchor point="TOPRIGHT" relativeTo="$(parent)Refresh" relativePoint="TOPRIGHT" offsetX="-32" />
          <Dimensions x="22" y="22" />
          <Textures name="$(parent)Textures" normal="/EsoUI/Art/Buttons/edit_up.dds" mouseOver="/EsoUI/Art/Buttons/edit_over.dds" pressed="/EsoUI/Art/Buttons/edit_down.dds" />
        </Button>
      </Controls>
    </TopLevelControl>

    <!-- Inspiration: ZO_Options_Checkbox -->
    <Control name="CBs_ListRow" mouseEnabled="true" virtual="true">
      <Dimensions x="510" y="26" />
      <Controls>
        <Button name="$(parent)Checkbox" inherits="ZO_CheckButton_Text" horizontalAlignment="LEFT" font="ZoFontWinH4" modifyTextType="UPPERCASE">
          <Anchor point="TOPLEFT" relativeTo="$(parent)" relativePoint="TOPLEFT" offsetX="425" />
          <Anchor point="BOTTOMRIGHT" relativeTo="$(parent)" relativePoint="BOTTOMRIGHT" />
          <FontColors normalColor="INTERFACE_COLOR_TYPE_TEXT_COLORS:INTERFACE_TEXT_COLOR_NORMAL" pressedColor="INTERFACE_COLOR_TYPE_TEXT_COLORS:INTERFACE_TEXT_COLOR_NORMAL" mouseOverColor="INTERFACE_COLOR_TYPE_TEXT_COLORS:INTERFACE_TEXT_COLOR_HIGHLIGHT" disabledColor="INTERFACE_COLOR_TYPE_TEXT_COLORS:INTERFACE_TEXT_COLOR_DISABLED" />
        </Button>
      </Controls>
    </Control>

    <Texture name="CBs_Divider" inherits="ZO_Options_Divider" virtual="true">
      <Dimensions x="512" y="2" />
    </Texture>
  </Controls>
</GuiXml>