Skip to content

Commit

Permalink
NDui 7.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
siweia committed Jul 15, 2023
1 parent b9b7fc3 commit 1a71636
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Interface/AddOns/NDui/Modules/ActionBar/Bars/MicroMenu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,14 @@ function Bar:MicroButton_Create(parent, data)
button:SetPushedTexture(0)
button:SetDisabledTexture(0)
button:SetHighlightTexture(0) -- 10.1.5
button.SetHighlightAtlas = B.Dummy -- 10.1.5
if tooltip then B.AddTooltip(button, "ANCHOR_RIGHT", tooltip) end

local hl = button:GetHighlightTexture()
Bar:MicroButton_SetupTexture(hl, texture)
hooksecurefunc(button, "SetHighlightAtlas", function()
hl:SetTexture(DB.MicroTex..texture)
hl:SetBlendMode("ADD")
end)
if not C.db["Skins"]["ClassLine"] then hl:SetVertexColor(1, 1, 1) end

local flash = button.FlashBorder
Expand Down
3 changes: 3 additions & 0 deletions Interface/AddOns/NDui/Modules/Tooltip/Tip.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ function TT:UpdateFactionLine(lineData)

local unit = TT.GetUnit(self)
local unitClass = unit and UnitClass(unit)
local unitCreature = unit and UnitCreatureType(unit)

local linetext = lineData.leftText
if linetext == PVP then
Expand All @@ -65,6 +66,8 @@ function TT:UpdateFactionLine(lineData)
end
elseif unitClass and strfind(linetext, unitClass) then
lineData.leftText = gsub(linetext, "(.-)%S+$", replaceSpecInfo)
elseif unitCreature and linetext == unitCreature then
return true
end
end

Expand Down
2 changes: 1 addition & 1 deletion Interface/AddOns/NDui/NDui.toc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
## X-Credits: Elv, Freebaser, Haleth, Haste, lightspark, Loshine, Neavo, p3lim, Paopao001, Qulight, Ray, Rubgrsch, Simpy, Tuller, zork.
## Author: Siweia
## Notes: Empty toc for Curseforge
## Version: 7.11.0
## Version: 7.11.1
## X-Support: DF
## X-Website: https://github.com/siweia/NDui
2 changes: 1 addition & 1 deletion Interface/AddOns/NDui/NDui_Mainline.toc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## X-Credits: Elv, Freebaser, Haleth, Haste, lightspark, Loshine, Neavo, p3lim, Paopao001, Qulight, Ray, Rubgrsch, Simpy, Tuller, zork.
## Author: Siweia
## Notes: More than a UI.
## Version: 7.11.0
## Version: 7.11.1
## X-Support: DF
## X-Website: https://github.com/siweia/NDui
## X-Curse-Project-ID: 324377
Expand Down

0 comments on commit 1a71636

Please sign in to comment.