From e8271ff49a544fb23612f5cca9916e772ea78dde Mon Sep 17 00:00:00 2001 From: Alar of Runetotem Date: Thu, 19 Jul 2018 02:46:24 +0200 Subject: [PATCH] Various fixes --- .../GarrisonCommander-Broker.toc | 2 +- GarrisonCommander-Broker/ldb.lua | 10 +++++----- GarrisonCommander.toc | 2 +- GarrisonCommander.xml | 1 - MissionCompletion.lua | 8 ++++---- MissionControl.lua | 4 ++-- OrderHall.lua | 3 --- RelNotes.lua | 12 ++++++++++++ ShipControl.lua | 5 +++-- Widgets.lua | 2 +- embeds.xml | 1 + 11 files changed, 30 insertions(+), 20 deletions(-) diff --git a/GarrisonCommander-Broker/GarrisonCommander-Broker.toc b/GarrisonCommander-Broker/GarrisonCommander-Broker.toc index 7b70a85..9bf2f65 100644 --- a/GarrisonCommander-Broker/GarrisonCommander-Broker.toc +++ b/GarrisonCommander-Broker/GarrisonCommander-Broker.toc @@ -1,4 +1,4 @@ -## Interface: 70200 +## Interface: 80000 ## Title: GarrisonCommander-Broker ## Notes: Data-Broker for GarrisonCommander ## Notes-itIT: Data-Broker per GarrisonCommander diff --git a/GarrisonCommander-Broker/ldb.lua b/GarrisonCommander-Broker/ldb.lua index f258cad..f635f4f 100644 --- a/GarrisonCommander-Broker/ldb.lua +++ b/GarrisonCommander-Broker/ldb.lua @@ -192,7 +192,10 @@ end function addon:CheckDateReset() local oldToday=today local reset=GetQuestResetTime() - local weekday, month, day, year = CalendarGetDate() + local t= C_Calendar.GetDate() + local day=t.monthDay + local year=t.year + local month=t.month if (day <1 or reset<1) then self:ScheduleTimer("CheckDateReset",1) return day,reset @@ -212,14 +215,11 @@ function addon:CheckDateReset() today=yesterday end self:ScheduleTimer("CheckDateReset",60) ---@debug@ - if (false and today~=oldToday) then - self:Popup(format("o:%s y:%s t:%s r:%s [w:%s m:%s d:%s y:%s] ",oldToday,yesterday,today,reset,CalendarGetDate())) + if (today~=oldToday) then dataobj:Update() farmobj:Update() workobj:Update() end ---@end-debug@ end function addon:CountMissing() local tot=0 diff --git a/GarrisonCommander.toc b/GarrisonCommander.toc index c0a2fc9..62711fd 100644 --- a/GarrisonCommander.toc +++ b/GarrisonCommander.toc @@ -1,4 +1,4 @@ -## Interface: 70200 +## Interface: 80000 ## Title: GarrisonCommander ## Notes: Sending all follower to missions with just one click and more ## Notes-itIT: Invia tutti i seguaci in missione con un click e molto altro diff --git a/GarrisonCommander.xml b/GarrisonCommander.xml index b4c470f..d455748 100644 --- a/GarrisonCommander.xml +++ b/GarrisonCommander.xml @@ -424,7 +424,6 @@