Quantcast
XML Error; Title Region Unknown - WoWInterface
Thread Tools Display Modes
10-02-22, 07:48 PM   #1
Sharpedge
A Fallenroot Satyr
Join Date: Sep 2022
Posts: 23
XML Error; Title Region Unknown

Can someone please point me in the right direction on this error.... This is on Beta. I'm at work and I believe thats what the error is/was XML: Region or Title Unknown. I can know for sure when I get home in like in a few hours.

Code:
<Ui xmlns="http://www.blizzard.com/wow/ui" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Frame name="LocationMessageView" enableMouse="true" movable="true">
    <Scripts>
      <OnLoad> 
        <![CDATA[
        self:RegisterForDrag("LeftButton")
        LocationMessageView:Hide()
        ]]>;
		LocationMessageView:RegisterEvent("ZONE_CHANGED_NEW_AREA");
      </OnLoad>
      <OnDragStart>self:StartMoving();</OnDragStart>
      <OnDragStop>self:StopMovingOrSizing();</OnDragStop>
      <OnShow>
      </OnShow>
	   <OnEvent>LocationMessageController:on_zone_changed(event)</OnEvent>
    </Scripts>

    <Size>
      <AbsDimension x="139" y="170" />
    </Size>
    <Anchors>
      <Anchor point="CENTER" relativeTo="UIParent">
        <Offset>
          <AbsDimension x="0" y="0" />
        </Offset>
      </Anchor>
    </Anchors>
    <TitleRegion setAllPoints="true" />
    <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
      <BackgroundInsets>
        <AbsInset left="11" right="12" top="12" bottom="11" />
      </BackgroundInsets>
      <TileSize>
        <AbsValue val="32" />
      </TileSize>
      <EdgeSize>
        <AbsValue val="32" />
      </EdgeSize>
    </Backdrop>
    <Frames>
      <Button name="AllClear" text="All Clear">
        <!--<FrameSkin skinid="dcb143e1-a4ab-4e7c-b934-1efa40101d21" frameid="2d508884-59c2-4f83-ae10-27aaad48391b" />-->
        <Size>
          <AbsDimension x="93" y="27" />
        </Size>
        <Anchors>
          <Anchor point="TOPLEFT">
            <Offset>
              <AbsDimension x="22" y="-59" />
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnClick>location_message_controller:on_all_clear_button_pressed()</OnClick>
        </Scripts>
        <NormalTexture file="Interface\Buttons\UI-Panel-Button-Up">
          <TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
        </NormalTexture>
        <PushedTexture file="Interface\Buttons\UI-Panel-Button-Down">
          <TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
        </PushedTexture>
        <DisabledTexture file="Interface\Buttons\UI-Panel-Button-Disabled">
          <TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
        </DisabledTexture>
        <HighlightTexture file="Interface\Buttons\UI-Panel-Button-Highlight" alphaMode="ADD">
          <TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
        </HighlightTexture>
        <ButtonText name="$parentText">
          <Anchors>
            <Anchor point="CENTER">
              <Offset>
                <AbsDimension x="0" y="1" />
              </Offset>
            </Anchor>
          </Anchors>
          <FontHeight>
            <AbsValue val="10" />
          </FontHeight>
        </ButtonText>
        <NormalFont style="GameFontNormal" />
        <HighlightFont style="GameFontHighlight" />
        <DisabledFont style="GameFontDisable" />
      </Button>
		<Button name="Incoming" text="Incoming">
			<!--<FrameSkin skinid="dcb143e1-a4ab-4e7c-b934-1efa40101d21" frameid="2d508884-59c2-4f83-ae10-27aaad48391b" />-->
			<Size>
				<AbsDimension x="93" y="27" />
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset>
						<AbsDimension x="22" y="-94" />
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>location_message_controller:on_incoming_button_pressed()</OnClick>
			</Scripts>
			<NormalTexture file="Interface\Buttons\UI-Panel-Button-Up">
				<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
			</NormalTexture>
			<PushedTexture file="Interface\Buttons\UI-Panel-Button-Down">
				<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
			</PushedTexture>
			<DisabledTexture file="Interface\Buttons\UI-Panel-Button-Disabled">
				<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
			</DisabledTexture>
			<HighlightTexture file="Interface\Buttons\UI-Panel-Button-Highlight" alphaMode="ADD">
				<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
			</HighlightTexture>
			<ButtonText name="$parentText">
				<Anchors>
					<Anchor point="CENTER">
						<Offset>
							<AbsDimension x="0" y="1" />
						</Offset>
					</Anchor>
				</Anchors>
				<FontHeight>
					<AbsValue val="10" />
				</FontHeight>
			</ButtonText>
			<NormalFont style="GameFontNormal" />
			<HighlightFont style="GameFontHighlight" />
			<DisabledFont style="GameFontDisable" />
		</Button>
		<Button name="SendMore" text="Send More">
			<!--<FrameSkin skinid="dcb143e1-a4ab-4e7c-b934-1efa40101d21" frameid="2d508884-59c2-4f83-ae10-27aaad48391b" />-->
			<Size>
				<AbsDimension x="93" y="27" />
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset>
						<AbsDimension x="22" y="-129" />
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>location_message_controller:on_sendmore_button_pressed()</OnClick>
			</Scripts>
			<NormalTexture file="Interface\Buttons\UI-Panel-Button-Up">
				<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
			</NormalTexture>
			<PushedTexture file="Interface\Buttons\UI-Panel-Button-Down">
				<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
			</PushedTexture>
			<DisabledTexture file="Interface\Buttons\UI-Panel-Button-Disabled">
				<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
			</DisabledTexture>
			<HighlightTexture file="Interface\Buttons\UI-Panel-Button-Highlight" alphaMode="ADD">
				<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
			</HighlightTexture>
			<ButtonText name="$parentText">
				<Anchors>
					<Anchor point="CENTER">
						<Offset>
							<AbsDimension x="0" y="1" />
						</Offset>
					</Anchor>
				</Anchors>
				<FontHeight>
					<AbsValue val="10" />
				</FontHeight>
			</ButtonText>
			<NormalFont style="GameFontNormal" />
			<HighlightFont style="GameFontHighlight" />
			<DisabledFont style="GameFontDisable" />
		</Button>
		<Button name="Incoming1" text="1">
			<!--<FrameSkin skinid="dcb143e1-a4ab-4e7c-b934-1efa40101d21" frameid="2d508884-59c2-4f83-ae10-27aaad48391b" />-->
			<Size>
				<AbsDimension x="15" y="29" />
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset>
						<AbsDimension x="22" y="-24" />
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>location_message_controller:on_incoming_button1_pressed()</OnClick>
			</Scripts>
			<NormalTexture file="Interface\Buttons\UI-Panel-Button-Up">
				<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
			</NormalTexture>
			<PushedTexture file="Interface\Buttons\UI-Panel-Button-Down">
				<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
			</PushedTexture>
			<DisabledTexture file="Interface\Buttons\UI-Panel-Button-Disabled">
				<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
			</DisabledTexture>
			<HighlightTexture file="Interface\Buttons\UI-Panel-Button-Highlight" alphaMode="ADD">
				<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
			</HighlightTexture>
			<ButtonText name="$parentText">
				<Anchors>
					<Anchor point="CENTER">
						<Offset>
							<AbsDimension x="0" y="1" />
						</Offset>
					</Anchor>
				</Anchors>
				<FontHeight>
					<AbsValue val="10" />
				</FontHeight>
			</ButtonText>
			<NormalFont style="GameFontNormal" />
			<HighlightFont style="GameFontHighlight" />
			<DisabledFont style="GameFontDisable" />
		</Button>
		<Button name="Incoming2" text="2">
			<!--<FrameSkin skinid="dcb143e1-a4ab-4e7c-b934-1efa40101d21" frameid="2d508884-59c2-4f83-ae10-27aaad48391b" />-->
			<Size>
				<AbsDimension x="15" y="29" />
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset>
						<AbsDimension x="37" y="-24" />
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>location_message_controller:on_incoming_button2_pressed()</OnClick>
			</Scripts>
			<NormalTexture file="Interface\Buttons\UI-Panel-Button-Up">
				<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
			</NormalTexture>
			<PushedTexture file="Interface\Buttons\UI-Panel-Button-Down">
				<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
			</PushedTexture>
			<DisabledTexture file="Interface\Buttons\UI-Panel-Button-Disabled">
				<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
			</DisabledTexture>
			<HighlightTexture file="Interface\Buttons\UI-Panel-Button-Highlight" alphaMode="ADD">
				<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
			</HighlightTexture>
			<ButtonText name="$parentText">
				<Anchors>
					<Anchor point="CENTER">
						<Offset>
							<AbsDimension x="0" y="1" />
						</Offset>
					</Anchor>
				</Anchors>
				<FontHeight>
					<AbsValue val="10" />
				</FontHeight>
			</ButtonText>
			<NormalFont style="GameFontNormal" />
			<HighlightFont style="GameFontHighlight" />
			<DisabledFont style="GameFontDisable" />
		</Button>
		<Button name="Incoming3" text="3">
			<!--<FrameSkin skinid="dcb143e1-a4ab-4e7c-b934-1efa40101d21" frameid="2d508884-59c2-4f83-ae10-27aaad48391b" />-->
			<Size>
				<AbsDimension x="15" y="29" />
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset>
						<AbsDimension x="52" y="-24" />
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>location_message_controller:on_incoming_button3_pressed()</OnClick>
			</Scripts>
			<NormalTexture file="Interface\Buttons\UI-Panel-Button-Up">
				<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
			</NormalTexture>
			<PushedTexture file="Interface\Buttons\UI-Panel-Button-Down">
				<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
			</PushedTexture>
			<DisabledTexture file="Interface\Buttons\UI-Panel-Button-Disabled">
				<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
			</DisabledTexture>
			<HighlightTexture file="Interface\Buttons\UI-Panel-Button-Highlight" alphaMode="ADD">
				<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
			</HighlightTexture>
			<ButtonText name="$parentText">
				<Anchors>
					<Anchor point="CENTER">
						<Offset>
							<AbsDimension x="0" y="1" />
						</Offset>
					</Anchor>
				</Anchors>
				<FontHeight>
					<AbsValue val="10" />
				</FontHeight>
			</ButtonText>
			<NormalFont style="GameFontNormal" />
			<HighlightFont style="GameFontHighlight" />
			<DisabledFont style="GameFontDisable" />
		</Button>
		<Button name="Incoming4" text="4">
			<!--<FrameSkin skinid="dcb143e1-a4ab-4e7c-b934-1efa40101d21" frameid="2d508884-59c2-4f83-ae10-27aaad48391b" />-->
			<Size>
				<AbsDimension x="15" y="29" />
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset>
						<AbsDimension x="67" y="-24" />
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>location_message_controller:on_incoming_button4_pressed()</OnClick>
			</Scripts>
			<NormalTexture file="Interface\Buttons\UI-Panel-Button-Up">
				<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
			</NormalTexture>
			<PushedTexture file="Interface\Buttons\UI-Panel-Button-Down">
				<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
			</PushedTexture>
			<DisabledTexture file="Interface\Buttons\UI-Panel-Button-Disabled">
				<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
			</DisabledTexture>
			<HighlightTexture file="Interface\Buttons\UI-Panel-Button-Highlight" alphaMode="ADD">
				<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
			</HighlightTexture>
			<ButtonText name="$parentText">
				<Anchors>
					<Anchor point="CENTER">
						<Offset>
							<AbsDimension x="0" y="1" />
						</Offset>
					</Anchor>
				</Anchors>
				<FontHeight>
					<AbsValue val="10" />
				</FontHeight>
			</ButtonText>
			<NormalFont style="GameFontNormal" />
			<HighlightFont style="GameFontHighlight" />
			<DisabledFont style="GameFontDisable" />
		</Button>
		<Button name="Incoming5" text="Zerg">
			<!--<FrameSkin skinid="dcb143e1-a4ab-4e7c-b934-1efa40101d21" frameid="2d508884-59c2-4f83-ae10-27aaad48391b" />-->
			<Size>
				<AbsDimension x="35" y="29" />
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset>
						<AbsDimension x="82" y="-24" />
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>location_message_controller:on_incoming_button5_pressed()</OnClick>
			</Scripts>
			<NormalTexture file="Interface\Buttons\UI-Panel-Button-Up">
				<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
			</NormalTexture>
			<PushedTexture file="Interface\Buttons\UI-Panel-Button-Down">
				<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
			</PushedTexture>
			<DisabledTexture file="Interface\Buttons\UI-Panel-Button-Disabled">
				<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
			</DisabledTexture>
			<HighlightTexture file="Interface\Buttons\UI-Panel-Button-Highlight" alphaMode="ADD">
				<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
			</HighlightTexture>
			<ButtonText name="$parentText">
				<Anchors>
					<Anchor point="CENTER">
						<Offset>
							<AbsDimension x="0" y="1" />
						</Offset>
					</Anchor>
				</Anchors>
				<FontHeight>
					<AbsValue val="10" />
				</FontHeight>
			</ButtonText>
			<NormalFont style="GameFontNormal" />
			<HighlightFont style="GameFontHighlight" />
			<DisabledFont style="GameFontDisable" />
		</Button>
	</Frames>
  </Frame>
