--[[
Author: Jarth
Filename: MementoBar_Constants.lua
]] --

-------------------------------------------------------------------------------------------------
-- VARIABLES --
-------------------------------------------------------------------------------------------------
MementoBar = {}

MementoBar.Addon = {
    Name = "MementoBar",
    DisplayName = "Memento bar",
    Version = 1.5,
    MinorVersion = 0,
    SlashCommand = "/mb",
    Author = "Jarth",
    Website = ""
}
MementoBar.WM = GetWindowManager()
MementoBar.Buttons = {}
MementoBar.Fragment = nil
MementoBar.Default = {
    Left = CENTER,
    Top = CENTER,
    CenterColor = {r = 0.88, g = 0.88, b = 0.88, a = 0.4},
    EdgeColor = {r = 0.88, g = 0.88, b = 0.88, a = 0},
    HighlightColor = {r = 0.9, g = 0.9, b = 0.9, a = 0.9},
    FontColor = {r = 0.9, g = 0.9, b = 0.9, a = 0.9},
    UseAccountSettings = true,
    HideBarInMenu = true,
    Horizontal = true,
    Margin = 2,
    Height = 60,
    Width = 60,
    SnapSize = 5,
    BarDepth = 1,
    SelectedMementos = {},
    KeyBindings = {
        [1] = 0,
        [2] = 0,
        [3] = 0,
        [4] = 0,
        [5] = 0
    },
    KeyBindingLocation = BOTTOM,
    ShowKeyBinding = true
}
MementoBar.Mementos = {}
MementoBar.OrderedMementos = {}
MementoBar.Global = {
    IsMoveEnabled = false,
    TopLevelIndex = 7,
    ReverseKeyBindings = {},
    ChoisesKeyBindingLocation = {"bottom","bottomleft","bottomright","center","left","right","top","topleft","topright"}
}

MementoBar.Global.CategoryName,
    _,
    MementoBar.Global.CategoryNumCollectibles,
    MementoBar.Global.CategoryNumUnlocked,
    MementoBar.Global.CategoryTotal,
    _ = GetCollectibleCategoryInfo(MementoBar.Global.TopLevelIndex)
for index = 1, MementoBar.Global.CategoryTotal do
    local collectibleId = GetCollectibleId(MementoBar.Global.TopLevelIndex, nil, index)
    local collectibleName, collectibleDescription, collectibleIcon, _, collectibleUnlocked, _, _, _, collectibleHint, _ = GetCollectibleInfo(collectibleId)
    MementoBar.Mementos[collectibleId] = {
        Id = collectibleId,
        Name = collectibleName,
        EnabledTexture = collectibleIcon,
        Disabled = not collectibleUnlocked,
        Tooltip = string.format("Description: %s \nHint: %s", collectibleDescription, collectibleHint)
    }
    MementoBar.OrderedMementos[index] = MementoBar.Mementos[collectibleId]
end

MementoBar.CountDown = {
    Event = "Cooldown",
    Tick = 100,
    StartTime = 0,
    CollectibleId = nil
}