From 0f64f2d546584658b4eb0db32264716845d0d20c Mon Sep 17 00:00:00 2001 From: cloudbells Date: Sun, 14 Jul 2024 22:51:45 +0200 Subject: [PATCH] Add CloudUI to .pkgmeta --- .gitmodules | 3 + .pkgmeta | 4 + Libs/CloudUI-1.0 | 1 + Libs/CloudUI-1.0/CloudUI-1.0.lua | 43 --- Libs/CloudUI-1.0/CloudUI-1.0.xml | 12 - Libs/CloudUI-1.0/Libs/LibStub.lua | 51 --- Libs/CloudUI-1.0/Widgets/BaseTemplates.lua | 249 ------------- Libs/CloudUI-1.0/Widgets/CheckButton.lua | 106 ------ Libs/CloudUI-1.0/Widgets/Config.lua | 222 ------------ Libs/CloudUI-1.0/Widgets/Dropdown.lua | 384 --------------------- Libs/CloudUI-1.0/Widgets/EditBox.lua | 235 ------------- Libs/CloudUI-1.0/Widgets/LinkButton.lua | 126 ------- Libs/CloudUI-1.0/Widgets/Slider.lua | 299 ---------------- Libs/CloudUI-1.0/Widgets/TextButton.lua | 100 ------ 14 files changed, 8 insertions(+), 1827 deletions(-) create mode 100644 .gitmodules create mode 160000 Libs/CloudUI-1.0 delete mode 100644 Libs/CloudUI-1.0/CloudUI-1.0.lua delete mode 100644 Libs/CloudUI-1.0/CloudUI-1.0.xml delete mode 100644 Libs/CloudUI-1.0/Libs/LibStub.lua delete mode 100644 Libs/CloudUI-1.0/Widgets/BaseTemplates.lua delete mode 100644 Libs/CloudUI-1.0/Widgets/CheckButton.lua delete mode 100644 Libs/CloudUI-1.0/Widgets/Config.lua delete mode 100644 Libs/CloudUI-1.0/Widgets/Dropdown.lua delete mode 100644 Libs/CloudUI-1.0/Widgets/EditBox.lua delete mode 100644 Libs/CloudUI-1.0/Widgets/LinkButton.lua delete mode 100644 Libs/CloudUI-1.0/Widgets/Slider.lua delete mode 100644 Libs/CloudUI-1.0/Widgets/TextButton.lua diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..3cc24b0 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "Libs/CloudUI-1.0"] + path = Libs/CloudUI-1.0 + url = https://github.com/cloudbells/CloudUI diff --git a/.pkgmeta b/.pkgmeta index 58c810b..f95bd87 100644 --- a/.pkgmeta +++ b/.pkgmeta @@ -1,4 +1,8 @@ package-as: AutoLoggerClassic +externals: + Libs/CloudUI-1.0: + url: https://github.com/cloudbells/CloudUI/ + ignore: - README.md diff --git a/Libs/CloudUI-1.0 b/Libs/CloudUI-1.0 new file mode 160000 index 0000000..a3424f7 --- /dev/null +++ b/Libs/CloudUI-1.0 @@ -0,0 +1 @@ +Subproject commit a3424f76c3b0cbc7d8799c3899448403c21e568f diff --git a/Libs/CloudUI-1.0/CloudUI-1.0.lua b/Libs/CloudUI-1.0/CloudUI-1.0.lua deleted file mode 100644 index 38a5b2f..0000000 --- a/Libs/CloudUI-1.0/CloudUI-1.0.lua +++ /dev/null @@ -1,43 +0,0 @@ --- Constants. -local MAJOR = "CloudUI-1.0" -local MINOR = "1" - -assert(LibStub, MAJOR .. " requires LibStub") -local CUI = LibStub:NewLibrary(MAJOR, MINOR) -if not CUI then - -- Newer or same version already exists. - return -end - --- Variables. -local widgetVersions = {} - --- Returns an enum with the given values. -local function Enum(t) - for i = 1, #t do - t[t[i]] = i - end - return t -end - --- Initializes enums. -local function InitEnums() - CUI.templates = Enum({"DisableableFrameTemplate", "BackgroundFrameTemplate", "BorderedFrameTemplate", "HighlightFrameTemplate", "PushableFrameTemplate"}) -end - --- Initialize the library. -local function Init() - InitEnums() -end - --- Returns the current version of the given widget type. Returns 0 if no widget of that type has been registered. -function CUI:GetWidgetVersion(type) - return widgetVersions[type] or 0 -end - --- Registers the given version for the given widget type. -function CUI:RegisterWidgetVersion(type, version) - widgetVersions[type] = version -end - -Init() diff --git a/Libs/CloudUI-1.0/CloudUI-1.0.xml b/Libs/CloudUI-1.0/CloudUI-1.0.xml deleted file mode 100644 index 4b17fed..0000000 --- a/Libs/CloudUI-1.0/CloudUI-1.0.xml +++ /dev/null @@ -1,12 +0,0 @@ - -