diff --git a/Core/MultiBotInit.lua b/Core/MultiBotInit.lua index 65b3188..6e7cdce 100644 --- a/Core/MultiBotInit.lua +++ b/Core/MultiBotInit.lua @@ -1,7 +1,8 @@ -- Minimap config is resolved through MultiBot.GetMinimapConfig(). --local MB_INVENTORY_LABEL = INVENTORY_TOOLTIP or BAGSLOT or "Inventory" -local MB_PAGE_DEFAULT = string.format("%d/%d", 0, 0) +-- local MB_PAGE_DEFAULT = string.format("%d/%d", 0, 0) +MultiBot.MB_PAGE_DEFAULT = string.format("%d/%d", 0, 0) --local MB_TAB_TITLE_DEFAULT = UNKNOWN or "" -- ===================================================================== @@ -405,7 +406,7 @@ function MultiBot.BuildFormationUI(tLeft) tFormat:Hide() -- Grid 1 × N (columns) -- - local COLS = 1 -- One column + --local COLS = 1 -- One column local CELL_W = 40 -- wide (useless here but we keep the arg.) local CELL_H = 30 -- high/vertival spacing diff --git a/TODO.md b/TODO.md index f13c307..39aeb5f 100644 --- a/TODO.md +++ b/TODO.md @@ -1,5 +1,6 @@ TODO +* Voi si y'a pas d'autres appels à pageLabel:SetText(MB_PAGE_DEFAULT) dans les fichiers et remplacer par : + pageLabel:SetText(MultiBot.MB_PAGE_DEFAULT or "0/0") * Ressortir les UI quetes dans leurs propre fichiers et uniformiser le tempklate de la frame comme celle de Itemus * Uniformiser le templste de la frame reward comme celle de itemus * Essayer de faire disparaitre la barre multibots au bout d'un temps et la faire apparaitre quand on passe la souris dessus. diff --git a/UI/MultiBotItemusFrame.lua b/UI/MultiBotItemusFrame.lua index ab3d8b8..5013bb7 100644 --- a/UI/MultiBotItemusFrame.lua +++ b/UI/MultiBotItemusFrame.lua @@ -695,7 +695,8 @@ local function createItemusContent(window, itemus) local pageLabel = itemsPanel:CreateFontString(nil, "OVERLAY", "GameFontNormal") pageLabel:SetPoint("TOP", itemsPanel, "TOP", 0, -8) - pageLabel:SetText(MB_PAGE_DEFAULT) + --pageLabel:SetText(MB_PAGE_DEFAULT) + pageLabel:SetText(MultiBot.MB_PAGE_DEFAULT or "0/0") local resultsLabel = itemsPanel:CreateFontString(nil, "OVERLAY", "GameFontHighlightSmall") resultsLabel:SetPoint("TOPRIGHT", itemsPanel, "TOPRIGHT", -12, -10) diff --git a/UI/MultiBotRewardFrame.lua b/UI/MultiBotRewardFrame.lua index 4850c35..2f1570e 100644 --- a/UI/MultiBotRewardFrame.lua +++ b/UI/MultiBotRewardFrame.lua @@ -214,7 +214,8 @@ function MultiBot.InitializeRewardFrame() local pageLabel = content:CreateFontString(nil, "OVERLAY", "GameFontNormal") pageLabel:SetPoint("TOP", content, "TOP", 0, -2) - pageLabel:SetText(MB_PAGE_DEFAULT) + --pageLabel:SetText(MB_PAGE_DEFAULT) + pageLabel:SetText(MultiBot.MB_PAGE_DEFAULT or "0/0") local prevButton = CreateFrame("Button", nil, content, "UIPanelButtonTemplate") prevButton:SetSize(26, 20) diff --git a/UI/MultiBotSpellBookFrame.lua b/UI/MultiBotSpellBookFrame.lua index 8100e07..b3b0d54 100644 --- a/UI/MultiBotSpellBookFrame.lua +++ b/UI/MultiBotSpellBookFrame.lua @@ -73,7 +73,8 @@ local function getSpellBookUI() end local function getSpellBookDefaultPageLabel() - local tDefault = MB_PAGE_DEFAULT + --local tDefault = MB_PAGE_DEFAULT + local tDefault = MultiBot.MB_PAGE_DEFAULT if(type(tDefault) ~= "string" or tDefault == "") then return "1/1" end