</Ui>
  Reply With Quote
10-02-22, 08:25 PM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,579
I'll take a guess that maybe TitleRegion is no longer a thing.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote
10-02-22, 08:36 PM   #3
Sharpedge
A Fallenroot Satyr
Join Date: Sep 2022
Posts: 23
Addon works. Just get the error when the game is first launched.
  Reply With Quote
10-02-22, 09:08 PM   #4
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,579
Can't do much without a proper error description but if the addon works then it's probably not related to this XML if the addon is reliant on it to work.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote
10-02-22, 09:17 PM   #5
Sharpedge
A Fallenroot Satyr
Join Date: Sep 2022
Posts: 23
I'll post the entire error when I get home. The addon does work like I said. It throws like 16 errors that are like just on or two words long.

Last edited by Sharpedge : 10-02-22 at 09:25 PM.
  Reply With Quote
10-02-22, 10:13 PM   #6
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,579
10.x is reporting errors for unexpected XML elements and attributes that it didn't before.

If your errors aren't very informative, try using:
Code:
/console enableSourceLocationLookup 1
For more infomration on 10.x changes see.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote
10-02-22, 10:27 PM   #7
Sharpedge
A Fallenroot Satyr
Join Date: Sep 2022
Posts: 23
Ok, thank you. I'll look when I get home in a few hours.
  Reply With Quote
