Thread Tools Display Modes
11-22-20, 04:59 PM   #1
Shitara
A Murloc Raider
Join Date: Nov 2020
Posts: 7
xml backdrop problem, I think

Hi, I've been trying to get this addon showing up properly. It functions fine and does what it's supposed to do, it's just lost it's colors.

https://photos.app.goo.gl/g6t2hrEmAQxbQg1r6

I have tried inherits="BackdropTemplate" in the frame and inherit="prepend" in OnLoad part. Didn't fix it. My poor attempt to fix it is at the bottom of the post

Thank you in advance for any help to fix it.

There are 3 files, TOC, Lua and XML

TOC
Code:
## Author: Olivier Pelletier.
## Interface: 90001
## Notes: Useful tool to send money to your banker.
## Title: [EGTB] EveryGoldToBanker
## Version: 1.0.6
##SavedVariablesPerCharacter: EVERYGOLDTOBANKER_CONFIG2
## X-Curse-Packaged-Version: v1.0.7-release
## X-Curse-Project-Name: [EGTB] EveryGoldToBanker
## X-Curse-Project-ID: everygoldtobanker
## X-Curse-Repository-ID: wow/everygoldtobanker/mainline
EveryGoldToBanker.xml
EveryGoldToBanker.lua
Lua
Code:
-- Author      : Olivier Pelletier
-- Version : 18/03/2015

local AddOns_name = "EveryGoldToBanker";

RECEIVER = "No receiver";
AMOUNT = 100;
VISIBILITY = "show";
EVERYGOLDTOBANKER_CONFIG2 = {RECEIVER,AMOUNT};

SlashCmdList["EGTB_TOGGLE"] = ToggleEGTBFrame;
SLASH_EGTB_TOGGLE1 = "/egtb";
SLASH_EGTB_TOGGLE2 = "/everygoldtobanker";

function EveryGoldToBankerCalculator_OnLoad()
	EveryGoldToBankerCalculator:RegisterEvent("PLAYER_ENTERING_WORLD");
	EveryGoldToBankerCalculator:RegisterEvent("MAIL_SHOW");
	EveryGoldToBankerCalculator:RegisterEvent("MAIL_CLOSED");
	EveryGoldToBankerCalculator:RegisterEvent("ADDON_LOADED");
	EveryGoldToBankerCalculator:RegisterEvent("PLAYER_LOGOUT");	
	EveryGoldToBankerCalculator:RegisterForDrag("LeftButton");	
end

function EveryGoldToBankerCalculator_OnEvent(frame, event, firstArg, secondArg)
	if (event == "PLAYER_ENTERING_WORLD") then		
		EveryGoldToBankerCalculator:Hide();
	elseif (event == "MAIL_SHOW") then
		if (GameMenuFrame:IsVisible() ~= 1) then
			if (VISIBILITY == "show") then
				EveryGoldToBankerCalculator:Show();
				SettingFrame:Hide();
				AmountEditBox:SetNumber(EVERYGOLDTOBANKER_CONFIG2[2]);
				ReceiverEditBox:SetText(EVERYGOLDTOBANKER_CONFIG2[1]);
				DefaultAmountEditBox:SetNumber(EVERYGOLDTOBANKER_CONFIG2[2]);
				DefaultReceiverEditBox:SetText(EVERYGOLDTOBANKER_CONFIG2[1]);
			end
		end		
	elseif (event == "MAIL_CLOSED") then
		EveryGoldToBankerCalculator:Hide();
	elseif (event == "ADDON_LOADED") then
		if (firstArg == AddOns_name) then
			print("EveryGoldToBanker loaded!");
		end
	end
end

function EveryGoldToBankerCalculator_OnDragStart()
	EveryGoldToBankerCalculator:StartMoving();
end

function EveryGoldToBankerCalculator_OnDragStop()
	EveryGoldToBankerCalculator:StopMovingOrSizing();
end

function CheckButton_OnClick()
	amountToKeep = AmountEditBox:GetNumber()*10000
	amountInBag = GetMoney()
	
	amountToSend = CalculateGoldToSend()
	amountToSendConverted = Convert(amountToSend)	
	
	if (amountToKeep == amountInBag) then
		Response:SetText("You don't have to send money.");
	elseif (amountToSend < 0) then
		Response:SetText("You don't have enough money.");
	else
		Response:SetText("You have to send \n " .. amountToSendConverted);
	end	
end

function SendButton_OnClick()
	amountToKeep = AmountEditBox:GetNumber()*10000
	amountInBag = GetMoney()
	
	tempReceiver = ReceiverEditBox:GetText()
	amountToSend = CalculateGoldToSend()
	amountToSendConverted = Convert(amountToSend)	
	
	MailFrameTab2:Click();		
	
	if (amountToKeep == amountInBag) then
		Response:SetText("You don't have to send money.");
	elseif (amountToSend < 0) then
		Response:SetText("You don't have enough money.");
	else
		if (tempReceiver ~= "No receiver") then
			SetSendMailMoney(amountToSend);
			SendMail(tempReceiver,"EveryMoneyToBanker auto-send system.","");
		else
			Response:SetText("You didn't change the receiver name. CHANGE IT!");
		end
	end
end

function SettingButton_OnClick()
	if(SettingFrame:IsVisible()) then
		SettingFrame:Hide();
	else
		SettingFrame:Show();
	end
end

function DoneSettingButton_OnClick()
	defaultReceiver = DefaultReceiverEditBox:GetText();
	defaultAmount = DefaultAmountEditBox:GetText();
	EVERYGOLDTOBANKER_CONFIG2 = {defaultReceiver, defaultAmount};
	
	AmountEditBox:SetNumber(defaultAmount);
	ReceiverEditBox:SetText(defaultReceiver);
	
	SettingFrame:Hide();
end

