Skip to content

Commit

Permalink
v0.4.17
Browse files Browse the repository at this point in the history
  • Loading branch information
d4kir92 committed Jan 10, 2024
1 parent e50a78f commit 0d2a18b
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 7 deletions.
2 changes: 1 addition & 1 deletion DarkMode.toc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Interface-Wrath: 30403
## Interface: 100200

## Version: 0.4.16
## Version: 0.4.17
## Title: DarkMode by |cff3FC7EBD4KiR |T132115:16:16:0:0|t
## Notes: Improve Any Ui or Frame
## Author: D4KiR
Expand Down
2 changes: 1 addition & 1 deletion DarkMode_TBC.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 20504
## Version: 0.4.16
## Version: 0.4.17
## Title: DarkMode |T136122:16:16:0:0|t by |cff3FC7EBD4KiR |T132115:16:16:0:0|t
## Notes: Improve Any Ui or Frame
## Author: D4KiR
Expand Down
2 changes: 1 addition & 1 deletion DarkMode_Vanilla.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 11500
## Version: 0.4.16
## Version: 0.4.17
## Title: DarkMode |T136122:16:16:0:0|t by |cff3FC7EBD4KiR |T132115:16:16:0:0|t
## Notes: Improve Any Ui or Frame
## Author: D4KiR
Expand Down
2 changes: 1 addition & 1 deletion DarkMode_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 30403
## Version: 0.4.16
## Version: 0.4.17
## Title: DarkMode |T136122:16:16:0:0|t by |cff3FC7EBD4KiR |T132115:16:16:0:0|t
## Notes: Improve Any Ui or Frame
## Author: D4KiR
Expand Down
51 changes: 51 additions & 0 deletions core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,57 @@ function DarkMode:Event(event, ...)
end
)

local chatButtons = {
["ChatFrame%sButtonFrameBottomButton"] = {0.77, -0.5, 0},
["ChatFrame%sButtonFrameDownButton"] = {0.77, -0.5, 0},
["ChatFrame%sButtonFrameUpButton"] = {0.77, -0.5, 0},
}

local chatSpecialButtons = {
["ChatFrameMenuButton"] = {0.77, 0, 0},
["ChatFrameChannelButton"] = {0.94, 0, 0}
}

if ChatFrame1ButtonFrameBottomButton then
for i = 1, 10 do
for btnName, btnTab in pairs(chatButtons) do
local btn = _G[format(btnName, i)]
if btn then
local scale = btnTab[1]
local px = btnTab[2]
local py = btnTab[3]
local _, sh = btn:GetSize()
sh = DarkMode:MathR(sh)
btn.border = btn:CreateTexture(btnName .. ".border", "OVERLAY")
local border = btn.border
border:SetDrawLayer("OVERLAY", 3)
border:SetSize(sh * scale, sh * scale)
border:SetTexture("Interface\\AddOns\\DarkMode\\media\\default")
border:SetPoint("CENTER", btn, "CENTER", px, py)
DarkMode:UpdateColor(border, "frame")
end
end
end

for btnName, btnTab in pairs(chatSpecialButtons) do
local btn = _G[btnName]
if btn then
local scale = btnTab[1]
local px = btnTab[2]
local py = btnTab[3]
local _, sh = btn:GetSize()
sh = DarkMode:MathR(sh)
btn.border = btn:CreateTexture(btnName .. ".border", "OVERLAY")
local border = btn.border
border:SetDrawLayer("OVERLAY", 3)
border:SetSize(sh * scale, sh * scale)
border:SetTexture("Interface\\AddOns\\DarkMode\\media\\default")
border:SetPoint("CENTER", btn, "CENTER", px, py)
DarkMode:UpdateColor(border, "frame")
end
end
end

if DarkMode:GetWoWBuild() ~= "RETAIL" then
-- delay for other addons changing
C_Timer.After(
Expand Down
2 changes: 1 addition & 1 deletion data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ local DMUi = {
["Tooltips"] = {"GameTooltip.NineSlice", "ItemRefTooltip.NineSlice", "ShoppingTooltip1.NineSlice", "ShoppingTooltip2.NineSlice", "WhatsTrainingTooltip.NineSlice"},
["Artworks"] = {"MainMenuBar.BorderArt", "MainMenuBarTextureExtender", "MainMenuBarTexture0", "MainMenuBarTexture1", "MainMenuBarTexture2", "MainMenuBarTexture3", "MainMenuExpBar", "ReputationWatchBar.StatusBar", "MainStatusTrackingBarContainer.BarFrameTexture", "SecondaryStatusTrackingBarContainer.BarFrameTexture", "MainMenuBarMaxLevelBar", "BT4BarBlizzardArt", "BT4BarBlizzardArt.nineSliceParent", "BlizzardArtLeftCap", "BlizzardArtRightCap", "CompactRaidFrameManager", "CharacterReagentBag0SlotNormalTexture", "CharacterBag0SlotNormalTexture", "CharacterBag1SlotNormalTexture", "CharacterBag2SlotNormalTexture", "CharacterBag3SlotNormalTexture", "MainMenuBarBackpackButtonNormalTexture"},
["Gryphons"] = {"MA_LeftEndCap", "MA_RightEndCap", "MainMenuBar.EndCaps", "MainMenuBarLeftEndCap", "MainMenuBarRightEndCap"},
["Chat"] = {"ChatFrame1Tab", "ChatFrame2Tab", "ChatFrame3Tab", "ChatFrame4Tab", "ChatFrame5Tab", "ChatFrame6Tab", "ChatFrame7Tab", "ChatFrame8Tab", "ChatFrame9Tab", "ChatFrame10Tab",},
["Chat"] = {"ChatFrame1EditBox", "ChatFrame1Tab", "ChatFrame2Tab", "ChatFrame3Tab", "ChatFrame4Tab", "ChatFrame5Tab", "ChatFrame6Tab", "ChatFrame7Tab", "ChatFrame8Tab", "ChatFrame9Tab", "ChatFrame10Tab",},
["Castbar"] = {"CastingBarFrame.Border", "PlayerCastingBarFrame.Background", "PlayerCastingBarFrame.Border", "PlayerCastingBarFrame.TextBorder"}
}

Expand Down
4 changes: 2 additions & 2 deletions settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ function DarkMode:InitDMSettings()
DMSettings:Hide()
end

D4:SetVersion(AddonName, 136122, "0.4.16")
DMSettings.TitleText:SetText(format("DarkMode |T136122:16:16:0:0|t v|cff3FC7EB%s", "0.4.16"))
D4:SetVersion(AddonName, 136122, "0.4.17")
DMSettings.TitleText:SetText(format("DarkMode |T136122:16:16:0:0|t v|cff3FC7EB%s", "0.4.17"))
DMSettings.CloseButton:SetScript(
"OnClick",
function()
Expand Down

0 comments on commit 0d2a18b

Please sign in to comment.