Moved to linux

This commit is contained in:
rilgamon 2021-03-04 23:57:58 +01:00
parent bc99d7b2cf
commit 289f0956bf
7 changed files with 385 additions and 385 deletions

18
README.md Normal file → Executable file
View File

@ -1,10 +1,10 @@
# zz_GarrisonToggle # zz_GarrisonToggle
Simple LDB for Garrison windows toggle. Simple LDB for Garrison windows toggle.
This can be usefull if you're not using the original map. This can be usefull if you're not using the original map.
Shift-Click will switch through the garrisons (Pandaria, Legion, BfA) Shift-Click will switch through the garrisons (Pandaria, Legion, BfA)
Leftclick opens the selected Garrison Landing Page. Leftclick opens the selected Garrison Landing Page.
#### Links #### Links
[Releases](https://git.grml.de/rilgamon/zz_GarrisonToggle/releases "Releases") | [Source](https://git.grml.de/rilgamon/zz_GarrisonToggle "Source") | [Bugs&Comments](https://git.grml.de/rilgamon/zz_GarrisonToggle/issues "Bugs&Comments") | [Donate](https://liberapay.com/bundesloser "Donate") | [Contact](https://mastodon.grml.de/@robin "Contact") [Releases](https://git.grml.de/rilgamon/zz_GarrisonToggle/releases "Releases") | [Source](https://git.grml.de/rilgamon/zz_GarrisonToggle "Source") | [Bugs&Comments](https://git.grml.de/rilgamon/zz_GarrisonToggle/issues "Bugs&Comments") | [Donate](https://liberapay.com/bundesloser "Donate") | [Contact](https://mastodon.grml.de/@robin "Contact")

626
core.lua Normal file → Executable file
View File

@ -1,314 +1,314 @@
local name, addon = ... local name, addon = ...
local parentName = addon['parentName'] or "BrokerPack" local parentName = addon['parentName'] or "BrokerPack"
local childName = "zz_GarrisonToggle" local childName = "zz_GarrisonToggle"
local realm = GetRealmName() local realm = GetRealmName()
local player = UnitName('player').."-"..realm local player = UnitName('player').."-"..realm
local defaults = { local defaults = {
['garrisonText'] = 'GS', ['garrisonText'] = 'GS',
['garrisonHideCombat'] = false, ['garrisonHideCombat'] = false,
['hideStandard'] = true, ['hideStandard'] = true,
} }
local options = { local options = {
} }
local L = LibStub("AceLocale-3.0"):GetLocale(childName, true) local L = LibStub("AceLocale-3.0"):GetLocale(childName, true)
local db local db
local GBM = Enum.GarrisonFollowerType.FollowerType_8_0 local GBM = Enum.GarrisonFollowerType.FollowerType_8_0
local function OnText(message) local function OnText(message)
addon:OnText(childName, message) addon:OnText(childName, message)
end end
local function switchDisplay(value) local function switchDisplay(value)
if(value) then if(value) then
AlertFrame:UnregisterEvent("GARRISON_MISSION_FINISHED") AlertFrame:UnregisterEvent("GARRISON_MISSION_FINISHED")
AlertFrame:UnregisterEvent("GARRISON_BUILDING_ACTIVATABLE") AlertFrame:UnregisterEvent("GARRISON_BUILDING_ACTIVATABLE")
else else
AlertFrame:RegisterEvent("GARRISON_MISSION_FINISHED") AlertFrame:RegisterEvent("GARRISON_MISSION_FINISHED")
AlertFrame:RegisterEvent("GARRISON_BUILDING_ACTIVATABLE") AlertFrame:RegisterEvent("GARRISON_BUILDING_ACTIVATABLE")
end end
end end
local function getPref(pref) local function getPref(pref)
return db[pref[#pref]] return db[pref[#pref]]
end end
local function setPref(pref,value) local function setPref(pref,value)
if(pref[#pref] == "garrisonText" and value=="") then if(pref[#pref] == "garrisonText" and value=="") then
value = nil value = nil
elseif(pref[#pref] == "garrisonHideCombat") then elseif(pref[#pref] == "garrisonHideCombat") then
switchDisplay(value) switchDisplay(value)
end end
db[pref[#pref]] = value db[pref[#pref]] = value
OnText(db['garrisonText'] or GARRISON_LOCATION_TOOLTIP) OnText(db['garrisonText'] or GARRISON_LOCATION_TOOLTIP)
end end
local gtypes = {} local gtypes = {}
local function ResetGBM() local function ResetGBM()
for k,v in pairs(gtypes) do for k,v in pairs(gtypes) do
local l = C_Garrison.GetGarrisonInfo(v) local l = C_Garrison.GetGarrisonInfo(v)
if(l and l>0) then if(l and l>0) then
GBM = k GBM = k
db['GBM'] = GBM db['GBM'] = GBM
GarrisonLandingPage.garrTypeID = gtypes[GBM] GarrisonLandingPage.garrTypeID = gtypes[GBM]
break break
end end
end end
end end
local function findTypes() local function findTypes()
for k, v in pairs(Enum.GarrisonType) do for k, v in pairs(Enum.GarrisonType) do
local l = C_Garrison.GetGarrisonInfo(v) local l = C_Garrison.GetGarrisonInfo(v)
if(l and tonumber(l)>0) then if(l and tonumber(l)>0) then
local _, ver, subver = strsplit('_', k) local _, ver, subver = strsplit('_', k)
local followerType = Enum.GarrisonFollowerType[format('FollowerType_%i_%i',ver, subver)] local followerType = Enum.GarrisonFollowerType[format('FollowerType_%i_%i',ver, subver)]
if(followerType) then if(followerType) then
db['missions'][player][followerType] = db['missions'][player][followerType] or {} db['missions'][player][followerType] = db['missions'][player][followerType] or {}
gtypes[followerType] = v gtypes[followerType] = v
end end
end end
end end
if(not gtypes[GBM]) then if(not gtypes[GBM]) then
ResetGBM() ResetGBM()
end end
end end
local function bclick(swap) local function bclick(swap)
if(GarrisonLandingPage) then if(GarrisonLandingPage) then
if(GarrisonLandingPage:IsShown()) then if(GarrisonLandingPage:IsShown()) then
GarrisonLandingPage_Toggle() GarrisonLandingPage_Toggle()
if(not swap) then if(not swap) then
return return
end end
end end
GarrisonLandingPage.garrTypeID = gtypes[GBM] GarrisonLandingPage.garrTypeID = gtypes[GBM]
if(not GarrisonLandingPage.garrTypeID) then if(not GarrisonLandingPage.garrTypeID) then
ResetGBM() ResetGBM()
findTypes() findTypes()
if(not GarrisonLandingPage.garrTypeID) then if(not GarrisonLandingPage.garrTypeID) then
-- print("still no garrType") -- print("still no garrType")
GarrisonLandingPage_Toggle() GarrisonLandingPage_Toggle()
return return
end end
end end
if (C_Garrison.GetGarrisonInfo(GarrisonLandingPage.garrTypeID)) then if (C_Garrison.GetGarrisonInfo(GarrisonLandingPage.garrTypeID)) then
ShowGarrisonLandingPage(gtypes[GBM]) ShowGarrisonLandingPage(gtypes[GBM])
GarrisonLandingPageReportList_OnShow(GarrisonLandingPage) GarrisonLandingPageReportList_OnShow(GarrisonLandingPage)
C_Garrison.RequestLandingPageShipmentInfo() C_Garrison.RequestLandingPageShipmentInfo()
if ( not GarrisonLandingPageReport.selectedTab ) then if ( not GarrisonLandingPageReport.selectedTab ) then
GarrisonLandingPageReport.unselectedTab = GarrisonLandingPageReport.InProgress GarrisonLandingPageReport.unselectedTab = GarrisonLandingPageReport.InProgress
GarrisonLandingPageReport.selectedTab = GarrisonLandingPageReport.Available GarrisonLandingPageReport.selectedTab = GarrisonLandingPageReport.Available
GarrisonLandingPageReport_SetTab(GarrisonLandingPageReport.unselectedTab) GarrisonLandingPageReport_SetTab(GarrisonLandingPageReport.unselectedTab)
else else
GarrisonLandingPageReportList_UpdateItems() GarrisonLandingPageReportList_UpdateItems()
end end
else else
ResetGBM() ResetGBM()
end end
end end
end end
local function OnButton(self,button) local function OnButton(self,button)
local level = C_Garrison.GetGarrisonInfo(C_Garrison.GetLandingPageGarrisonType()) local level = C_Garrison.GetGarrisonInfo(C_Garrison.GetLandingPageGarrisonType())
if(tonumber(level) and tonumber(level)<1) then if(tonumber(level) and tonumber(level)<1) then
ResetGBM() ResetGBM()
end end
if(button=="LeftButton") then if(button=="LeftButton") then
if(IsShiftKeyDown()) then if(IsShiftKeyDown()) then
findTypes() findTypes()
local k = 0 local k = 0
local picknext = nil local picknext = nil
for a,b in pairs(gtypes) do for a,b in pairs(gtypes) do
local level = C_Garrison.GetGarrisonInfo(b) local level = C_Garrison.GetGarrisonInfo(b)
if(level and level > 0) then if(level and level > 0) then
if(picknext) then if(picknext) then
k = a k = a
break break
end end
if(GBM == a) then if(GBM == a) then
picknext = true picknext = true
end end
end end
end end
if(k==0) then if(k==0) then
ResetGBM() ResetGBM()
else else
GBM = k GBM = k
db['GBM'] = GBM db['GBM'] = GBM
end end
bclick(true) bclick(true)
else else
bclick() bclick()
end end
elseif(button=="RightButton") then elseif(button=="RightButton") then
if(InterfaceOptionsFrame:IsVisible() and not InCombatLockdown()) then if(InterfaceOptionsFrame:IsVisible() and not InCombatLockdown()) then
InterfaceOptionsFrame:Hide() InterfaceOptionsFrame:Hide()
else else
InterfaceOptionsFrame_OpenToCategory(childName) InterfaceOptionsFrame_OpenToCategory(childName)
InterfaceOptionsFrame_OpenToCategory(childName) -- Call it twice because auf WoW-Bug InterfaceOptionsFrame_OpenToCategory(childName) -- Call it twice because auf WoW-Bug
end end
end end
end end
local function IsInProgress(mid) local function IsInProgress(mid)
for k,v in pairs(C_Garrison.GetInProgressMissions(GBM) or {}) do for k,v in pairs(C_Garrison.GetInProgressMissions(GBM) or {}) do
if(tonumber(v['missionID'])==tonumber(mid)) then if(tonumber(v['missionID'])==tonumber(mid)) then
return true return true
end end
end end
return false return false
end end
local function GetMission(missionID) local function GetMission(missionID)
for k,v in pairs(C_Garrison.GetInProgressMissions(GBM) or {}) do for k,v in pairs(C_Garrison.GetInProgressMissions(GBM) or {}) do
if(missionID==v['missionID']) then if(missionID==v['missionID']) then
return v return v
end end
end end
end end
local function AddDB(missionID) local function AddDB(missionID)
local missionInfo = GetMission(missionID) local missionInfo = GetMission(missionID)
if(missionInfo) then if(missionInfo) then
local mt = {C_Garrison.GetMissionTimes(missionID)} local mt = {C_Garrison.GetMissionTimes(missionID)}
db['missions'][player][GBM][missionID] = time() + mt[5] db['missions'][player][GBM][missionID] = time() + mt[5]
end end
end end
local function CheckDB(missionID) local function CheckDB(missionID)
local missionInfo = GetMission(missionID) local missionInfo = GetMission(missionID)
if(missionInfo and db['missions'][player][GBM]) then if(missionInfo and db['missions'][player][GBM]) then
local old = db['missions'][player][GBM][missionID] local old = db['missions'][player][GBM][missionID]
local mt = {C_Garrison.GetMissionTimes(missionID)} local mt = {C_Garrison.GetMissionTimes(missionID)}
db['missions'][player][GBM][missionID] = db['missions'][player][GBM][missionID] or (time() + mt[5]) db['missions'][player][GBM][missionID] = db['missions'][player][GBM][missionID] or (time() + mt[5])
if(db['missions'][player][GBM][missionID] ~= old) then if(db['missions'][player][GBM][missionID] ~= old) then
-- print("RESET",missionInfo['name']) -- print("RESET",missionInfo['name'])
end end
end end
end end
local function prune() local function prune()
if(C_Garrison.GetInProgressMissions and GBM) then if(C_Garrison.GetInProgressMissions and GBM) then
local temp = C_Garrison.GetInProgressMissions(GBM) local temp = C_Garrison.GetInProgressMissions(GBM)
if(temp) then if(temp) then
db['missions'][player][GBM] = {} db['missions'][player][GBM] = {}
local ti = time() local ti = time()
for k, v in pairs(temp) do for k, v in pairs(temp) do
if(v['missionEndTime']) then if(v['missionEndTime']) then
db['missions'][player][GBM][v['missionID']] = v['missionEndTime'] db['missions'][player][GBM][v['missionID']] = v['missionEndTime']
else else
local mt = {C_Garrison.GetMissionTimes(v['missionID'])} local mt = {C_Garrison.GetMissionTimes(v['missionID'])}
db['missions'][player][GBM][v['missionID']] = ti + mt[5] db['missions'][player][GBM][v['missionID']] = ti + mt[5]
end end
end end
end end
end end
end end
local function tooltipsort(a, b) local function tooltipsort(a, b)
return (db['missions'][player][GBM][a['missionID']] or 0) < (db['missions'][player][GBM][b['missionID']] or 0) return (db['missions'][player][GBM][a['missionID']] or 0) < (db['missions'][player][GBM][b['missionID']] or 0)
end end
local function OnTooltipShow(GameTooltip) local function OnTooltipShow(GameTooltip)
GameTooltip:AddLine(childName) GameTooltip:AddLine(childName)
local num = C_Garrison.GetNumFollowers(GBM) local num = C_Garrison.GetNumFollowers(GBM)
if(GBM and db['missions'][player][GBM]) then if(GBM and db['missions'][player][GBM]) then
local temp = C_Garrison.GetInProgressMissions(GBM) local temp = C_Garrison.GetInProgressMissions(GBM)
local ti = time() local ti = time()
if(temp) then if(temp) then
db['missions'][player][GBM] = {} db['missions'][player][GBM] = {}
for k, v in pairs(temp) do for k, v in pairs(temp) do
db['missions'][player][GBM][v['missionID']] = v['missionEndTime'] db['missions'][player][GBM][v['missionID']] = v['missionEndTime']
end end
sort(temp,tooltipsort) sort(temp,tooltipsort)
for k,v in pairs(temp) do for k,v in pairs(temp) do
-- CheckDB(tonumber(v['missionID'])) -- CheckDB(tonumber(v['missionID']))
GameTooltip:AddDoubleLine(v['name'],db['missions'][player][GBM][tonumber(v['missionID'])]>ti and v['timeLeft'] or addon:colorize("Done","00ff00")) GameTooltip:AddDoubleLine(v['name'],db['missions'][player][GBM][tonumber(v['missionID'])]>ti and v['timeLeft'] or addon:colorize("Done","00ff00"))
num = num - v['numFollowers'] num = num - v['numFollowers']
end end
end end
for k, v in pairs(db['missions']) do for k, v in pairs(db['missions']) do
if(k ~= player and v[GBM]) then if(k ~= player and v[GBM]) then
for a,b in pairs(v[GBM]) do for a,b in pairs(v[GBM]) do
if(b<ti) then if(b<ti) then
GameTooltip:AddDoubleLine(k, addon:colorize(L["Mission done"],"00ff00")) GameTooltip:AddDoubleLine(k, addon:colorize(L["Mission done"],"00ff00"))
break break
end end
end end
end end
end end
if(IsShiftKeyDown()) then if(IsShiftKeyDown()) then
for k, v in pairs(db['missions']) do for k, v in pairs(db['missions']) do
if(v[GBM]) then if(v[GBM]) then
local found = 0 local found = 0
for a,b in pairs(v[GBM]) do for a,b in pairs(v[GBM]) do
if(b>=ti) then if(b>=ti) then
local r = b - ti local r = b - ti
if(r<found or found==0) then if(r<found or found==0) then
found = r found = r
end end
end end
end end
if(found>0) then if(found>0) then
GameTooltip:AddDoubleLine(k, addon:colorize(L['next'](found),"ffff00")) GameTooltip:AddDoubleLine(k, addon:colorize(L['next'](found),"ffff00"))
end end
end end
end end
end end
local nr = C_Garrison.GetInProgressMissions(GBM) local nr = C_Garrison.GetInProgressMissions(GBM)
local nr2 = C_Garrison.GetAvailableMissions(GBM) local nr2 = C_Garrison.GetAvailableMissions(GBM)
if(GBM == 123) then if(GBM == 123) then
if(C_ArdenwealdGardening.IsGardenAccessible()) then if(C_ArdenwealdGardening.IsGardenAccessible()) then
local data = C_ArdenwealdGardening.GetGardenData() local data = C_ArdenwealdGardening.GetGardenData()
if(data and data['ready'] and data['ready']>0) then if(data and data['ready'] and data['ready']>0) then
GameTooltip:AddLine(addon:colorize(L['ArdenwealdGardening_attention'](data['ready']),'00ff00')) GameTooltip:AddLine(addon:colorize(L['ArdenwealdGardening_attention'](data['ready']),'00ff00'))
end end
end end
end end
if(num>0) then if(num>0) then
GameTooltip:AddDoubleLine(addon:colorize(L["Follower:"],"ffffff"),num.."/"..C_Garrison.GetNumFollowers(GBM)) GameTooltip:AddDoubleLine(addon:colorize(L["Follower:"],"ffffff"),num.."/"..C_Garrison.GetNumFollowers(GBM))
end end
if(nr and nr2) then if(nr and nr2) then
GameTooltip:AddDoubleLine(addon:colorize(L["Missions:"],"ffffff"),#nr.."/"..#nr2) GameTooltip:AddDoubleLine(addon:colorize(L["Missions:"],"ffffff"),#nr.."/"..#nr2)
end end
else else
GameTooltip:AddLine(L["No garrison found!"]) GameTooltip:AddLine(L["No garrison found!"])
end end
GameTooltip:AddLine(addon:colorize(L["SHIFT LEFTCLICK toggles Garrison"],"00ff00")) GameTooltip:AddLine(addon:colorize(L["SHIFT LEFTCLICK toggles Garrison"],"00ff00"))
GameTooltip:AddLine(addon:colorize(L["Press SHIFT for other characters info"],"00ff00")) GameTooltip:AddLine(addon:colorize(L["Press SHIFT for other characters info"],"00ff00"))
end end
local function event(self,event,missionID,...) local function event(self,event,missionID,...)
if(event == "GARRISON_MISSION_COMPLETE_RESPONSE") then if(event == "GARRISON_MISSION_COMPLETE_RESPONSE") then
local canComplete, succeeded = ... local canComplete, succeeded = ...
if(canComplete) then if(canComplete) then
-- db['missions'][player][GBM][missionID] = nil -- db['missions'][player][GBM][missionID] = nil
end end
elseif(event == "GARRISON_MISSION_STARTED") then elseif(event == "GARRISON_MISSION_STARTED") then
AddDB(missionID) AddDB(missionID)
elseif(event == "ADDON_LOADED") then elseif(event == "ADDON_LOADED") then
if(missionID == 'Blizzard_GarrisonUI') then if(missionID == 'Blizzard_GarrisonUI') then
findTypes() findTypes()
self:UnregisterEvent(event) self:UnregisterEvent(event)
end end
return return
end end
prune() prune()
end end
local function init() local function init()
db = addon['db']['profile'][childName] db = addon['db']['profile'][childName]
db['missions'] = db['missions'] or {} db['missions'] = db['missions'] or {}
db['missions'][player] = db['missions'][player] or {} db['missions'][player] = db['missions'][player] or {}
options = addon:InitConfig(childName, true, { options = addon:InitConfig(childName, true, {
['type'] = "launcher", ['type'] = "launcher",
['OnClick'] = OnButton, ['OnClick'] = OnButton,
['text'] = db['garrisonText'] or GARRISON_LOCATION_TOOLTIP, ['text'] = db['garrisonText'] or GARRISON_LOCATION_TOOLTIP,
['OnTooltipShow'] = OnTooltipShow, ['OnTooltipShow'] = OnTooltipShow,
['icon'] = "Interface\\Icons\\Achievement_Arena_2v2_6", ['icon'] = "Interface\\Icons\\Achievement_Arena_2v2_6",
}, getPref, setPref) }, getPref, setPref)
addon:AddConfigEntry(childName,'toggle','garrisonHideCombat',L["Hide Alert"],L["Hide mission complete alert"],1,nil,nil,nil,nil) addon:AddConfigEntry(childName,'toggle','garrisonHideCombat',L["Hide Alert"],L["Hide mission complete alert"],1,nil,nil,nil,nil)
addon:AddConfigEntry(childName,'toggle','hideStandard',L["Hide Blizzard"],L["Hide Blizzards default garrison button"],1,nil,nil,nil,nil) addon:AddConfigEntry(childName,'toggle','hideStandard',L["Hide Blizzard"],L["Hide Blizzards default garrison button"],1,nil,nil,nil,nil)
addon:AddConfigEntry(childName,'input','garrisonText',L["Display Text"],L["Display Text description"],1,nil,nil,nil,nil) addon:AddConfigEntry(childName,'input','garrisonText',L["Display Text"],L["Display Text description"],1,nil,nil,nil,nil)
addon:RegisterFunc({"ADDON_LOADED","GARRISON_MISSION_STARTED","GARRISON_MISSION_FINISHED","GARRISON_MISSION_COMPLETE_RESPONSE","PLAYER_LOGOUT"},"OnEvent", event) addon:RegisterFunc({"ADDON_LOADED","GARRISON_MISSION_STARTED","GARRISON_MISSION_FINISHED","GARRISON_MISSION_COMPLETE_RESPONSE","PLAYER_LOGOUT"},"OnEvent", event)
db['GBM'] = db['GBM'] or Enum.GarrisonFollowerType.FollowerType_8_0 db['GBM'] = db['GBM'] or Enum.GarrisonFollowerType.FollowerType_8_0
GBM = db['GBM'] GBM = db['GBM']
if(not IsAddOnLoaded("Blizzard_GarrisonUI")) then if(not IsAddOnLoaded("Blizzard_GarrisonUI")) then
UIParentLoadAddOn("Blizzard_GarrisonUI") UIParentLoadAddOn("Blizzard_GarrisonUI")
end end
if(db['hideStandard']) then if(db['hideStandard']) then
GarrisonLandingPageMinimapButton:UnregisterAllEvents() GarrisonLandingPageMinimapButton:UnregisterAllEvents()
GarrisonLandingPageMinimapButton:Hide() GarrisonLandingPageMinimapButton:Hide()
end end
switchDisplay(db['garrisonHideCombat']) switchDisplay(db['garrisonHideCombat'])
end end
addon:startup(name, childName, init, true, defaults) addon:startup(name, childName, init, true, defaults)

10
license.txt Normal file → Executable file
View File

@ -1,6 +1,6 @@
The following license excludes the libraries (Libs) included. See the libraries directory or website. The following license excludes the libraries (Libs) included. See the libraries directory or website.
This AddOn is public domain. That means you can change it, rename it or paint it yellow. This AddOn is public domain. That means you can change it, rename it or paint it yellow.
My name (Rilgamon) is valid only for WoWInterface.com and curse.com. My name (Rilgamon) is valid only for WoWInterface.com and curse.com.
If you use/offer this addon on another website please remove my name. If you use/offer this addon on another website please remove my name.
If you want to give me credit you can replace it with a link to my profile on WoWInterface.com. If you want to give me credit you can replace it with a link to my profile on WoWInterface.com.

52
locale_deDE.lua Normal file → Executable file
View File

@ -1,27 +1,27 @@
local addonname, addon = ... local addonname, addon = ...
local name = "zz_GarrisonToggle" local name = "zz_GarrisonToggle"
local L = LibStub("AceLocale-3.0"):NewLocale(name, "deDE", false) local L = LibStub("AceLocale-3.0"):NewLocale(name, "deDE", false)
if L then if L then
L[name] = name L[name] = name
L[name..' Settings'] = name..' Einstellungen' L[name..' Settings'] = name..' Einstellungen'
L["Mission done"] = "Mission erledigt" L["Mission done"] = "Mission erledigt"
L['next'] = function(minutes) return format("N\195\164chste %.1f Min",minutes / 60 ) end L['next'] = function(minutes) return format("N\195\164chste %.1f Min",minutes / 60 ) end
L['ArdenwealdGardening_attention'] = function(ready) return format("Aufmerksamkeit erw\195\188nscht im Garten. (%ix)",ready) end L['ArdenwealdGardening_attention'] = function(ready) return format("Aufmerksamkeit erw\195\188nscht im Garten. (%ix)",ready) end
L["Follower:"] = "Abenteurer:" L["Follower:"] = "Abenteurer:"
L["Missions:"] = "Missionen:" L["Missions:"] = "Missionen:"
L["No garrison found!"] = "Keine Garnison gefunden!" L["No garrison found!"] = "Keine Garnison gefunden!"
L["SHIFT LEFTCLICK toggles Garrison"] = "SHIFT LINKSCLICK schaltet durch die Garnisonen" L["SHIFT LEFTCLICK toggles Garrison"] = "SHIFT LINKSCLICK schaltet durch die Garnisonen"
L["Press SHIFT for other characters info"] = "SHIFT zeigt andere Charactere" L["Press SHIFT for other characters info"] = "SHIFT zeigt andere Charactere"
L["Hide Alert"] = "Verstecke Missionsmeldung" L["Hide Alert"] = "Verstecke Missionsmeldung"
L["Hide mission complete alert"] = "Unterdr\195\188ckt Missionsmeldung" L["Hide mission complete alert"] = "Unterdr\195\188ckt Missionsmeldung"
L["Hide Blizzard"] = "Verstecke Blizzard" L["Hide Blizzard"] = "Verstecke Blizzard"
L["Hide Blizzards default garrison button"] = "Versteckt den Garnisonsknopf an der Minimap" L["Hide Blizzards default garrison button"] = "Versteckt den Garnisonsknopf an der Minimap"
L["Display Text"] = "Anzeigetext" L["Display Text"] = "Anzeigetext"
L["Display Text description"] = "Text, der neben dem Icon angezeigt wird." L["Display Text description"] = "Text, der neben dem Icon angezeigt wird."
end end
-- ö \195\182 ß \195\159 -- ö \195\182 ß \195\159
-- ü \195\188 ä \195\164 -- ü \195\188 ä \195\164
-- Ä \195\132 -- Ä \195\132
-- ö \195\182 -- ö \195\182
-- Ü \195\156 -- Ü \195\156

52
locale_enUS.lua Normal file → Executable file
View File

@ -1,27 +1,27 @@
local addonname, addon = ... local addonname, addon = ...
local name = "zz_GarrisonToggle" local name = "zz_GarrisonToggle"
local L = LibStub("AceLocale-3.0"):NewLocale(name, "enUS", true) local L = LibStub("AceLocale-3.0"):NewLocale(name, "enUS", true)
if L then if L then
L[name] = name L[name] = name
L[name..' Settings'] = name..' Einstellungen' L[name..' Settings'] = name..' Einstellungen'
L["Mission done"] = true L["Mission done"] = true
L['next'] = function(minutes) return format("Next %.1f Min",minutes / 60 ) end L['next'] = function(minutes) return format("Next %.1f Min",minutes / 60 ) end
L['ArdenwealdGardening_attention'] = function(ready) return format("Attention needed in your garden. (%ix)",ready) end L['ArdenwealdGardening_attention'] = function(ready) return format("Attention needed in your garden. (%ix)",ready) end
L["Follower:"] = true L["Follower:"] = true
L["Missions:"] = true L["Missions:"] = true
L["No garrison found!"] = true L["No garrison found!"] = true
L["SHIFT LEFTCLICK toggles Garrison"] = true L["SHIFT LEFTCLICK toggles Garrison"] = true
L["Press SHIFT for other characters info"] = true L["Press SHIFT for other characters info"] = true
L["Hide Alert"] = true L["Hide Alert"] = true
L["Hide mission complete alert"] = true L["Hide mission complete alert"] = true
L["Hide Blizzard"] = true L["Hide Blizzard"] = true
L["Hide Blizzards default garrison button"] = true L["Hide Blizzards default garrison button"] = true
L["Display Text"] = true L["Display Text"] = true
L["Display Text description"] = "Default text displayed next to icon" L["Display Text description"] = "Default text displayed next to icon"
end end
-- ö \195\182 ß \195\159 -- ö \195\182 ß \195\159
-- ü \195\188 ä \195\164 -- ü \195\188 ä \195\164
-- Ä \195\132 -- Ä \195\132
-- ö \195\182 -- ö \195\182
-- Ü \195\156 -- Ü \195\156

8
pack.xml Normal file → Executable file
View File

@ -1,5 +1,5 @@
<Ui xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ..\FrameXML\UI.xsd"> <Ui xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ..\FrameXML\UI.xsd">
<script file="locale_deDE.lua"/> <script file="locale_deDE.lua"/>
<script file="locale_enUS.lua"/> <script file="locale_enUS.lua"/>
<Script file="core.lua"/> <Script file="core.lua"/>
</Ui> </Ui>

4
zz_GarrisonToggle.toc Normal file → Executable file
View File

@ -7,5 +7,5 @@
## Author: Rilgamon ## Author: Rilgamon
## SavedVariables: zz_GarrisonToggleDB ## SavedVariables: zz_GarrisonToggleDB
## OptionalDeps: Ace3, BrokerPack, zzLibCommon ## OptionalDeps: Ace3, BrokerPack, zzLibCommon
Common\common.xml Common\common.xml
pack.xml pack.xml