function Convert(amountToConvert)
	amountString = "" .. amountToConvert
	length = strlen(amountString)
	
	copper = "" .. strsub(amountString,length-1,length)
	silver = "" .. strsub(amountString,length-3,length-2)
	gold = "" .. strsub(amountString,length-(length-1),length-4)
	
	if (amountToConvert < 10000) then
		amountConverted = "" .. silver .. " s. " .. copper .. " c."
	elseif (amountToConvert < 100) then
		amountConverted = "" .. copper .. " c."
	else
	amountConverted = "" .. gold .. " g. " .. silver .. " s. " .. copper .. " c."
	end
	
	return amountConverted
end

function CalculateGoldToSend()
	amountToKeep = AmountEditBox:GetNumber()*10000
	amountInBag = GetMoney()
	sendPrice = GetSendMailPrice()
	
	amountToSend = amountInBag-amountToKeep-sendPrice
	
	return amountToSend
end

function ToggleEGTBFrame()
	if (VISIBILITY == "show") then
		VISIBILITY = "hide"
		EveryGoldToBankerCalculator:Hide();
		print("EGTB toggled (hide)");
	elseif (VISIBILITY == "hide") then
		VISIBILITY = "show"
		if (MailFrame:IsVisible()) then
			EveryGoldToBankerCalculator:Show();			
		end
		print("EGTB toggled (show)");
	end
