From 0b406717b86803cb18ec24cfb99245ea810c2bb7 Mon Sep 17 00:00:00 2001 From: rilgamon Date: Mon, 22 Mar 2021 18:38:42 +0100 Subject: [PATCH 1/3] Remove unused files --- .gitmodules | 3 -- Common | 1 - specialframe.lua | 113 ----------------------------------------------- 3 files changed, 117 deletions(-) delete mode 100644 .gitmodules delete mode 160000 Common delete mode 100644 specialframe.lua diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 34950ac..0000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "Common"] - path = Common - url = https://git.grml.de/rilgamon/Common.git diff --git a/Common b/Common deleted file mode 160000 index a4f1483..0000000 --- a/Common +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a4f1483ece050607772176aed8b46a565df60458 diff --git a/specialframe.lua b/specialframe.lua deleted file mode 100644 index cff3f41..0000000 --- a/specialframe.lua +++ /dev/null @@ -1,113 +0,0 @@ -local addon, tab = ... -local _G = _G - -local function uniqueName(name) - local unique,n = name.."1" ,1 - while(_G[unique]) do - n = n + 1 - unique = format("%s%s",name,n) - end - return unique -end - -local function onclick(self) - PanelTemplates_SetTab(self:GetParent(), self:GetID()); -end - -local function createSpecialFrame(name, store, tabin) - name = name or addon - tabin = tabin or {} - tabin['tex1'] = tabin['tex1'] or "Interface/TaxiFrame/UI-TaxiFrame-TopLeft.blp" -- 256x256 - tabin['tex1w'] = tabin['tex1w'] or 256 - tabin['tex1h'] = tabin['tex1h'] or 256 - tabin['tex2'] = tabin['tex2'] or "Interface/TaxiFrame/UI-TaxiFrame-TopRight" -- 128x256 - tabin['tex2w'] = tabin['tex2w'] or 128 - tabin['tex2h'] = tabin['tex2h'] or 256 - tabin['tex3'] = tabin['tex3'] or "Interface/TaxiFrame/UI-TaxiFrame-BotLeft" -- 256x256 - tabin['tex3w'] = tabin['tex3w'] or 256 - tabin['tex3h'] = tabin['tex3h'] or 256 - tabin['tex4'] = tabin['tex4'] or "Interface/TaxiFrame/UI-TaxiFrame-BotRight" -- 128x256 - tabin['tex4w'] = tabin['tex4w'] or 128 - tabin['tex4h'] = tabin['tex4h'] or 256 - tabin['tex5'] = tabin['tex5'] or "Interface/MERCHANTFRAME/UI-BuyBack-Icon" -- 64x64 - tabin['tex5w'] = tabin['tex5w'] or 64 - tabin['tex5h'] = tabin['tex5h'] or 64 - tabin['title'] = tabin['title'] or addon - tabin['strata'] = tabin['strata'] or "MEDIUM" - local frame = CreateFrame("Frame",uniqueName(name),UIParent) - frame:SetWidth(348) - frame:SetHeight(512) - frame:SetPoint("CENTER",UIParent,"CENTER",0,0) - frame['tab'] = store --- tab['loadFrame'](frame) - tab['AddDrag'](frame) - frame['title'] = frame:CreateFontString("$PARENTTitle","OVERLAY","GameFontNormal") - frame['title']:SetPoint("TOP",frame,"TOP",0,-17) - frame['title']:SetText(tabin['title']) - frame['tex1'] = frame:CreateTexture(tabin['tex1'],tabin['strata']) - frame['tex1f'] = CreateFrame("Frame","$PARENTt1",frame) - frame['tex1f']:SetWidth(tabin['tex1w']) - frame['tex1f']:SetFrameLevel(5) - frame['tex1f']:SetHeight(tabin['tex1w']) - frame['tex1']:SetAllPoints(frame['tex1f']) - frame['tex1']:SetTexture(tabin['tex1']) - frame['tex2'] = frame:CreateTexture(tabin['tex2'],tabin['strata']) - frame['tex2f'] = CreateFrame("Frame","$PARENTt2",frame) - frame['tex2f']:SetWidth(tabin['tex2w']) - frame['tex2f']:SetHeight(tabin['tex2h']) - frame['tex2']:SetAllPoints(frame['tex2f']) - frame['tex2']:SetTexture(tabin['tex2']) - frame['tex3'] = frame:CreateTexture(tabin['tex3'],tabin['strata']) - frame['tex3f'] = CreateFrame("Frame","$PARENTt3",frame) - frame['tex3f']:SetWidth(tabin['tex3w']) - frame['tex3f']:SetHeight(tabin['tex3h']) - frame['tex3']:SetAllPoints(frame['tex3f']) - frame['tex3']:SetTexture(tabin['tex3']) - frame['tex4'] = frame:CreateTexture(tabin['tex4'],tabin['strata']) - frame['tex4f'] = CreateFrame("Frame","$PARENTt4",frame) - frame['tex4f']:SetWidth(tabin['tex4w']) - frame['tex4f']:SetHeight(tabin['tex4h']) - frame['tex4']:SetAllPoints(frame['tex4f']) - frame['tex4']:SetTexture(tabin['tex4']) - frame['tex5'] = frame:CreateTexture(tabin['tex5'],"BACKGROUND") - frame['tex5f'] = CreateFrame("Frame","$PARENTt5",frame) - frame['tex5f']:SetWidth(tabin['tex5w']) - frame['tex5f']:SetHeight(tabin['tex5h']) - frame['tex5']:SetAllPoints(frame['tex5f']) - frame['tex5']:SetTexture(tabin['tex5']) - frame['tex5f']:SetFrameLevel(6) - frame['tex1f']:SetPoint("TOPLEFT",frame,"TOPLEFT") - frame['tex5f']:SetPoint("TOPLEFT",frame,"TOPLEFT",8,-5) - frame['tex2f']:SetPoint("TOPRIGHT",frame,"TOPRIGHT") - frame['tex3f']:SetPoint("BOTTOMLEFT",frame,"BOTTOMLEFT") - frame['tex4f']:SetPoint("BOTTOMRIGHT",frame,"BOTTOMRIGHT") - frame['closebutton'] = CreateFrame("Button","$PARENTCloseButton",frame,"UIPanelCloseButton") - frame['closebutton']:SetPoint("TOPRIGHT",frame,"TOPRIGHT",-30,-8) - frame['numTabs'] = tabin['numTabs'] or 0 - local prev = frame - local anchor = "CENTER" - local parentanchor = "BOTTOMLEFT" - local x,y = 60,62 - local framenum - if(frame['numTabs'] and frame['numTabs'] > 0) then - for k = 1, frame['numTabs'] do - framenum = format("frametab%d",k) - frame[framenum] = CreateFrame("Button",format("$PARENTTab%d",k),frame,"CharacterFrameTabButtonTemplate") - frame[framenum]:SetPoint(anchor,prev,parentanchor,x,y) - frame[framenum]:SetFrameStrata("HIGH") - frame[framenum]:SetText(tabin['tabtxt'..k] or "none") - frame[framenum]:SetID(k) - frame[framenum]:SetScript("OnClick", onclick) - x = -16 - y = 0 - anchor = "LEFT" - parentanchor = "RIGHT" - prev = frame[framenum] - end - end - PanelTemplates_SetTab(frame, 1); - frame:Hide() - return frame -end - -tab['createSpecialFrame'] = createSpecialFrame \ No newline at end of file From ff7780f346b2ef9b9b2e9ade82e94535288e22f2 Mon Sep 17 00:00:00 2001 From: rilgamon Date: Mon, 22 Mar 2021 18:40:19 +0100 Subject: [PATCH 2/3] First version for zz2 Framework --- Libs/AceConfig-3.0/AceConfig-3.0.lua | 58 + Libs/AceConfig-3.0/AceConfig-3.0.xml | 8 + .../AceConfigCmd-3.0/AceConfigCmd-3.0.lua | 794 +++++++ .../AceConfigCmd-3.0/AceConfigCmd-3.0.xml | 4 + .../AceConfigDialog-3.0.lua | 2018 +++++++++++++++++ .../AceConfigDialog-3.0.xml | 4 + .../AceConfigRegistry-3.0.lua | 371 +++ .../AceConfigRegistry-3.0.xml | 4 + Libs/AceConfig-3.0/LICENSE.txt | 29 + Libs/AceConfig-3.0/README.md | 1 + Libs/AceConfig-3.0/rev.txt | 1 + Libs/AceDB-3.0/AceDB-3.0.lua | 744 ++++++ Libs/AceDB-3.0/AceDB-3.0.xml | 4 + Libs/AceDB-3.0/LICENSE.txt | 29 + Libs/AceDB-3.0/README.md | 1 + Libs/AceDB-3.0/rev.txt | 1 + Libs/AceDBOptions-3.0/AceDBOptions-3.0.lua | 460 ++++ Libs/AceDBOptions-3.0/AceDBOptions-3.0.xml | 4 + Libs/AceDBOptions-3.0/LICENSE.txt | 29 + Libs/AceDBOptions-3.0/README.md | 1 + Libs/AceDBOptions-3.0/rev.txt | 1 + Libs/AceGUI-3.0/AceGUI-3.0.lua | 1026 +++++++++ Libs/AceGUI-3.0/AceGUI-3.0.xml | 28 + Libs/AceGUI-3.0/LICENSE.txt | 29 + Libs/AceGUI-3.0/README.md | 1 + Libs/AceGUI-3.0/rev.txt | 1 + .../AceGUIContainer-BlizOptionsGroup.lua | 138 ++ .../widgets/AceGUIContainer-DropDownGroup.lua | 157 ++ .../widgets/AceGUIContainer-Frame.lua | 318 +++ .../widgets/AceGUIContainer-InlineGroup.lua | 103 + .../widgets/AceGUIContainer-ScrollFrame.lua | 215 ++ .../widgets/AceGUIContainer-SimpleGroup.lua | 69 + .../widgets/AceGUIContainer-TabGroup.lua | 349 +++ .../widgets/AceGUIContainer-TreeGroup.lua | 715 ++++++ .../widgets/AceGUIContainer-Window.lua | 336 +++ .../widgets/AceGUIWidget-Button.lua | 103 + .../widgets/AceGUIWidget-CheckBox.lua | 296 +++ .../widgets/AceGUIWidget-ColorPicker.lua | 190 ++ .../widgets/AceGUIWidget-DropDown-Items.lua | 471 ++++ .../widgets/AceGUIWidget-DropDown.lua | 737 ++++++ .../widgets/AceGUIWidget-EditBox.lua | 263 +++ .../widgets/AceGUIWidget-Heading.lua | 78 + Libs/AceGUI-3.0/widgets/AceGUIWidget-Icon.lua | 140 ++ .../widgets/AceGUIWidget-InteractiveLabel.lua | 94 + .../widgets/AceGUIWidget-Keybinding.lua | 249 ++ .../AceGUI-3.0/widgets/AceGUIWidget-Label.lua | 179 ++ .../widgets/AceGUIWidget-MultiLineEditBox.lua | 366 +++ .../widgets/AceGUIWidget-Slider.lua | 284 +++ Libs/AceLocale-3.0/AceLocale-3.0.lua | 137 ++ Libs/AceLocale-3.0/AceLocale-3.0.xml | 4 + Libs/AceLocale-3.0/LICENSE.txt | 29 + Libs/AceLocale-3.0/README.md | 1 + Libs/AceLocale-3.0/rev.txt | 1 + .../CallbackHandler-1.0.lua | 212 ++ .../CallbackHandler-1.0.xml | 4 + Libs/CallbackHandler-1.0/LICENSE.txt | 29 + Libs/CallbackHandler-1.0/README.md | 1 + Libs/CallbackHandler-1.0/rev.txt | 1 + Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua | 476 ++++ Libs/LibDBIcon-1.0/lib.xml | 7 + Libs/LibDataBroker-1.1/LibDataBroker-1.1.lua | 90 + Libs/LibDataBroker-1.1/README.textile | 13 + Libs/LibStub/LICENSE.txt | 29 + Libs/LibStub/LibStub.lua | 30 + Libs/LibStub/README.md | 1 + Libs/LibStub/rev.txt | 1 + Libs/embeds.xml | 15 + Libs/zzAddOn/zzAddOn.lua | 185 ++ Libs/zzConfig/zzConfig.lua | 194 ++ Libs/zzHelper/zzHelper.lua | 179 ++ Libs/zzLDB/zzLDB.lua | 74 + broker.lua | 39 + core.lua | 280 +-- icon2.tga | Bin init.lua | 8 + locale_deDE.lua | 141 +- locale_enUS.lua | 129 +- pack.xml | 12 +- prefs.lua | 22 + zz_Bags.toc | 21 +- 80 files changed, 13533 insertions(+), 333 deletions(-) create mode 100755 Libs/AceConfig-3.0/AceConfig-3.0.lua create mode 100755 Libs/AceConfig-3.0/AceConfig-3.0.xml create mode 100755 Libs/AceConfig-3.0/AceConfigCmd-3.0/AceConfigCmd-3.0.lua create mode 100755 Libs/AceConfig-3.0/AceConfigCmd-3.0/AceConfigCmd-3.0.xml create mode 100755 Libs/AceConfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua create mode 100755 Libs/AceConfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.xml create mode 100755 Libs/AceConfig-3.0/AceConfigRegistry-3.0/AceConfigRegistry-3.0.lua create mode 100755 Libs/AceConfig-3.0/AceConfigRegistry-3.0/AceConfigRegistry-3.0.xml create mode 100755 Libs/AceConfig-3.0/LICENSE.txt create mode 100755 Libs/AceConfig-3.0/README.md create mode 100755 Libs/AceConfig-3.0/rev.txt create mode 100755 Libs/AceDB-3.0/AceDB-3.0.lua create mode 100755 Libs/AceDB-3.0/AceDB-3.0.xml create mode 100755 Libs/AceDB-3.0/LICENSE.txt create mode 100755 Libs/AceDB-3.0/README.md create mode 100755 Libs/AceDB-3.0/rev.txt create mode 100755 Libs/AceDBOptions-3.0/AceDBOptions-3.0.lua create mode 100755 Libs/AceDBOptions-3.0/AceDBOptions-3.0.xml create mode 100755 Libs/AceDBOptions-3.0/LICENSE.txt create mode 100755 Libs/AceDBOptions-3.0/README.md create mode 100755 Libs/AceDBOptions-3.0/rev.txt create mode 100755 Libs/AceGUI-3.0/AceGUI-3.0.lua create mode 100755 Libs/AceGUI-3.0/AceGUI-3.0.xml create mode 100755 Libs/AceGUI-3.0/LICENSE.txt create mode 100755 Libs/AceGUI-3.0/README.md create mode 100755 Libs/AceGUI-3.0/rev.txt create mode 100755 Libs/AceGUI-3.0/widgets/AceGUIContainer-BlizOptionsGroup.lua create mode 100755 Libs/AceGUI-3.0/widgets/AceGUIContainer-DropDownGroup.lua create mode 100755 Libs/AceGUI-3.0/widgets/AceGUIContainer-Frame.lua create mode 100755 Libs/AceGUI-3.0/widgets/AceGUIContainer-InlineGroup.lua create mode 100755 Libs/AceGUI-3.0/widgets/AceGUIContainer-ScrollFrame.lua create mode 100755 Libs/AceGUI-3.0/widgets/AceGUIContainer-SimpleGroup.lua create mode 100755 Libs/AceGUI-3.0/widgets/AceGUIContainer-TabGroup.lua create mode 100755 Libs/AceGUI-3.0/widgets/AceGUIContainer-TreeGroup.lua create mode 100755 Libs/AceGUI-3.0/widgets/AceGUIContainer-Window.lua create mode 100755 Libs/AceGUI-3.0/widgets/AceGUIWidget-Button.lua create mode 100755 Libs/AceGUI-3.0/widgets/AceGUIWidget-CheckBox.lua create mode 100755 Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua create mode 100755 Libs/AceGUI-3.0/widgets/AceGUIWidget-DropDown-Items.lua create mode 100755 Libs/AceGUI-3.0/widgets/AceGUIWidget-DropDown.lua create mode 100755 Libs/AceGUI-3.0/widgets/AceGUIWidget-EditBox.lua create mode 100755 Libs/AceGUI-3.0/widgets/AceGUIWidget-Heading.lua create mode 100755 Libs/AceGUI-3.0/widgets/AceGUIWidget-Icon.lua create mode 100755 Libs/AceGUI-3.0/widgets/AceGUIWidget-InteractiveLabel.lua create mode 100755 Libs/AceGUI-3.0/widgets/AceGUIWidget-Keybinding.lua create mode 100755 Libs/AceGUI-3.0/widgets/AceGUIWidget-Label.lua create mode 100755 Libs/AceGUI-3.0/widgets/AceGUIWidget-MultiLineEditBox.lua create mode 100755 Libs/AceGUI-3.0/widgets/AceGUIWidget-Slider.lua create mode 100755 Libs/AceLocale-3.0/AceLocale-3.0.lua create mode 100755 Libs/AceLocale-3.0/AceLocale-3.0.xml create mode 100755 Libs/AceLocale-3.0/LICENSE.txt create mode 100755 Libs/AceLocale-3.0/README.md create mode 100755 Libs/AceLocale-3.0/rev.txt create mode 100755 Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua create mode 100755 Libs/CallbackHandler-1.0/CallbackHandler-1.0.xml create mode 100755 Libs/CallbackHandler-1.0/LICENSE.txt create mode 100755 Libs/CallbackHandler-1.0/README.md create mode 100755 Libs/CallbackHandler-1.0/rev.txt create mode 100755 Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua create mode 100755 Libs/LibDBIcon-1.0/lib.xml create mode 100755 Libs/LibDataBroker-1.1/LibDataBroker-1.1.lua create mode 100755 Libs/LibDataBroker-1.1/README.textile create mode 100755 Libs/LibStub/LICENSE.txt create mode 100755 Libs/LibStub/LibStub.lua create mode 100755 Libs/LibStub/README.md create mode 100755 Libs/LibStub/rev.txt create mode 100755 Libs/embeds.xml create mode 100644 Libs/zzAddOn/zzAddOn.lua create mode 100644 Libs/zzConfig/zzConfig.lua create mode 100644 Libs/zzHelper/zzHelper.lua create mode 100644 Libs/zzLDB/zzLDB.lua create mode 100644 broker.lua mode change 100644 => 100755 icon2.tga create mode 100644 init.lua mode change 100644 => 100755 locale_deDE.lua create mode 100644 prefs.lua diff --git a/Libs/AceConfig-3.0/AceConfig-3.0.lua b/Libs/AceConfig-3.0/AceConfig-3.0.lua new file mode 100755 index 0000000..aae348b --- /dev/null +++ b/Libs/AceConfig-3.0/AceConfig-3.0.lua @@ -0,0 +1,58 @@ +--- AceConfig-3.0 wrapper library. +-- Provides an API to register an options table with the config registry, +-- as well as associate it with a slash command. +-- @class file +-- @name AceConfig-3.0 +-- @release $Id: AceConfig-3.0.lua 1202 2019-05-15 23:11:22Z nevcairiel $ + +--[[ +AceConfig-3.0 + +Very light wrapper library that combines all the AceConfig subcomponents into one more easily used whole. + +]] + +local cfgreg = LibStub("AceConfigRegistry-3.0") +local cfgcmd = LibStub("AceConfigCmd-3.0") + +local MAJOR, MINOR = "AceConfig-3.0", 3 +local AceConfig = LibStub:NewLibrary(MAJOR, MINOR) + +if not AceConfig then return end + +--TODO: local cfgdlg = LibStub("AceConfigDialog-3.0", true) +--TODO: local cfgdrp = LibStub("AceConfigDropdown-3.0", true) + +-- Lua APIs +local pcall, error, type, pairs = pcall, error, type, pairs + +-- ------------------------------------------------------------------- +-- :RegisterOptionsTable(appName, options, slashcmd, persist) +-- +-- - appName - (string) application name +-- - options - table or function ref, see AceConfigRegistry +-- - slashcmd - slash command (string) or table with commands, or nil to NOT create a slash command + +--- Register a option table with the AceConfig registry. +-- You can supply a slash command (or a table of slash commands) to register with AceConfigCmd directly. +-- @paramsig appName, options [, slashcmd] +-- @param appName The application name for the config table. +-- @param options The option table (or a function to generate one on demand). http://www.wowace.com/addons/ace3/pages/ace-config-3-0-options-tables/ +-- @param slashcmd A slash command to register for the option table, or a table of slash commands. +-- @usage +-- local AceConfig = LibStub("AceConfig-3.0") +-- AceConfig:RegisterOptionsTable("MyAddon", myOptions, {"/myslash", "/my"}) +function AceConfig:RegisterOptionsTable(appName, options, slashcmd) + local ok,msg = pcall(cfgreg.RegisterOptionsTable, self, appName, options) + if not ok then error(msg, 2) end + + if slashcmd then + if type(slashcmd) == "table" then + for _,cmd in pairs(slashcmd) do + cfgcmd:CreateChatCommand(cmd, appName) + end + else + cfgcmd:CreateChatCommand(slashcmd, appName) + end + end +end diff --git a/Libs/AceConfig-3.0/AceConfig-3.0.xml b/Libs/AceConfig-3.0/AceConfig-3.0.xml new file mode 100755 index 0000000..d9eb96a --- /dev/null +++ b/Libs/AceConfig-3.0/AceConfig-3.0.xml @@ -0,0 +1,8 @@ + + + + + +