From a49090ab43338ded9431c7362e1e2b589a107c27 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Fri, 16 Sep 2016 13:47:06 +0200 Subject: [PATCH] retail-like money input --- Postal.lua | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Postal.lua b/Postal.lua index 66fd9bb..558f306 100644 --- a/Postal.lua +++ b/Postal.lua @@ -122,9 +122,21 @@ function self:ADDON_LOADED() SendMailPackageButton:SetScript('OnDragStart', nil) end - SendMailMoneyText:SetPoint('TOPLEFT', 0, -2) + SendMailMoneyText:SetPoint('TOPLEFT', 0, 0) SendMailMoney:ClearAllPoints() - SendMailMoney:SetPoint('TOPLEFT', SendMailMoneyText, 'BOTTOMLEFT', 5, -3) + SendMailMoney:SetPoint('TOPLEFT', SendMailMoneyText, 'BOTTOMLEFT', 5, -5) + SendMailMoneyGoldRight:SetPoint('RIGHT', 20, 0) + ;({SendMailMoneyGold:GetRegions()})[9]:SetDrawLayer('BORDER') + SendMailMoneyGold:SetMaxLetters(7) + SendMailMoneyGold:SetWidth(50) + SendMailMoneySilverRight:SetPoint('RIGHT', 10, 0) + ;({SendMailMoneySilver:GetRegions()})[9]:SetDrawLayer('BORDER') + SendMailMoneySilver:SetWidth(28) + SendMailMoneySilver:SetPoint('LEFT', SendMailMoneyGold, 'RIGHT', 30, 0) + SendMailMoneyCopperRight:SetPoint('RIGHT', 10, 0) + ;({SendMailMoneyCopper:GetRegions()})[9]:SetDrawLayer('BORDER') + SendMailMoneyCopper:SetWidth(28) + SendMailMoneyCopper:SetPoint('LEFT', SendMailMoneySilver, 'RIGHT', 20, 0) SendMailSendMoneyButton:SetPoint('TOPLEFT', SendMailMoney, 'TOPRIGHT', 0, 12) -- hack to avoid automatic subject setting and button disabling from weird blizzard code