10-03-22, 05:38 AM   #8
Sharpedge
A Fallenroot Satyr
Join Date: Sep 2022
Posts: 23
There are 16 total:
Code:
Message: Unrecognized XML: TitleRegion
Message: Unrecognized XML attribute: setAllPoints
Message: Unrecognized XML: Backdrop
Message: Unrecognized XML attribute: bgFile
Message: Unrecognized XML attribute: edgeFile
Message: Unrecognized XML attribute: tile
Message: Unrecognized XML: BackgroundInsets
Message: Unrecognized XML: AbsInset
Message: Unrecognized XML attribute: left
Message: Unrecognized XML attribute: right
Message: Unrecognized XML attribute: top
Message: Unrecognized XML attribute: bottom
Message: Unrecognized XML: TileSize
Message: Unrecognized XML: AbsValue
Message: Unrecognized XML attribute: val
Message: Unrecognized XML: EdgeSize
Like I said, I can close out the error pane and the addon works just fine.
  Reply With Quote
10-03-22, 10:29 AM   #9
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,579
As per before, it seem s TitleRegions are no longer a thing and backdrops have not been part of every frame since 9.0. I would suggest looking at how Blizzard assigns backdrops in XML for the "new" way of doing it.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote
10-03-22, 10:40 AM   #10
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,744
I'm not sure if this still works in 10.0 yet, haven't delved into this addon much yet.