end
XML-Original
Code:
<Ui xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.blizzard.com/wow/ui/">
	<Script file="EveryGoldToBanker.lua" />
	<Frame name="EveryGoldToBankerCalculator" parent="UIParent" frameStrata="DIALOG" toplevel="true" movable="true" enableMouse="true">
		<Size>
			<AbsDimension x="290" y="234" />
		</Size>
		<Anchors>
			<Anchor point="CENTER">
				<Offset x="-25" y="1" />
			</Anchor>
		</Anchors>
		<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Gold-Border">
			<BackgroundInsets>
				<AbsInset left="11" right="12" top="42" bottom="11" />
			</BackgroundInsets>
			<TileSize>
				<AbsValue val="32" />
			</TileSize>
			<EdgeSize>
				<AbsValue val="32" />
			</EdgeSize>
		</Backdrop>
		<Frames>
			<MessageFrame name="TitleFrame" parent="">
				<FontString inherits="ErrorFont" justifyH="CENTER" />
				<Size>
					<AbsDimension x="290" y="48" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="0" y="0" />
					</Anchor>
				</Anchors>
				<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Gold-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Gold-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>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="Title" inherits="GameFontNormal" text="EveryGoldToBanker">
							<Size>
								<AbsDimension x="290" y="48" />
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset x="0" y="0" />
								</Anchor>
							</Anchors>
							<FontHeight>
								<AbsValue val="13" />
							</FontHeight>
							<Color r="1" g="1" b="1" />
						</FontString>
					</Layer>
				</Layers>
			</MessageFrame>
			<MessageFrame name="AmountFrame" parent="">
				<FontString inherits="ErrorFont" justifyH="CENTER" />
				<Size>
					<AbsDimension x="145" y="60" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="14" y="-41" />
					</Anchor>
				</Anchors>
				<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>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="Amount" inherits="GameFontNormal" text="Amount desired to keep:">
							<Size>
								<AbsDimension x="145" y="60" />
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset x="0" y="0" />
								</Anchor>
							</Anchors>
							<Color r="1" g="1" b="1" />
						</FontString>
					</Layer>
				</Layers>
			</MessageFrame>
			<MessageFrame name="ResponseFrame" parent="">
				<FontString inherits="ErrorFont" justifyH="CENTER" />
				<Size>
					<AbsDimension x="220" y="50" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="34" y="-102" />
					</Anchor>
				</Anchors>
				<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>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="Response" inherits="GameFontNormal" text="You didn't enter a value yet.">
							<Size>
								<AbsDimension x="220" y="50" />
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset x="0" y="0" />
								</Anchor>
							</Anchors>
							<Color r="1" g="1" b="1" />
						</FontString>
					</Layer>
				</Layers>
			</MessageFrame>
			<MessageFrame name="ReceiverFrame" parent="">
				<FontString inherits="ErrorFont" justifyH="CENTER" />
				<Size>
					<AbsDimension x="145" y="45" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="14" y="-151" />
					</Anchor>
				</Anchors>
				<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>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="Receiver" inherits="GameFontNormal" text="Receiver name:">
							<Size>
								<AbsDimension x="145" y="45" />
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset x="0" y="0" />
								</Anchor>
							</Anchors>
							<Color r="1" g="1" b="1" />
						</FontString>
					</Layer>
				</Layers>
			</MessageFrame>
			<MessageFrame name="GoldIndicatorFrame" parent="">
				<FontString inherits="ErrorFont" justifyH="CENTER" />
				<Size>
					<AbsDimension x="15" y="15" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="252" y="-63" />
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="GoldIndicator" inherits="GameFontNormal" text="g.">
							<Size>
								<AbsDimension x="15" y="15" />
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset x="0" y="0" />
								</Anchor>
							</Anchors>
							<Shadow>
								<Offset>
									<AbsDimension x="1" y="-1" />
								</Offset>
							<Color r="0" g="0" b="0" a="0" />
							</Shadow>
						</FontString>
					</Layer>
				</Layers>
			</MessageFrame>
			<EditBox name="AmountEditBox" inherits="InputBoxTemplate" toplevel="true" numeric="true" autoFocus="false">
				<Size>
					<AbsDimension x="75" y="30" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="175" y="-55" />
					</Anchor>
				</Anchors>
				<Scripts>
					<OnEnterPressed function="CheckButton_OnClick" />
				</Scripts>
			</EditBox>
			<EditBox name="ReceiverEditBox" inherits="InputBoxTemplate" toplevel="true" autoFocus="false">
				<Size>
					<AbsDimension x="90" y="30" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="175" y="-158" />
					</Anchor>
				</Anchors>
				<Scripts>
					<OnEnterPressed>
						self:ClearFocus();
					</OnEnterPressed>
				</Scripts>
			</EditBox>			
			<Button name="CheckButton" inherits="UIPanelButtonTemplate" toplevel="true" text="Check">
				<Size>
					<AbsDimension x="55" y="25" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="187" y="-81" />
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick function="CheckButton_OnClick" />
				</Scripts>
			</Button>
			<Button name="SendButton" inherits="UIPanelButtonTemplate" toplevel="true" text="Send">
				<Size>
					<AbsDimension x="50" y="25" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="121" y="-197" />
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick function="SendButton_OnClick" />
				</Scripts>
			</Button>
			<Button name="SettingButton" inherits="UIPanelButtonTemplate" toplevel="true" text="Setting">
				<Size>
					<AbsDimension x="60" y="25" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="205" y="-197" />
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick function="SettingButton_OnClick" />
				</Scripts>
			</Button>
			<Button name="MinimizeButton" inherits="" toplevel="true" text="x">
				<Size>
					<AbsDimension x="18" y="19" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="261" y="-10" />
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick function="ToggleEGTBFrame" />
				</Scripts>
				<NormalTexture inherits="UIPanelButtonUpTexture" file="Interface\BUTTONS\UI-Panel-HideButton-Up">
					<TexCoords left="0" right="1" top="0" bottom="1" />
				</NormalTexture>
				<PushedTexture inherits="UIPanelButtonDownTexture" file="Interface\BUTTONS\UI-Panel-HideButton-Down">
					<TexCoords left="0" right="1" top="0" bottom="1" />
				</PushedTexture>
				<DisabledTexture inherits="UIPanelButtonDisabledTexture" file="Interface\BUTTONS\UI-Panel-HideButton-Disabled">
					<TexCoords left="0" right="1" top="0" bottom="1" />
				</DisabledTexture>
				<HighlightTexture inherits="UIPanelButtonHighlightTexture" file="Interface\BUTTONS\UI-Panel-Button-Highlight" alphaMode="ADD">
					<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
				</HighlightTexture>
			</Button>
			<Frame name="SettingFrame" parent="" frameStrata="HIGH" toplevel="true" movable="true" enableMouse="true">
				<Size>
					<AbsDimension x="260" y="134" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="15" y="-219" />
					</Anchor>
				</Anchors>
				<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Gold-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>
					<MessageFrame name="DefaultReceiverFrame" parent="">
						<FontString inherits="ErrorFont" justifyH="CENTER" />
						<Size>
							<AbsDimension x="130" y="45" />
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset x="12" y="-12" />
							</Anchor>
						</Anchors>
						<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>
						<Layers>
							<Layer level="OVERLAY">
								<FontString name="DefaultReceiver" inherits="GameFontNormal" text="Default receiver:">
									<Size>
										<AbsDimension x="130" y="45" />
									</Size>
									<Anchors>
										<Anchor point="TOPLEFT">
											<Offset x="0" y="0" />
										</Anchor>
									</Anchors>
									<Color r="1" g="1" b="1" />
								</FontString>
							</Layer>
						</Layers>
					</MessageFrame>
					<MessageFrame name="DefaultAmountFrame" parent="">
						<FontString inherits="ErrorFont" justifyH="CENTER" />
						<Size>
							<AbsDimension x="130" y="45" />
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset x="12" y="-54" />
							</Anchor>
						</Anchors>
						<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>
						<Layers>
							<Layer level="OVERLAY">
								<FontString name="DefaultAmount" inherits="GameFontNormal" text="Default amount:">
									<Size>
										<AbsDimension x="130" y="45" />
									</Size>
									<Anchors>
										<Anchor point="TOPLEFT">
											<Offset x="0" y="0" />
										</Anchor>
									</Anchors>
									<Color r="1" g="1" b="1" />
								</FontString>
							</Layer>
						</Layers>
					</MessageFrame>
					<MessageFrame name="GoldIndicatorFrame2" parent="">
						<FontString inherits="ErrorFont" justifyH="CENTER" />
						<Size>
							<AbsDimension x="15" y="15" />
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset x="225" y="-65" />
							</Anchor>
						</Anchors>
						<Layers>
							<Layer level="OVERLAY">
								<FontString name="GoldIndicator2" inherits="GameFontNormal" text="g.">
									<Size>
										<AbsDimension x="15" y="15" />
									</Size>
									<Anchors>
										<Anchor point="TOPLEFT">
											<Offset x="0" y="0" />
										</Anchor>
									</Anchors>
									<Shadow>
										<Offset>
											<AbsDimension x="1" y="-1" />
										</Offset>
									<Color r="0" g="0" b="0" a="0" />
									</Shadow>
								</FontString>
							</Layer>
						</Layers>
					</MessageFrame>
					<EditBox name="DefaultReceiverEditBox" inherits="InputBoxTemplate" toplevel="true" autoFocus="false">
						<Size>
							<AbsDimension x="90" y="30" />
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset x="147" y="-18" />
							</Anchor>
						</Anchors>
						<Scripts>
							<OnEnterPressed>
								self:ClearFocus();
								DefaultAmountEditBox:SetFocus();
							</OnEnterPressed>
						</Scripts>
					</EditBox>
					<EditBox name="DefaultAmountEditBox" inherits="InputBoxTemplate" toplevel="true" numeric="true" autoFocus="false">
						<Size>
							<AbsDimension x="75" y="30" />
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset x="148" y="-57" />
							</Anchor>
						</Anchors>
						<Scripts>
							<OnEnterPressed function="DoneSettingButton_OnClick" />
						</Scripts>
					</EditBox>
					<Button name="DoneSettingButton" inherits="UIPanelButtonTemplate" toplevel="true" text="Done">
						<Size>
							<AbsDimension x="50" y="25" />
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset x="105" y="-97" />
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick function="DoneSettingButton_OnClick" />
						</Scripts>
					</Button>
				</Frames>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad function="EveryGoldToBankerCalculator_OnLoad" />
			<OnEvent>
				EveryGoldToBankerCalculator_OnEvent(self, event, ...)
			</OnEvent>
			<OnDragStart function="EveryGoldToBankerCalculator_OnDragStart" />
			<OnDragStop function="EveryGoldToBankerCalculator_OnDragStop" />
		</Scripts>
	</Frame>
