From de64096411b3ef3a2b6053ce4f695a00d4987f87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Mesureux?= Date: Tue, 15 Nov 2022 14:03:25 +0100 Subject: [PATCH] Feature/df (#10) * fix(ui): Use PanelTabButtonTemplate instead CharacterFrameTabButtonTemplate * fix(ui): ajust/disable some code * feat: allow cross faction send item * ci: update interface version Co-authored-by: yad --- MailCommander.lua | 20 ++++++++++---------- MailCommander.toc | 4 ++-- MailCommander.xml | 8 ++++---- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/MailCommander.lua b/MailCommander.lua index 3a5d872..b346055 100644 --- a/MailCommander.lua +++ b/MailCommander.lua @@ -196,7 +196,7 @@ local Count={cache={}, samefaction=setmetatable({}, {__index=function(table,key) if type(key)=="number" then error("Non doveva essere un numero") end - table[key]=toonTable[key] and toonTable[key].faction==thisFaction or false + table[key]=toonTable[key] or false return table[key] end } @@ -1281,14 +1281,14 @@ function addon:CloseChooser() end function addon:OnLoad(frame) mcf=frame - frame:SetClampedToScreen() + frame:SetClampedToScreen(true) --MCF:EnableMouse(true) --MCF:SetMovable(true) frame.Send:SetText(L["Send All"]) frame.Send.tooltip="tooltip" - frame:RegisterForDrag("LeftButton") - frame:SetScript("OnDragStart",function(frame) frame:StartMoving() end) - frame:SetScript("OnDragStop",function(frame) frame:StopMovingOrSizing() end) + -- frame:RegisterForDrag("LeftButton") + -- frame:SetScript("OnDragStart",function(frame) frame:StartMoving() end) + -- frame:SetScript("OnDragStop",function(frame) frame:StopMovingOrSizing() end) ButtonFrameTemplate_HidePortrait(frame) UIDropDownMenu_SetWidth(frame.Filter, 150); UIDropDownMenu_Initialize(frame.Filter, function(...) self:InitializeDropDown(...) end ); @@ -1569,18 +1569,18 @@ function addon:RenderButtonList(store,page) if page>0 then mcf.PrevPageButton:SetID(page-1) mcf.PrevPageButton:Enable() - mcf.PrevPageButton.Text:SetTextColor(C.Yellow()) + -- mcf.PrevPageButton.Text:SetTextColor(C.Yellow()) else mcf.PrevPageButton:Disable() - mcf.PrevPageButton.Text:SetTextColor(C.Silver()) + -- mcf.PrevPageButton.Text:SetTextColor(C.Silver()) end if nextpage then mcf.NextPageButton:SetID(page+1) mcf.NextPageButton:Enable() - mcf.NextPageButton.Text:SetTextColor(C.Yellow()) + -- mcf.NextPageButton.Text:SetTextColor(C.Yellow()) else mcf.NextPageButton:Disable() - mcf.NextPageButton.Text:SetTextColor(C.Silver()) + -- mcf.NextPageButton.Text:SetTextColor(C.Silver()) end end function addon:RenderCategoryBox() @@ -2318,7 +2318,7 @@ function addon:RefreshItemlinks(...) refresher=coroutine.wrap(function() for i,data in pairs(db.items) do UpdateItemInfo(i) - C_Timer.After(0.001,refresher) + -- C_Timer.After(0.001,refresher) coroutine.yield(true) end addon:Debug("Refreshlink done") diff --git a/MailCommander.toc b/MailCommander.toc index 69a4a8b..feb227a 100644 --- a/MailCommander.toc +++ b/MailCommander.toc @@ -1,9 +1,9 @@ -## Interface: 90100 +## Interface: 100000 ## Title: MailCommander 2 @project-version@ ## Notes: Manages items distribution between multiple toons ## Notes-itIT: Gestisce la distribuzione di oggetti fra personaggi multipli ## Author: Alar of Daggerspine -## Version: @project-version@ 90100 +## Version: @project-version@ 100000 ## X-Revision: @project-abbreviated-hash@ ## eMail: alar@aspide.it ## URL: http://wow.aspide.it diff --git a/MailCommander.xml b/MailCommander.xml index e77ef1e..2e4a416 100644 --- a/MailCommander.xml +++ b/MailCommander.xml @@ -400,7 +400,7 @@ - - - -