diff --git a/Assets/Textures/Icon.tga b/Assets/Textures/Icon.tga index 9efd294..e6f4dfd 100644 Binary files a/Assets/Textures/Icon.tga and b/Assets/Textures/Icon.tga differ diff --git a/Assets/Textures/IconDice.tga b/Assets/Textures/IconDice.tga new file mode 100644 index 0000000..9efd294 Binary files /dev/null and b/Assets/Textures/IconDice.tga differ diff --git a/Server.lua b/Server.lua index c5317cc..322ecc6 100644 --- a/Server.lua +++ b/Server.lua @@ -37,7 +37,7 @@ LootReserve.Server = UseGlobalProfile = false, Phases = LootReserve:Deepcopy(LootReserve.Constants.DefaultPhases), RollUsePhases = false, - RollPhases = {"Main-Spec", "Off-Spec"}, + RollPhases = {"MainSpec", "OffSpec"}, RollAdvanceOnExpire = true, RollLimitDuration = false, RollDuration = 30, @@ -768,7 +768,6 @@ function LootReserve.Server:PrepareLootTracking() return; end - local target = LootReserve:Player(UnitName("npc")); local itemsToInsert = { }; local slotsFree = 6; @@ -796,11 +795,7 @@ function LootReserve.Server:PrepareLootTracking() if #itemsToInsert > 0 then LootReserveTradeFrameAutoButton:Show(); LootReserveTradeFrameAutoButton:SetEnabled(slotsFree ~= 0); - if #itemsToInsert <= slotsFree then - LootReserveTradeFrameAutoButton:SetText(format("Insert %d |4item:items;", #itemsToInsert)); - else - LootReserveTradeFrameAutoButton:SetText(format("Insert %d / %d |4item:items;", slotsFree, #itemsToInsert)); - end + LootReserveTradeFrameAutoButton:SetText(format("|TInterface\\AddOns\\LootReserve\\Assets\\Textures\\IconDice:16:16:0:0|t Insert %s%d |4item:items;", #itemsToInsert > slotsFree and format("%d / ", slotsFree) or "", #itemsToInsert)); LootReserveTradeFrameAutoButton.ItemsToInsert = itemsToInsert; else LootReserveTradeFrameAutoButton:Hide(); diff --git a/Windows/RollRequestWindow.lua b/Windows/RollRequestWindow.lua index a6b45ab..bce92d8 100644 --- a/Windows/RollRequestWindow.lua +++ b/Windows/RollRequestWindow.lua @@ -56,7 +56,6 @@ local function RollRequested(self, sender, item, players, custom, duration, maxD frame.LabelSender:SetText(format(custom and "%s offers for you to roll%s:" or "%s asks you to roll%s on a reserved item:", LootReserve:ColoredPlayer(sender), phase and format(" for |cFF00FF00%s|r", phase) or "")); frame.ItemFrame.Icon:SetTexture(texture); frame.ItemFrame.Name:SetText((link or name or "|cFFFF4000Loading...|r"):gsub("[%[%]]", "")); - frame.ItemFrame.Name:SetFontObject("GameFontNormal"); frame.ItemFrame.Misc:SetText(description); frame.ButtonRoll:Disable(); frame.ButtonRoll:SetAlpha(0.25); diff --git a/Windows/ServerWindow.lua b/Windows/ServerWindow.lua index c4ce6c1..2780034 100644 --- a/Windows/ServerWindow.lua +++ b/Windows/ServerWindow.lua @@ -176,8 +176,7 @@ function LootReserve.Server:UpdateReserveList(lockdown) frame:SetAlpha(fade and 0.25 or 1); frame.DurationFrame:SetShown(self:IsRolling(frame.Item) and self.RequestedRoll.MaxDuration and not self.RequestedRoll.Custom); - local durationHeight = frame.DurationFrame:IsShown() and 12 or 0; - frame.DurationFrame:SetHeight(math.max(durationHeight, 0.00001)); + frame.DurationFrame:SetHeight(frame.DurationFrame:IsShown() and 12 or 0.00001); local reservesHeight = 5 + 12 + 2; local last = 0; @@ -585,8 +584,7 @@ function LootReserve.Server:UpdateRollList(lockdown) end frame.DurationFrame:SetShown(not historical and self:IsRolling(frame.Item) and self.RequestedRoll.MaxDuration); - local durationHeight = frame.DurationFrame:IsShown() and 12 or 0; - frame.DurationFrame:SetHeight(math.max(durationHeight, 0.00001)); + frame.DurationFrame:SetHeight(frame.DurationFrame:IsShown() and 12 or 0.00001); local reservesHeight = 5 + 12 + 2; local last = 0; @@ -634,7 +632,7 @@ function LootReserve.Server:UpdateRollList(lockdown) frame:SetHeight(6 + 32 + 2 + 20 + 5 + reservesHeight - 1); frame.ReservesFrame:SetPoint("TOP", frame.DistributeButton, "BOTTOM", 0, -5); elseif frame.DurationFrame:IsShown() then - frame:SetHeight(6 + 32 + 3 + 12 + 5 + reservesHeight - 1); + frame:SetHeight(6 + 32 + 12 + 5 + reservesHeight - 1); frame.ReservesFrame:SetPoint("TOP", frame.DurationFrame, "BOTTOM", 0, -5); else frame:SetHeight(6 + 32 + 5 + reservesHeight - 1); diff --git a/Windows/ServerWindow.xml b/Windows/ServerWindow.xml index 45e17db..06ecab2 100644 --- a/Windows/ServerWindow.xml +++ b/Windows/ServerWindow.xml @@ -612,7 +612,7 @@ - + @@ -635,18 +635,7 @@ - - self.GlowLeft:SetDesaturated(true); - self.GlowRight:SetDesaturated(true); - self.GlowLeft2:SetDesaturated(true); - self.GlowRight2:SetDesaturated(true); - self.SetGlow = function(self, glow) - self.GlowLeft:SetShown(glow); - self.GlowRight:SetShown(glow); - self.GlowLeft2:SetShown(glow); - self.GlowRight2:SetShown(glow); - end - + self.Text:SetPoint("CENTER", 0, 0); -- Fix the inherited offset of y=-1 self.SetState = function(self, text, enable, glow) @@ -1030,22 +1019,13 @@ -