But this was a template I set up for my frames to inherit from in my MagePorts addon. I did have a built in backdropInfo table in use when I first used it but then they appear to have removed it so I created my own.

Lua Code:
  1. <Frame name = "XMP_BackdropTemplate" inherits = "BackdropTemplate" virtual = "true">
  2.  
  3. vvvvvvvvvv New Backdrop XML Code ( as of 9.0 ) vvvvvvvv
  4.  
  5.     <KeyValues>
  6.         <KeyValue key="backdropInfo" value="XRYSTAL_BACKDROP_TOOLTIP_16_16_5555" type="global"/>
  7.         <KeyValue key="backdropColor" value="BLACK" type="global"/>
  8.         <KeyValue key="backdropBorderColor" value="WHITE" type="global"/>
  9.     </KeyValues>  
  10.  
  11. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  12.  
  13.   vvvvvvv Old Backdrop XML Code vvvvvvvv    
  14.         <!--Backdrop
  15.             bgFile="Interface\Tooltips\UI-Tooltip-Background.png"
  16.             edgeFile="Interface\Tooltips\UI-Tooltip-Border.png"
  17.             tile="true" >
  18.             <EdgeSize val="12"/>
  19.             <TileSize val="16"/>
  20.             <BackgroundInsets left="5" right="5" top="5" bottom="5"/>
  21.             <Color r = "1" g = "1" b = "0" a = "1" />
  22.             <BorderColor r = "0" g = "1" b = "1" a = "1" />
  23.         </Backdrop-->>             
  24. ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  25.     </Frame>

