diff --git a/MyCollection/Defaults.lua b/MyCollection/Defaults.lua deleted file mode 100644 index 2f90bda..0000000 --- a/MyCollection/Defaults.lua +++ /dev/null @@ -1,26 +0,0 @@ -local Internals = MyCollection.Internals -Internals.Saved.Defaults = {} -local Defaults = Internals.Saved.Defaults -local Classes = Internals.Classes -local Constants = Internals.Constants - -Defaults.Collection = { - sets = {}, -} -Defaults.Inventory = { - banks = { - [Constants.BagTypes.Bank] = {}, - [Constants.BagTypes.SubscriberBank] = {}, - }, - bags = {}, -} -Defaults.Settings = { - Logging = false, - Window = { - Position = { - Left = 200, - Top = 200, - }, - Scale = 1, - } -} \ No newline at end of file diff --git a/MyCollection/Dependencies.lua b/MyCollection/Dependencies.lua deleted file mode 100644 index d02b528..0000000 --- a/MyCollection/Dependencies.lua +++ /dev/null @@ -1,33 +0,0 @@ -local Dependencies = MyCollection.Internals.Dependencies - -Dependencies.LibSavedVars = LibSavedVars -- https://www.esoui.com/downloads/info2161-LibSavedVars.html ---Dependencies.LibAddonMenu = LibAddonMenu2 -- https://www.esoui.com/downloads/info7-LibAddonMenu.html -- KEY: LibAddonMenu-2.0 -Dependencies.LibMainMenu = LibMainMenu2 -- https://cdn.esoui.com/downloads/info2118-LibMainMenu-2.0.html ---Dependencies.LibDialog = LibDialog -- https://www.esoui.com/downloads/info1931-LibDialog-Customconfirmationdialogwith2buttons.html -Dependencies.LibSets = LibSets -- https://www.esoui.com/downloads/info2241-LibSets.html -if LibDebugLogger ~= nil then - Dependencies.Logger = LibDebugLogger("MyCollection") -- https://www.esoui.com/downloads/info2275-LibDebugLogger.html -else - Dependencies.Logger = nil -end - --- Zenimax API's -Dependencies.Officials = {} -Dependencies.Officials.EventManager = EVENT_MANAGER -Dependencies.Officials.SceneManager = SCENE_MANAGER -Dependencies.Officials.SlashCommands = SLASH_COMMANDS -Dependencies.Officials.SharedInventory = SHARED_INVENTORY -- http://esodata.uesp.net/100031/src/ingame/inventory/sharedinventory.lua.html -Dependencies.Officials.GetItemArmorType = GetItemArmorType -- https://wiki.esoui.com/GetItemArmorType -Dependencies.Officials.GetItemInfo = GetItemInfo -- https://wiki.esoui.com/GetItemInfo -Dependencies.Officials.GetItemLink = GetItemLink -- https://wiki.esoui.com/GetItemLink -Dependencies.Officials.GetItemLinkIcon = GetItemLinkIcon -Dependencies.Officials.GetItemTrait = GetItemTrait -- https://wiki.esoui.com/GetItemTrait -Dependencies.Officials.GetItemWeaponType = GetItemWeaponType -- https://wiki.esoui.com/GetItemWeaponType -Dependencies.Officials.GetCurrentCharacterId = GetCurrentCharacterId -- https://wiki.esoui.com/GetCurrentCharacterId - ----- Possible Libs for future consideration --- https://www.esoui.com/downloads/info808-LibItemInfo.html --- https://www.esoui.com/downloads/info2423-111693.html --- https://www.esoui.com/downloads/info989-LibMainMenu.html --- https://www.esoui.com/downloads/info2125-LibAsync.html --- https://www.esoui.com/downloads/info1146-LibCustomMenu.html \ No newline at end of file diff --git a/MyCollection/Globals.lua b/MyCollection/Globals.lua deleted file mode 100644 index c36207b..0000000 --- a/MyCollection/Globals.lua +++ /dev/null @@ -1,19 +0,0 @@ -local MyCollection = MyCollection - -MyCollection.Name = "MyCollection" -MyCollection.DisplayName = "My Collection" -MyCollection.Version = "0.1.0" -MyCollection.Internals.SavedVariables = { - Inventory = { - Name = "MyCollection_Inventory", - Version = 1, - }, - Collection = { - Name = "MyCollection_Collection", - Version = 1, - }, - Settings = { - Name = "MyCollection_Settings", - Version = 1, - } -} \ No newline at end of file diff --git a/MyCollection/Internals/Defaults.lua b/MyCollection/Internals/Defaults.lua new file mode 100644 index 0000000..2f90bda --- /dev/null +++ b/MyCollection/Internals/Defaults.lua @@ -0,0 +1,26 @@ +local Internals = MyCollection.Internals +Internals.Saved.Defaults = {} +local Defaults = Internals.Saved.Defaults +local Classes = Internals.Classes +local Constants = Internals.Constants + +Defaults.Collection = { + sets = {}, +} +Defaults.Inventory = { + banks = { + [Constants.BagTypes.Bank] = {}, + [Constants.BagTypes.SubscriberBank] = {}, + }, + bags = {}, +} +Defaults.Settings = { + Logging = false, + Window = { + Position = { + Left = 200, + Top = 200, + }, + Scale = 1, + } +} \ No newline at end of file diff --git a/MyCollection/Internals/Dependencies.lua b/MyCollection/Internals/Dependencies.lua new file mode 100644 index 0000000..d02b528 --- /dev/null +++ b/MyCollection/Internals/Dependencies.lua @@ -0,0 +1,33 @@ +local Dependencies = MyCollection.Internals.Dependencies + +Dependencies.LibSavedVars = LibSavedVars -- https://www.esoui.com/downloads/info2161-LibSavedVars.html +--Dependencies.LibAddonMenu = LibAddonMenu2 -- https://www.esoui.com/downloads/info7-LibAddonMenu.html -- KEY: LibAddonMenu-2.0 +Dependencies.LibMainMenu = LibMainMenu2 -- https://cdn.esoui.com/downloads/info2118-LibMainMenu-2.0.html +--Dependencies.LibDialog = LibDialog -- https://www.esoui.com/downloads/info1931-LibDialog-Customconfirmationdialogwith2buttons.html +Dependencies.LibSets = LibSets -- https://www.esoui.com/downloads/info2241-LibSets.html +if LibDebugLogger ~= nil then + Dependencies.Logger = LibDebugLogger("MyCollection") -- https://www.esoui.com/downloads/info2275-LibDebugLogger.html +else + Dependencies.Logger = nil +end + +-- Zenimax API's +Dependencies.Officials = {} +Dependencies.Officials.EventManager = EVENT_MANAGER +Dependencies.Officials.SceneManager = SCENE_MANAGER +Dependencies.Officials.SlashCommands = SLASH_COMMANDS +Dependencies.Officials.SharedInventory = SHARED_INVENTORY -- http://esodata.uesp.net/100031/src/ingame/inventory/sharedinventory.lua.html +Dependencies.Officials.GetItemArmorType = GetItemArmorType -- https://wiki.esoui.com/GetItemArmorType +Dependencies.Officials.GetItemInfo = GetItemInfo -- https://wiki.esoui.com/GetItemInfo +Dependencies.Officials.GetItemLink = GetItemLink -- https://wiki.esoui.com/GetItemLink +Dependencies.Officials.GetItemLinkIcon = GetItemLinkIcon +Dependencies.Officials.GetItemTrait = GetItemTrait -- https://wiki.esoui.com/GetItemTrait +Dependencies.Officials.GetItemWeaponType = GetItemWeaponType -- https://wiki.esoui.com/GetItemWeaponType +Dependencies.Officials.GetCurrentCharacterId = GetCurrentCharacterId -- https://wiki.esoui.com/GetCurrentCharacterId + +---- Possible Libs for future consideration +-- https://www.esoui.com/downloads/info808-LibItemInfo.html +-- https://www.esoui.com/downloads/info2423-111693.html +-- https://www.esoui.com/downloads/info989-LibMainMenu.html +-- https://www.esoui.com/downloads/info2125-LibAsync.html +-- https://www.esoui.com/downloads/info1146-LibCustomMenu.html \ No newline at end of file diff --git a/MyCollection/Internals/Globals.lua b/MyCollection/Internals/Globals.lua new file mode 100644 index 0000000..c36207b --- /dev/null +++ b/MyCollection/Internals/Globals.lua @@ -0,0 +1,19 @@ +local MyCollection = MyCollection + +MyCollection.Name = "MyCollection" +MyCollection.DisplayName = "My Collection" +MyCollection.Version = "0.1.0" +MyCollection.Internals.SavedVariables = { + Inventory = { + Name = "MyCollection_Inventory", + Version = 1, + }, + Collection = { + Name = "MyCollection_Collection", + Version = 1, + }, + Settings = { + Name = "MyCollection_Settings", + Version = 1, + } +} \ No newline at end of file diff --git a/MyCollection/Internals/Namespaces.lua b/MyCollection/Internals/Namespaces.lua new file mode 100644 index 0000000..ea35e5a --- /dev/null +++ b/MyCollection/Internals/Namespaces.lua @@ -0,0 +1,9 @@ +MyCollection.Internals.Data = {} +MyCollection.Internals.Saved = { + Settings = {}, + Inventory = {}, + Collection = {}, +} +MyCollection.Internals.Functions = {} +MyCollection.Internals.Classes = {} +MyCollection.Internals.Dependencies = {} \ No newline at end of file diff --git a/MyCollection/Namespaces.lua b/MyCollection/Namespaces.lua deleted file mode 100644 index ea35e5a..0000000 --- a/MyCollection/Namespaces.lua +++ /dev/null @@ -1,9 +0,0 @@ -MyCollection.Internals.Data = {} -MyCollection.Internals.Saved = { - Settings = {}, - Inventory = {}, - Collection = {}, -} -MyCollection.Internals.Functions = {} -MyCollection.Internals.Classes = {} -MyCollection.Internals.Dependencies = {} \ No newline at end of file