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>