Lua Code:
  1. XRYSTAL_BACKDROP_TOOLTIP_16_16_5555 = {
  2.     bgFile = "Interface\Tooltips\UI-Tooltip-Background",
  3.     edgeFile = "Interface\Tooltips\UI-Tooltip-Border",
  4.     tile = true,
  5.     tileEdge = true,
  6.     tileSize = 16,
  7.     edgeSize = 16,
  8.     insets = { left = 5, right = 5, top = 5, bottom = 5 },
  9. };
__________________
  Reply With Quote
10-03-22, 05:11 PM   #11
Sharpedge
A Fallenroot Satyr
Join Date: Sep 2022
Posts: 23
Originally Posted by Fizzlemizz View Post
As per before, it seem s TitleRegions are no longer a thing and backdrops have not been part of every frame since 9.0. I would suggest looking at how Blizzard assigns backdrops in XML for the "new" way of doing it.
Where might I find documentation on this?
  Reply With Quote
10-03-22, 05:31 PM   #12
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,579
The error message pretty much sums it up for the TitleRegion error.

To export Blizzard UI code to see for yourself what they do with XML backdrops, see, but Xrystal's reply seems to cover it .
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote
10-03-22, 08:46 PM   #13
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,744
You can also view it at https://github.com/Gethe/wow-ui-source/tree/beta but sometimes they are down for a few days during an update cycle - the last time I downloaded my own version from the PTR.
__________________
  Reply With Quote
10-03-22, 11:35 PM   #14
Sharpedge
A Fallenroot Satyr
Join Date: Sep 2022
Posts: 23
Originally Posted by Xrystal View Post
You can also view it at https://github.com/Gethe/wow-ui-source/tree/beta but sometimes they are down for a few days during an update cycle - the last time I downloaded my own version from the PTR.
Thank you.
  Reply With Quote
10-05-22, 05:36 PM   #15
Sharpedge
A Fallenroot Satyr
Join Date: Sep 2022
Posts: 23
Originally Posted by Xrystal View Post
I'm not sure if this still works in 10.0 yet, haven't delved into this addon much yet.

But this was a template I set up for my frames to inherit from in my MagePorts addon. I did have a built in backdropInfo table in use when I first used it but then they appear to have removed it so I created my own.