</Ui>
XML-Changed (failed, didn't fix it)
Code:
<Ui xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.blizzard.com/wow/ui/">
	<Script file="EveryGoldToBanker.lua" />
	<Frame name="EveryGoldToBankerCalculator" parent="UIParent" frameStrata="DIALOG" toplevel="true" movable="true" enableMouse="true" inherits="BackdropTemplate">
		<Size>
			<AbsDimension x="290" y="234" />
		</Size>
		<Anchors>
			<Anchor point="CENTER">
				<Offset x="-25" y="1" />
			</Anchor>
		</Anchors>
		<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Gold-Border">
			<BackgroundInsets>
				<AbsInset left="11" right="12" top="42" bottom="11" />
			</BackgroundInsets>
			<TileSize>
				<AbsValue val="32" />
			</TileSize>
			<EdgeSize>
				<AbsValue val="32" />
			</EdgeSize>
		</Backdrop>
		<Frames>
			<MessageFrame name="TitleFrame" parent="" inherits="BackdropTemplate">
				<FontString inherits="ErrorFont" justifyH="CENTER" />
				<Size>
					<AbsDimension x="290" y="48" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="0" y="0" />
					</Anchor>
				</Anchors>
				<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Gold-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Gold-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>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="Title" inherits="GameFontNormal" text="EveryGoldToBanker">
							<Size>
								<AbsDimension x="290" y="48" />
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset x="0" y="0" />
								</Anchor>
							</Anchors>
							<FontHeight>
								<AbsValue val="13" />
							</FontHeight>
							<Color r="1" g="1" b="1" />
						</FontString>
					</Layer>
				</Layers>
			</MessageFrame>
			<MessageFrame name="AmountFrame" parent="" inherits="BackdropTemplate">
				<FontString inherits="ErrorFont" justifyH="CENTER" />
				<Size>
					<AbsDimension x="145" y="60" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="14" y="-41" />
					</Anchor>
				</Anchors>
				<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>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="Amount" inherits="GameFontNormal" text="Amount desired to keep:">
							<Size>
								<AbsDimension x="145" y="60" />
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset x="0" y="0" />
								</Anchor>
							</Anchors>
							<Color r="1" g="1" b="1" />
						</FontString>
					</Layer>
				</Layers>
			</MessageFrame>
			<MessageFrame name="ResponseFrame" parent="" inherits="BackdropTemplate">
				<FontString inherits="ErrorFont" justifyH="CENTER" />
				<Size>
					<AbsDimension x="220" y="50" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="34" y="-102" />
					</Anchor>
				</Anchors>
				<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>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="Response" inherits="GameFontNormal" text="You didn't enter a value yet.">
							<Size>
								<AbsDimension x="220" y="50" />
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset x="0" y="0" />
								</Anchor>
							</Anchors>
							<Color r="1" g="1" b="1" />
						</FontString>
					</Layer>
				</Layers>
			</MessageFrame>
			<MessageFrame name="ReceiverFrame" parent="" inherits="BackdropTemplate">
				<FontString inherits="ErrorFont" justifyH="CENTER" />
				<Size>
					<AbsDimension x="145" y="45" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="14" y="-151" />
					</Anchor>
				</Anchors>
				<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>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="Receiver" inherits="GameFontNormal" text="Receiver name:">
							<Size>
								<AbsDimension x="145" y="45" />
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset x="0" y="0" />
								</Anchor>
							</Anchors>
							<Color r="1" g="1" b="1" />
						</FontString>
					</Layer>
				</Layers>
			</MessageFrame>
			<MessageFrame name="GoldIndicatorFrame" parent="" inherits="BackdropTemplate">
				<FontString inherits="ErrorFont" justifyH="CENTER" />
				<Size>
					<AbsDimension x="15" y="15" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="252" y="-63" />
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="GoldIndicator" inherits="GameFontNormal" text="g.">
							<Size>
								<AbsDimension x="15" y="15" />
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset x="0" y="0" />
								</Anchor>
							</Anchors>
							<Shadow>
								<Offset>
									<AbsDimension x="1" y="-1" />
								</Offset>
							<Color r="0" g="0" b="0" a="0" />
							</Shadow>
						</FontString>
					</Layer>
				</Layers>
			</MessageFrame>
			<EditBox name="AmountEditBox" inherits="InputBoxTemplate" toplevel="true" numeric="true" autoFocus="false">
				<Size>
					<AbsDimension x="75" y="30" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="175" y="-55" />
					</Anchor>
				</Anchors>
				<Scripts>
					<OnEnterPressed function="CheckButton_OnClick" />
				</Scripts>
			</EditBox>
			<EditBox name="ReceiverEditBox" inherits="InputBoxTemplate" toplevel="true" autoFocus="false">
				<Size>
					<AbsDimension x="90" y="30" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="175" y="-158" />
					</Anchor>
				</Anchors>
				<Scripts>
					<OnEnterPressed>
						self:ClearFocus();
					</OnEnterPressed>
				</Scripts>
			</EditBox>			
			<Button name="CheckButton" inherits="UIPanelButtonTemplate" toplevel="true" text="Check">
				<Size>
					<AbsDimension x="55" y="25" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="187" y="-81" />
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick function="CheckButton_OnClick" />
				</Scripts>
			</Button>
			<Button name="SendButton" inherits="UIPanelButtonTemplate" toplevel="true" text="Send">
				<Size>
					<AbsDimension x="50" y="25" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="121" y="-197" />
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick function="SendButton_OnClick" />
				</Scripts>
			</Button>
			<Button name="SettingButton" inherits="UIPanelButtonTemplate" toplevel="true" text="Setting">
				<Size>
					<AbsDimension x="60" y="25" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="205" y="-197" />
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick function="SettingButton_OnClick" />
				</Scripts>
			</Button>
			<Button name="MinimizeButton" inherits="" toplevel="true" text="x">
				<Size>
					<AbsDimension x="18" y="19" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="261" y="-10" />
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick function="ToggleEGTBFrame" />
				</Scripts>
				<NormalTexture inherits="UIPanelButtonUpTexture" file="Interface\BUTTONS\UI-Panel-HideButton-Up">
					<TexCoords left="0" right="1" top="0" bottom="1" />
				</NormalTexture>
				<PushedTexture inherits="UIPanelButtonDownTexture" file="Interface\BUTTONS\UI-Panel-HideButton-Down">
					<TexCoords left="0" right="1" top="0" bottom="1" />
				</PushedTexture>
				<DisabledTexture inherits="UIPanelButtonDisabledTexture" file="Interface\BUTTONS\UI-Panel-HideButton-Disabled">
					<TexCoords left="0" right="1" top="0" bottom="1" />
				</DisabledTexture>
				<HighlightTexture inherits="UIPanelButtonHighlightTexture" file="Interface\BUTTONS\UI-Panel-Button-Highlight" alphaMode="ADD">
					<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
				</HighlightTexture>
			</Button>
			<Frame name="SettingFrame" parent="" frameStrata="HIGH" toplevel="true" movable="true" enableMouse="true" inherits="BackdropTemplate">
				<Size>
					<AbsDimension x="260" y="134" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="15" y="-219" />
					</Anchor>
				</Anchors>
				<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Gold-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>
					<MessageFrame name="DefaultReceiverFrame" parent="" inherits="BackdropTemplate">
						<FontString inherits="ErrorFont" justifyH="CENTER" />
						<Size>
							<AbsDimension x="130" y="45" />
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset x="12" y="-12" />
							</Anchor>
						</Anchors>
						<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>
						<Layers>
							<Layer level="OVERLAY">
								<FontString name="DefaultReceiver" inherits="GameFontNormal" text="Default receiver:">
									<Size>
										<AbsDimension x="130" y="45" />
									</Size>
									<Anchors>
										<Anchor point="TOPLEFT">
											<Offset x="0" y="0" />
										</Anchor>
									</Anchors>
									<Color r="1" g="1" b="1" />
								</FontString>
							</Layer>
						</Layers>
					</MessageFrame>
					<MessageFrame name="DefaultAmountFrame" parent="" inherits="BackdropTemplate">
						<FontString inherits="ErrorFont" justifyH="CENTER" />
						<Size>
							<AbsDimension x="130" y="45" />
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset x="12" y="-54" />
							</Anchor>
						</Anchors>
						<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>
						<Layers>
							<Layer level="OVERLAY">
								<FontString name="DefaultAmount" inherits="GameFontNormal" text="Default amount:">
									<Size>
										<AbsDimension x="130" y="45" />
									</Size>
									<Anchors>
										<Anchor point="TOPLEFT">
											<Offset x="0" y="0" />
										</Anchor>
									</Anchors>
									<Color r="1" g="1" b="1" />
								</FontString>
							</Layer>
						</Layers>
					</MessageFrame>
					<MessageFrame name="GoldIndicatorFrame2" parent="" inherits="BackdropTemplate">
						<FontString inherits="ErrorFont" justifyH="CENTER" />
						<Size>
							<AbsDimension x="15" y="15" />
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset x="225" y="-65" />
							</Anchor>
						</Anchors>
						<Layers>
							<Layer level="OVERLAY">
								<FontString name="GoldIndicator2" inherits="GameFontNormal" text="g.">
									<Size>
										<AbsDimension x="15" y="15" />
									</Size>
									<Anchors>
										<Anchor point="TOPLEFT">
											<Offset x="0" y="0" />
										</Anchor>
									</Anchors>
									<Shadow>
										<Offset>
											<AbsDimension x="1" y="-1" />
										</Offset>
									<Color r="0" g="0" b="0" a="0" />
									</Shadow>
								</FontString>
							</Layer>
						</Layers>
					</MessageFrame>
					<EditBox name="DefaultReceiverEditBox" inherits="InputBoxTemplate" toplevel="true" autoFocus="false">
						<Size>
							<AbsDimension x="90" y="30" />
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset x="147" y="-18" />
							</Anchor>
						</Anchors>
						<Scripts>
							<OnEnterPressed>
								self:ClearFocus();
								DefaultAmountEditBox:SetFocus();
							</OnEnterPressed>
						</Scripts>
					</EditBox>
					<EditBox name="DefaultAmountEditBox" inherits="InputBoxTemplate" toplevel="true" numeric="true" autoFocus="false">
						<Size>
							<AbsDimension x="75" y="30" />
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset x="148" y="-57" />
							</Anchor>
						</Anchors>
						<Scripts>
							<OnEnterPressed function="DoneSettingButton_OnClick" />
						</Scripts>
					</EditBox>
					<Button name="DoneSettingButton" inherits="UIPanelButtonTemplate" toplevel="true" text="Done">
						<Size>
							<AbsDimension x="50" y="25" />
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset x="105" y="-97" />
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick function="DoneSettingButton_OnClick" />
						</Scripts>
					</Button>
				</Frames>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad function="EveryGoldToBankerCalculator_OnLoad" inherit="prepend">
				print("Loaded!");
			</OnLoad>
			<OnEvent>
				EveryGoldToBankerCalculator_OnEvent(self, event, ...)
			</OnEvent>
			<OnDragStart function="EveryGoldToBankerCalculator_OnDragStart" />
			<OnDragStop function="EveryGoldToBankerCalculator_OnDragStop" />
		</Scripts>
	</Frame>
</Ui>

Last edited by Shitara : 11-22-20 at 05:07 PM. Reason: photo didn't work
  Reply With Quote
11-22-20, 05:07 PM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,892
This is an xml file for one of my frames and shows what I had and what I changed it to. It should help you see what you need to change.

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

And this file shows you the presets available and how you can create your own if none of them suit your needs.

https://www.townlong-yak.com/framexml/live/Backdrop.lua
__________________
  Reply With Quote
11-22-20, 06:48 PM   #3
Shitara
A Murloc Raider
Join Date: Nov 2020
Posts: 7
Thank you, that was very helpful.
I had got the changes I had already made from the page you linked to, but I was unsure on what exactly to do.
So far I now have color in the main frame and border, just have to work on the other frames and options menu now.
  Reply With Quote
11-22-20, 08:40 PM   #4
Shitara
A Murloc Raider
Join Date: Nov 2020
Posts: 7
Thank you very much, It looks so much better now

https://photos.app.goo.gl/GtD9M1372Mt8KcHVA

The only problem left is I tried to make just the title background gold, like it used to be, and it stays black. It's no biggy, I'm estatic, I have background and borders.

Is there a list of named colors your allowed?

Code:
<KeyValues>
        <KeyValue key="backdropInfo" value="BACKDROP_GOLD_DIALOG_32_32" type="global"/>
        <KeyValue key="backdropColor" value="GOLD" type="global"/>
        <KeyValue key="backdropBorderColor" value="GOLD" type="global"/>
		</KeyValues>
I fixed the tabbing since I posted

New XML
Code:
<Ui xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.blizzard.com/wow/ui/">
	<Script file="EveryGoldToBanker.lua" />
	<Frame name="EveryGoldToBankerCalculator" parent="UIParent" frameStrata="DIALOG" toplevel="true" movable="true" enableMouse="true" inherits="BackdropTemplate">
		<KeyValues>
        <KeyValue key="backdropInfo" value="BACKDROP_GOLD_DIALOG_32_32" type="global"/>
        <KeyValue key="backdropColor" value="GOLD" type="global"/>
        <KeyValue key="backdropBorderColor" value="GOLD" type="global"/>
		</KeyValues>
		<Size>
			<AbsDimension x="290" y="234" />
		</Size>
		<Anchors>
			<Anchor point="CENTER">
				<Offset x="-25" y="1" />
			</Anchor>
		</Anchors>
		<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Gold-Border">
			<BackgroundInsets>
				<AbsInset left="11" right="12" top="42" bottom="11" />
			</BackgroundInsets>
			<TileSize>
				<AbsValue val="32" />
			</TileSize>
			<EdgeSize>
				<AbsValue val="32" />
			</EdgeSize>
		</Backdrop>
		<Frames>
			<MessageFrame name="TitleFrame" parent="" inherits="BackdropTemplate">
				<KeyValues>
					<KeyValue key="backdropInfo" value="BACKDROP_GOLD_DIALOG_32_32" type="global"/>
					<KeyValue key="backdropColor" value="GOLD" type="global"/>
					<KeyValue key="backdropBorderColor" value="GOLD" type="global"/>
				</KeyValues>
				<FontString inherits="ErrorFont" justifyH="CENTER" />
				<Size>
					<AbsDimension x="290" y="48" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="0" y="0" />
					</Anchor>
				</Anchors>
				<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Gold-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Gold-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>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="Title" inherits="GameFontNormal" text="EveryGoldToBanker">
							<Size>
								<AbsDimension x="290" y="48" />
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset x="0" y="0" />
								</Anchor>
							</Anchors>
							<FontHeight>
								<AbsValue val="13" />
							</FontHeight>
							<Color r="1" g="1" b="1" />
						</FontString>
					</Layer>
				</Layers>
			</MessageFrame>
			<MessageFrame name="AmountFrame" parent="" inherits="BackdropTemplate">
				<KeyValues>
					<KeyValue key="backdropInfo" value="BACKDROP_GOLD_DIALOG_32_32" type="global"/>
					<KeyValue key="backdropColor" value="BLACK" type="global"/>
					<KeyValue key="backdropBorderColor" value="GOLD" type="global"/>
				</KeyValues>
				<FontString inherits="ErrorFont" justifyH="CENTER" />
				<Size>
					<AbsDimension x="145" y="60" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="14" y="-41" />
					</Anchor>
				</Anchors>
				<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>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="Amount" inherits="GameFontNormal" text="Amount desired to keep:">
							<Size>
								<AbsDimension x="145" y="60" />
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset x="0" y="0" />
								</Anchor>
							</Anchors>
							<Color r="1" g="1" b="1" />
						</FontString>
					</Layer>
				</Layers>
			</MessageFrame>
			<MessageFrame name="ResponseFrame" parent="" inherits="BackdropTemplate">
				<KeyValues>
					<KeyValue key="backdropInfo" value="BACKDROP_GOLD_DIALOG_32_32" type="global"/>
					<KeyValue key="backdropColor" value="BLACK" type="global"/>
					<KeyValue key="backdropBorderColor" value="GOLD" type="global"/>
				</KeyValues>
				<FontString inherits="ErrorFont" justifyH="CENTER" />
				<Size>
					<AbsDimension x="220" y="50" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="34" y="-102" />
					</Anchor>
				</Anchors>
				<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>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="Response" inherits="GameFontNormal" text="You didn't enter a value yet.">
							<Size>
								<AbsDimension x="220" y="50" />
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset x="0" y="0" />
								</Anchor>
							</Anchors>
							<Color r="1" g="1" b="1" />
						</FontString>
					</Layer>
				</Layers>
			</MessageFrame>
			<MessageFrame name="ReceiverFrame" parent="" inherits="BackdropTemplate">
				<KeyValues>
					<KeyValue key="backdropInfo" value="BACKDROP_GOLD_DIALOG_32_32" type="global"/>
					<KeyValue key="backdropColor" value="BLACK" type="global"/>
					<KeyValue key="backdropBorderColor" value="GOLD" type="global"/>
				</KeyValues>
				<FontString inherits="ErrorFont" justifyH="CENTER" />
				<Size>
					<AbsDimension x="145" y="45" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="14" y="-151" />
					</Anchor>
				</Anchors>
				<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>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="Receiver" inherits="GameFontNormal" text="Receiver name:">
							<Size>
								<AbsDimension x="145" y="45" />
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset x="0" y="0" />
								</Anchor>
							</Anchors>
							<Color r="1" g="1" b="1" />
						</FontString>
					</Layer>
				</Layers>
			</MessageFrame>
			<MessageFrame name="GoldIndicatorFrame" parent="">
				<FontString inherits="ErrorFont" justifyH="CENTER" />
				<Size>
					<AbsDimension x="15" y="15" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="252" y="-63" />
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="GoldIndicator" inherits="GameFontNormal" text="g.">
							<Size>
								<AbsDimension x="15" y="15" />
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset x="0" y="0" />
								</Anchor>
							</Anchors>
							<Shadow>
								<Offset>
									<AbsDimension x="1" y="-1" />
								</Offset>
							<Color r="0" g="0" b="0" a="0" />
							</Shadow>
						</FontString>
					</Layer>
				</Layers>
			</MessageFrame>
			<EditBox name="AmountEditBox" inherits="InputBoxTemplate" toplevel="true" numeric="true" autoFocus="false">
				<Size>
					<AbsDimension x="75" y="30" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="175" y="-55" />
					</Anchor>
				</Anchors>
				<Scripts>
					<OnEnterPressed function="CheckButton_OnClick" />
				</Scripts>
			</EditBox>
			<EditBox name="ReceiverEditBox" inherits="InputBoxTemplate" toplevel="true" autoFocus="false">
				<Size>
					<AbsDimension x="90" y="30" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="175" y="-158" />
					</Anchor>
				</Anchors>
				<Scripts>
					<OnEnterPressed>
						self:ClearFocus();
					</OnEnterPressed>
				</Scripts>
			</EditBox>			
			<Button name="CheckButton" inherits="UIPanelButtonTemplate" toplevel="true" text="Check">
				<Size>
					<AbsDimension x="55" y="25" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="187" y="-81" />
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick function="CheckButton_OnClick" />
				</Scripts>
			</Button>
			<Button name="SendButton" inherits="UIPanelButtonTemplate" toplevel="true" text="Send">
				<Size>
					<AbsDimension x="50" y="25" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="121" y="-197" />
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick function="SendButton_OnClick" />
				</Scripts>
			</Button>
			<Button name="SettingButton" inherits="UIPanelButtonTemplate" toplevel="true" text="Setting">
				<Size>
					<AbsDimension x="60" y="25" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="205" y="-197" />
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick function="SettingButton_OnClick" />
				</Scripts>
			</Button>
			<Button name="MinimizeButton" inherits="" toplevel="true" text="x">
				<Size>
					<AbsDimension x="18" y="19" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="261" y="-10" />
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick function="ToggleEGTBFrame" />
				</Scripts>
				<NormalTexture inherits="UIPanelButtonUpTexture" file="Interface\BUTTONS\UI-Panel-HideButton-Up">
					<TexCoords left="0" right="1" top="0" bottom="1" />
				</NormalTexture>
				<PushedTexture inherits="UIPanelButtonDownTexture" file="Interface\BUTTONS\UI-Panel-HideButton-Down">
					<TexCoords left="0" right="1" top="0" bottom="1" />
				</PushedTexture>
				<DisabledTexture inherits="UIPanelButtonDisabledTexture" file="Interface\BUTTONS\UI-Panel-HideButton-Disabled">
					<TexCoords left="0" right="1" top="0" bottom="1" />
				</DisabledTexture>
				<HighlightTexture inherits="UIPanelButtonHighlightTexture" file="Interface\BUTTONS\UI-Panel-Button-Highlight" alphaMode="ADD">
					<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
				</HighlightTexture>
			</Button>
			<Frame name="SettingFrame" parent="" frameStrata="HIGH" toplevel="true" movable="true" enableMouse="true" inherits="BackdropTemplate">
				<KeyValues>
					<KeyValue key="backdropInfo" value="BACKDROP_GOLD_DIALOG_32_32" type="global"/>
					<KeyValue key="backdropColor" value="BLACK" type="global"/>
					<KeyValue key="backdropBorderColor" value="GOLD" type="global"/>
				</KeyValues>
				<Size>
					<AbsDimension x="260" y="134" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="15" y="-219" />
					</Anchor>
				</Anchors>
				<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Gold-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>
					<MessageFrame name="DefaultReceiverFrame" parent="" inherits="BackdropTemplate">
						<KeyValues>
							<KeyValue key="backdropInfo" value="BACKDROP_GOLD_DIALOG_32_32" type="global"/>
							<KeyValue key="backdropColor" value="BLACK" type="global"/>
							<KeyValue key="backdropBorderColor" value="GOLD" type="global"/>
						</KeyValues>
						<FontString inherits="ErrorFont" justifyH="CENTER" />
						<Size>
							<AbsDimension x="130" y="45" />
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset x="12" y="-12" />
							</Anchor>
						</Anchors>
						<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>
						<Layers>
							<Layer level="OVERLAY">
								<FontString name="DefaultReceiver" inherits="GameFontNormal" text="Default receiver:">
									<Size>
										<AbsDimension x="130" y="45" />
									</Size>
									<Anchors>
										<Anchor point="TOPLEFT">
											<Offset x="0" y="0" />
										</Anchor>
									</Anchors>
									<Color r="1" g="1" b="1" />
								</FontString>
							</Layer>
						</Layers>
					</MessageFrame>
					<MessageFrame name="DefaultAmountFrame" parent="" inherits="BackdropTemplate">
						<KeyValues>
							<KeyValue key="backdropInfo" value="BACKDROP_GOLD_DIALOG_32_32" type="global"/>
							<KeyValue key="backdropColor" value="BLACK" type="global"/>
							<KeyValue key="backdropBorderColor" value="GOLD" type="global"/>
						</KeyValues>
						<FontString inherits="ErrorFont" justifyH="CENTER" />
						<Size>
							<AbsDimension x="130" y="45" />
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset x="12" y="-54" />
							</Anchor>
						</Anchors>
						<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>
						<Layers>
							<Layer level="OVERLAY">
								<FontString name="DefaultAmount" inherits="GameFontNormal" text="Default amount:">
									<Size>
										<AbsDimension x="130" y="45" />
									</Size>
									<Anchors>
										<Anchor point="TOPLEFT">
											<Offset x="0" y="0" />
										</Anchor>
									</Anchors>
									<Color r="1" g="1" b="1" />
								</FontString>
							</Layer>
						</Layers>
					</MessageFrame>
					<MessageFrame name="GoldIndicatorFrame2" parent="">
						<FontString inherits="ErrorFont" justifyH="CENTER" />
						<Size>
							<AbsDimension x="15" y="15" />
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset x="225" y="-65" />
							</Anchor>
						</Anchors>
						<Layers>
							<Layer level="OVERLAY">
								<FontString name="GoldIndicator2" inherits="GameFontNormal" text="g.">
									<Size>
										<AbsDimension x="15" y="15" />
									</Size>
									<Anchors>
										<Anchor point="TOPLEFT">
											<Offset x="0" y="0" />
										</Anchor>
									</Anchors>
									<Shadow>
										<Offset>
											<AbsDimension x="1" y="-1" />
										</Offset>
									<Color r="0" g="0" b="0" a="0" />
									</Shadow>
								</FontString>
							</Layer>
						</Layers>
					</MessageFrame>
					<EditBox name="DefaultReceiverEditBox" inherits="InputBoxTemplate" toplevel="true" autoFocus="false">
						<Size>
							<AbsDimension x="90" y="30" />
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset x="147" y="-18" />
							</Anchor>
						</Anchors>
						<Scripts>
							<OnEnterPressed>
								self:ClearFocus();
								DefaultAmountEditBox:SetFocus();
							</OnEnterPressed>
						</Scripts>
					</EditBox>
					<EditBox name="DefaultAmountEditBox" inherits="InputBoxTemplate" toplevel="true" numeric="true" autoFocus="false">
						<Size>
							<AbsDimension x="75" y="30" />
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset x="148" y="-57" />
							</Anchor>
						</Anchors>
						<Scripts>
							<OnEnterPressed function="DoneSettingButton_OnClick" />
						</Scripts>
					</EditBox>
					<Button name="DoneSettingButton" inherits="UIPanelButtonTemplate" toplevel="true" text="Done">
						<Size>
							<AbsDimension x="50" y="25" />
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset x="105" y="-97" />
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick function="DoneSettingButton_OnClick" />
						</Scripts>
					</Button>
				</Frames>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad function="EveryGoldToBankerCalculator_OnLoad" inherit="prepend">
				print("EGTB Loaded!");
			</OnLoad>
			<OnEvent>
				EveryGoldToBankerCalculator_OnEvent(self, event, ...)
			</OnEvent>
			<OnDragStart function="EveryGoldToBankerCalculator_OnDragStart" />
			<OnDragStop function="EveryGoldToBankerCalculator_OnDragStop" />
		</Scripts>
	</Frame>
</Ui>

Last edited by Shitara : 11-22-20 at 08:54 PM. Reason: Tabbing fixed
  Reply With Quote
11-22-20, 11:16 PM   #5
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,892
I can't see where any of the set color codes are set so far but found this file that shows more in the backdrop table.

https://www.townlong-yak.com/framexm...ameTooltip.lua

Which implies that you could set your own colors using the regular table format { r = .. , b = .. , c = ... }

Constants.lua also had these colors being used .. but can't find where they are set

BAG_ITEM_QUALITY_COLORS = {
[Enum.ItemQuality.Common] = COMMON_GRAY_COLOR,
[Enum.ItemQuality.Uncommon] = UNCOMMON_GREEN_COLOR,
[Enum.ItemQuality.Rare] = RARE_BLUE_COLOR,
[Enum.ItemQuality.Epic] = EPIC_PURPLE_COLOR,
[Enum.ItemQuality.Legendary] = LEGENDARY_ORANGE_COLOR,
[Enum.ItemQuality.Artifact] = ARTIFACT_GOLD_COLOR,
[Enum.ItemQuality.Heirloom] = HEIRLOOM_BLUE_COLOR,
[Enum.ItemQuality.WoWToken] = HEIRLOOM_BLUE_COLOR,
}

Aha .. found them

https://www.townlong-yak.com/framexm...rConstants.lua
__________________
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » xml backdrop problem, I think

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