Lua Code:
  1. <Frame name = "XMP_BackdropTemplate" inherits = "BackdropTemplate" virtual = "true">
  2.  
  3. vvvvvvvvvv New Backdrop XML Code ( as of 9.0 ) vvvvvvvv
  4.  
  5.     <KeyValues>
  6.         <KeyValue key="backdropInfo" value="XRYSTAL_BACKDROP_TOOLTIP_16_16_5555" type="global"/>
  7.         <KeyValue key="backdropColor" value="BLACK" type="global"/>
  8.         <KeyValue key="backdropBorderColor" value="WHITE" type="global"/>
  9.     </KeyValues>  
  10.  
  11. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  12.  
  13.   vvvvvvv Old Backdrop XML Code vvvvvvvv    
  14.         <!--Backdrop
  15.             bgFile="Interface\Tooltips\UI-Tooltip-Background.png"
  16.             edgeFile="Interface\Tooltips\UI-Tooltip-Border.png"
  17.             tile="true" >
  18.             <EdgeSize val="12"/>
  19.             <TileSize val="16"/>
  20.             <BackgroundInsets left="5" right="5" top="5" bottom="5"/>
  21.             <Color r = "1" g = "1" b = "0" a = "1" />
  22.             <BorderColor r = "0" g = "1" b = "1" a = "1" />
  23.         </Backdrop-->>             
  24. ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  25.     </Frame>

Lua Code:
  1. XRYSTAL_BACKDROP_TOOLTIP_16_16_5555 = {
  2.     bgFile = "Interface\Tooltips\UI-Tooltip-Background",
  3.     edgeFile = "Interface\Tooltips\UI-Tooltip-Border",
  4.     tile = true,
  5.     tileEdge = true,
  6.     tileSize = 16,
  7.     edgeSize = 16,
  8.     insets = { left = 5, right = 5, top = 5, bottom = 5 },
  9. };
Just letting you know that this does work on 10.0 and 10.2
  Reply With Quote
Today, 02:56 AM   #16
ngen33r
A Kobold Labourer
Join Date: Dec 2022
Posts: 1
Can anyone explain where to add these "patches" to get an addon to stop showing the errors?

Originally Posted by Xrystal View Post
I'm not sure if this still works in 10.0 yet, haven't delved into this addon much yet.

But this was a template I set up for my frames to inherit from in my MagePorts addon. I did have a built in backdropInfo table in use when I first used it but then they appear to have removed it so I created my own.

Lua Code:
  1. <Frame name = "XMP_BackdropTemplate" inherits = "BackdropTemplate" virtual = "true">
  2.  
  3. vvvvvvvvvv New Backdrop XML Code ( as of 9.0 ) vvvvvvvv
  4.  
  5.     <KeyValues>
  6.         <KeyValue key="backdropInfo" value="XRYSTAL_BACKDROP_TOOLTIP_16_16_5555" type="global"/>
  7.         <KeyValue key="backdropColor" value="BLACK" type="global"/>
  8.         <KeyValue key="backdropBorderColor" value="WHITE" type="global"/>
  9.     </KeyValues>  
  10.  
  11. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  12.  
  13.   vvvvvvv Old Backdrop XML Code vvvvvvvv    
  14.         <!--Backdrop
  15.             bgFile="Interface\Tooltips\UI-Tooltip-Background.png"
  16.             edgeFile="Interface\Tooltips\UI-Tooltip-Border.png"
  17.             tile="true" >
  18.             <EdgeSize val="12"/>
  19.             <TileSize val="16"/>
  20.             <BackgroundInsets left="5" right="5" top="5" bottom="5"/>
  21.             <Color r = "1" g = "1" b = "0" a = "1" />
  22.             <BorderColor r = "0" g = "1" b = "1" a = "1" />
  23.         </Backdrop-->>             
  24. ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  25.     </Frame>

Lua Code:
  1. XRYSTAL_BACKDROP_TOOLTIP_16_16_5555 = {
  2.     bgFile = "Interface\Tooltips\UI-Tooltip-Background",
  3.     edgeFile = "Interface\Tooltips\UI-Tooltip-Border",
  4.     tile = true,
  5.     tileEdge = true,
  6.     tileSize = 16,
  7.     edgeSize = 16,
  8.     insets = { left = 5, right = 5, top = 5, bottom = 5 },
  9. };
  Reply With Quote
Today, 03:11 AM   #17
Sharpedge
A Fallenroot Satyr
Join Date: Sep 2022
Posts: 23
Originally Posted by ngen33r View Post
Can anyone explain where to add these "patches" to get an addon to stop showing the errors?
Post your XML
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » XML Error; Title Region Unknown

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