Skip to content

Commit

Permalink
v0.5.74
Browse files Browse the repository at this point in the history
  • Loading branch information
d4kir92 committed Aug 1, 2024
1 parent 90b765d commit fa0c698
Show file tree
Hide file tree
Showing 15 changed files with 86 additions and 117 deletions.
2 changes: 1 addition & 1 deletion DarkMode.toc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
## Interface-Cata: 40400
## Interface: 100207, 110000

## Version: 0.5.73
## Version: 0.5.74
## 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_Cata.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 40400
## Version: 0.5.73
## Version: 0.5.74
## 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_TBC.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 20504
## Version: 0.5.73
## Version: 0.5.74
## 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: 11503
## Version: 0.5.73
## Version: 0.5.74
## 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.5.73
## Version: 0.5.74
## 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
97 changes: 26 additions & 71 deletions core.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
local _, DarkMode = ...
DMHIDDEN = CreateFrame("FRAME", "DMHIDDEN")
DMHIDDEN:Hide()
local DMMMBTN = nil
local debug = 0
function DarkMode:Debug(num, msg, ...)
if debug > 0 and debug == num or debug == 11 then
Expand Down Expand Up @@ -422,7 +421,7 @@ end

function DarkMode:FindTextsByName(name)
local frame = DarkMode:GetFrame(name)
if frame and DarkMode:GV("COLORMODEF", 1) ~= 7 then
if frame and DarkMode:DMGV("COLORMODEF", 1) ~= 7 then
DarkMode:FindTexts(frame, name)
end
end
Expand Down Expand Up @@ -703,7 +702,7 @@ function DarkMode:SearchUi(from)
local btn = _G[name .. x]
local btnTextureNormalTexture = _G[name .. x .. "NormalTexture"]
local btnTextureFloatingBG = _G[name .. x .. "FloatingBG"]
if name == "BT4StanceButton" and btn and _G[name .. x .. "BorderFix"] == nil and (DarkMode:IsEnabled("MASKACTIONBUTTONS", true) or name == "PetActionButton" or name == "StanceButton") and DarkMode:GV("COLORMODEAB", 1) ~= "Off" and DarkMode:GV("COLORMODEAB", 1) ~= "Default" then
if name == "BT4StanceButton" and btn and _G[name .. x .. "BorderFix"] == nil and (DarkMode:IsEnabled("MASKACTIONBUTTONS", true) or name == "PetActionButton" or name == "StanceButton") and DarkMode:DMGV("COLORMODEAB", 1) ~= "Off" and DarkMode:DMGV("COLORMODEAB", 1) ~= "Default" then
local sw, sh = btn:GetSize()
sw = DarkMode:MathR(sw)
sh = DarkMode:MathR(sh)
Expand Down Expand Up @@ -846,7 +845,7 @@ function DarkMode:SearchUi(from)
border:SetPoint("CENTER", btn, "CENTER", 0, 0)
DarkMode:UpdateColor(border, "actionbuttons")
end
elseif DarkMode:GetWoWBuild() ~= "RETAIL" and (DarkMode:IsEnabled("MASKACTIONBUTTONS", true) or name == "PetActionButton" or name == "StanceButton") and DarkMode:GV("COLORMODEAB", 1) ~= "Off" and DarkMode:GV("COLORMODEAB", 1) ~= "Default" then
elseif DarkMode:GetWoWBuild() ~= "RETAIL" and (DarkMode:IsEnabled("MASKACTIONBUTTONS", true) or name == "PetActionButton" or name == "StanceButton") and DarkMode:DMGV("COLORMODEAB", 1) ~= "Off" and DarkMode:DMGV("COLORMODEAB", 1) ~= "Default" then
local icon = _G[name .. x .. "Icon"]
if icon then
local br = 0.012
Expand Down Expand Up @@ -1020,6 +1019,7 @@ function DarkMode:SearchUi(from)
1.1,
function()
DarkMode:Debug(5, "#6")
local DMMMBTN = LibStub("LibDBIcon-1.0", true)
if DMMMBTN then
for i, name in pairs(DMMMBTN:GetButtonList()) do
local btn = _G["LibDBIcon10_" .. name]
Expand Down Expand Up @@ -1121,7 +1121,7 @@ npf:RegisterEvent("NAME_PLATE_UNIT_ADDED")
npf:SetScript(
"OnEvent",
function(self, event, name, ...)
if DarkMode:GV("COLORMODENP", 1) == "Off" then return end
if DarkMode:DMGV("COLORMODENP", 1) == "Off" then return end
local id = string.sub(name, 10)
if nameplateIds[id] == nil then
C_Timer.After(
Expand Down Expand Up @@ -1575,77 +1575,32 @@ function DarkMode:Event(event, ...)
end

if UIParent.SetFixedFrameStrata then
function DarkMode:UpdateMinimapButton()
if DMMMBTN then
if DarkMode:IsEnabled("SHOWMINIMAPBUTTON", true) then
DMMMBTN:Show("DarkModeMinimapIcon")
else
DMMMBTN:Hide("DarkModeMinimapIcon")
end
end
end
C_Timer.After(
1,
function()
DarkMode:CreateMinimapButton(
{
["name"] = "DarkMode",
["icon"] = 136122,
["dbtab"] = DMTAB,
["vTT"] = {"DarkMode", DarkMode:Trans("MMBTNLEFT"), DarkMode:Trans("MMBTNRIGHT")},
["funcL"] = function()
DarkMode:ToggleSettings()
end,
["funcR"] = function()
DarkMode:SV(DMTAB, "MMBTN", false)
DarkMode:HideMMBtn("DarkMode")
end,
}
)

function DarkMode:ToggleMinimapButton()
DarkMode:SetEnabled("SHOWMINIMAPBUTTON", not DarkMode:IsEnabled("SHOWMINIMAPBUTTON", true))
if DMMMBTN then
if DarkMode:IsEnabled("SHOWMINIMAPBUTTON", true) then
DMMMBTN:Show("DarkModeMinimapIcon")
if DarkMode:GV(DMTAB, "MMBTN", true) then
DarkMode:ShowMMBtn("DarkMode")
else
DMMMBTN:Hide("DarkModeMinimapIcon")
DarkMode:HideMMBtn("DarkMode")
end
end
end

function DarkMode:HideMinimapButton()
DarkMode:SetEnabled("SHOWMINIMAPBUTTON", false)
if DMMMBTN then
DMMMBTN:Hide("DarkModeMinimapIcon")
end
end

function DarkMode:ShowMinimapButton()
DarkMode:SetEnabled("SHOWMINIMAPBUTTON", true)
if DMMMBTN then
DMMMBTN:Show("DarkModeMinimapIcon")
end
end

local DarkModeMinimapIcon = LibStub("LibDataBroker-1.1"):NewDataObject(
"DarkModeMinimapIcon",
{
type = "data source",
text = "DarkModeMinimapIcon",
icon = 136122,
OnClick = function(sel, btn)
if btn == "LeftButton" then
DarkMode:ToggleSettings()
elseif btn == "RightButton" then
DarkMode:HideMinimapButton()
end
end,
OnTooltipShow = function(tooltip)
if not tooltip or not tooltip.AddLine then return end
tooltip:AddLine("DarkMode")
tooltip:AddLine(DarkMode:Trans("MMBTNLEFT"))
tooltip:AddLine(DarkMode:Trans("MMBTNRIGHT"))
end,
}
)

if DarkModeMinimapIcon then
DMMMBTN = LibStub("LibDBIcon-1.0", true)
if DMMMBTN then
DMMMBTN:Register("DarkModeMinimapIcon", DarkModeMinimapIcon, DarkMode:GetMinimapTable())
end
end

if DMMMBTN then
if DarkMode:IsEnabled("SHOWMINIMAPBUTTON", true) then
DMMMBTN:Show("DarkModeMinimapIcon")
else
DMMMBTN:Hide("DarkModeMinimapIcon")
end
end
end
end
elseif event == "ADDON_LOADED" then
Expand Down
16 changes: 8 additions & 8 deletions data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,49 +56,49 @@ function DarkMode:GetBrighterColor(r, g, b, a, texture)
end

function DarkMode:GetUiColor(texture)
local r, g, b, a = DarkMode:GetColor(DarkMode:GV("COLORMODE", 1), "CUSTOMUIC")
local r, g, b, a = DarkMode:GetColor(DarkMode:DMGV("COLORMODE", 1), "CUSTOMUIC")
r, g, b, a = DarkMode:GetBrighterColor(r, g, b, a, texture)

return r, g, b, a
end

function DarkMode:GetUFColor(texture)
local r, g, b, a = DarkMode:GetColor(DarkMode:GV("COLORMODEUF", 1), "CUSTOMUFC")
local r, g, b, a = DarkMode:GetColor(DarkMode:DMGV("COLORMODEUF", 1), "CUSTOMUFC")
r, g, b, a = DarkMode:GetBrighterColor(r, g, b, a, texture)

return r, g, b, a
end

function DarkMode:GetNPColor(texture)
local r, g, b, a = DarkMode:GetColor(DarkMode:GV("COLORMODENP", 1), "CUSTOMNPC")
local r, g, b, a = DarkMode:GetColor(DarkMode:DMGV("COLORMODENP", 1), "CUSTOMNPC")
r, g, b, a = DarkMode:GetBrighterColor(r, g, b, a, texture)

return r, g, b, a
end

function DarkMode:GetTTColor(texture)
local r, g, b, a = DarkMode:GetColor(DarkMode:GV("COLORMODETT", 1), "CUSTOMTTC")
local r, g, b, a = DarkMode:GetColor(DarkMode:DMGV("COLORMODETT", 1), "CUSTOMTTC")
r, g, b, a = DarkMode:GetBrighterColor(r, g, b, a, texture)

return r, g, b, a
end

function DarkMode:GetActionButtonsColor(texture)
local r, g, b, a = DarkMode:GetColor(DarkMode:GV("COLORMODEAB", 1), "CUSTOMABC")
local r, g, b, a = DarkMode:GetColor(DarkMode:DMGV("COLORMODEAB", 1), "CUSTOMABC")
r, g, b, a = DarkMode:GetBrighterColor(r, g, b, a, texture)

return r, g, b, a
end

function DarkMode:GetBuffsAndDebuffsColor(texture)
local r, g, b, a = DarkMode:GetColor(DarkMode:GV("COLORMODEBAD", 1), "CUSTOMBADC")
local r, g, b, a = DarkMode:GetColor(DarkMode:DMGV("COLORMODEBAD", 1), "CUSTOMBADC")
r, g, b, a = DarkMode:GetBrighterColor(r, g, b, a, texture)

return r, g, b, a
end

function DarkMode:GetFrameColor(texture)
local r, g, b, a = DarkMode:GetColor(DarkMode:GV("COLORMODEF", 1), "CUSTOMFRC")
local r, g, b, a = DarkMode:GetColor(DarkMode:DMGV("COLORMODEF", 1), "CUSTOMFRC")
r, g, b, a = DarkMode:GetBrighterColor(r, g, b, a, texture)

return r, g, b, a
Expand Down Expand Up @@ -192,7 +192,7 @@ function DarkMode:GetFrameTableSpecial()
return DMFramesSpecial
end

local DMFramesAddons = {"ReforgingFrameRestoreButton_RightSeparator", "ReforgingFrameRestoreButton_LeftSeparator", "ReforgingFrameButtonFrame", "ReforgingFrame", "WeeklyRewardsFrame", "ItemSocketingFrame", "ChannelFrameBg", "ChannelFrame.ChannelRoster.ScrollFrame.scrollBar", "ChannelFrame", "CommunitiesFrame.ChatTab", "CommunitiesFrame.RosterTab", "CommunitiesFrame.GuildBenefitsTab", "CommunitiesFrame.GuildInfoTab", "CommunitiesFrame.GuildMemberDetailFrame.Border", "WarGameStartButton_RightSeparator", "WarGamesFrame", "WarGamesFrameBGTex", "WarGamesFrameInfoScrollFrameScrollBar", "WarGamesFrameInfoScrollFrame.ScrollBar.Background", "WarGamesFrame.scrollBar", "PVPConquestFrame", "PVPFrameRightButton_LeftSeparator", "PVPHonorFrameBGTex", "PVPHonorFrameInfoScrollFrameScrollBar", "PVPHonorFrameInfoScrollFrame.ScrollBar.Background", "PVPHonorFrame.bgTypeScrollBar", "PVPTeamManagementFrame", "ProfessionsBookFrame", "PlayerSpellsFrame", "ScrappingMachineFrame", "ECS_StatsFrame", "TrinketMenu_MainFrame", "TrinketMenu_Trinket0.NormalTexture", "TrinketMenu_Trinket1.NormalTexture", "ProfessionsCustomerOrdersFrame", "VoidStorageBorderFrame", "VoidStorageFrame.Page1", "VoidStorageFrame.Page2", "VoidStorageFrame.Page3", "WardrobeFrame", "WardrobeCollectionFrame", "ProfessionsFrame", "ProfessionsFrame.CraftingPage", "ProfessionsFrame.TabSystem", "ItemInteractionFrame", "ItemInteractionFrame.ItemConversionFrame", "InspectTalentFrame", "InspectTalentFramePointsBar", "InspectPVPFrame", "InspectHonorFrame", "StaticPopup1", "StaticPopup2", "ItemUpgradeFrame", "InspectPaperDollFrame", "InspectFrameTab1", "InspectFrameTab2", "InspectFrameTab3", "EngravingFrame", "EngravingFrame.Border", "EngravingFrameSideInset", "WeakAurasOptions", "GenericTraitFrame.NineSlice", "EditModeManagerFrame.Border", "ClassTrainerFrame", "ClassTrainerListScrollFrame", "ClassTrainerExpandButtonFrame", "KeyBindingFrame", "KeyBindingFrame.header", "MacroFrame", "MacroFrameTab1", "MacroFrameTab2", "MacroFrameTextBackground", "MacroButtonScrollFrame", "MacroFrame.MacroSelector.ScrollBar.Background", "TradeSkillFrame", "CraftFrame", "TradeSkillList", "AuctionFrame", "AuctionFrameTab1", "AuctionFrameTab2", "AuctionFrameTab3", "AuctionFrameTab4", "AuctionFrameTab5", "AuctionFrameTab6", "AuctionFrameTab7", "AuctionFrameTab8", "AuctionFrameTab9", "AuctionFrameTab10", "AuctionFrameTab11", "AuctionFrameTab12", "BrowseBidButton", "BrowseBuyoutButton", "BrowseCloseButton", "BidBidButton", "BidBuyoutButton", "BidCloseButton", "AuctionHouseFrame", "AuctionHouseFrameBuyTab", "AuctionHouseFrameSellTab", "AuctionHouseFrameAuctionsTab", "PlayerTalentFrame", "PlayerTalentFramePointsBar", "PlayerTalentFrameTab1", "PlayerTalentFrameTab2", "PlayerTalentFrameTab3", "PlayerTalentFrameTab4", "PlayerTalentFrameTab5", "ClassTalentFrame", "ClassTalentFrame.TabSystem", "ClassTalentFrame.TalentsTab.BottomBar", "AchievementFrame", "AchievementFrame.Header", "AchievementFrameTab1", "AchievementFrameTab2", "AchievementFrameTab3", "AchievementFrameTab4", "AchievementFrameHeader", "AchievementFrameCategories", "AchievementFrameSummary", "CommunitiesFrame", "CommunitiesFrameCommunitiesList", "CommunitiesFrame.MemberList", "CommunitiesFrame.Chat.MessageFrame.ScrollBar", "CollectionsJournal", "CollectionsJournalTab1", "CollectionsJournalTab2", "CollectionsJournalTab3", "CollectionsJournalTab4", "CollectionsJournalTab5", "CollectionsJournalTab6", "WardrobeCollectionFrame", "WardrobeCollectionFrame.ItemsCollectionFrame", "ToyBox", "ToyBox.iconsFrame", "HeirloomsJournal", "HeirloomsJournal.iconsFrame", "EncounterJournal", "EncounterJournalMonthlyActivitiesTab", "EncounterJournalSuggestTab", "EncounterJournalDungeonTab", "EncounterJournalRaidTab", "EncounterJournalLootJournalTab", "EncounterJournalInstanceSelect", "CalendarFrame",}
local DMFramesAddons = {"MacroPopupFrame.BorderBox", "ReforgingFrameRestoreButton_RightSeparator", "ReforgingFrameRestoreButton_LeftSeparator", "ReforgingFrameButtonFrame", "ReforgingFrame", "WeeklyRewardsFrame", "ItemSocketingFrame", "ChannelFrameBg", "ChannelFrame.ChannelRoster.ScrollFrame.scrollBar", "ChannelFrame", "CommunitiesFrame.ChatTab", "CommunitiesFrame.RosterTab", "CommunitiesFrame.GuildBenefitsTab", "CommunitiesFrame.GuildInfoTab", "CommunitiesFrame.GuildMemberDetailFrame.Border", "WarGameStartButton_RightSeparator", "WarGamesFrame", "WarGamesFrameBGTex", "WarGamesFrameInfoScrollFrameScrollBar", "WarGamesFrameInfoScrollFrame.ScrollBar.Background", "WarGamesFrame.scrollBar", "PVPConquestFrame", "PVPFrameRightButton_LeftSeparator", "PVPHonorFrameBGTex", "PVPHonorFrameInfoScrollFrameScrollBar", "PVPHonorFrameInfoScrollFrame.ScrollBar.Background", "PVPHonorFrame.bgTypeScrollBar", "PVPTeamManagementFrame", "ProfessionsBookFrame", "PlayerSpellsFrame", "ScrappingMachineFrame", "ECS_StatsFrame", "TrinketMenu_MainFrame", "TrinketMenu_Trinket0.NormalTexture", "TrinketMenu_Trinket1.NormalTexture", "ProfessionsCustomerOrdersFrame", "VoidStorageBorderFrame", "VoidStorageFrame.Page1", "VoidStorageFrame.Page2", "VoidStorageFrame.Page3", "WardrobeFrame", "WardrobeCollectionFrame", "ProfessionsFrame", "ProfessionsFrame.CraftingPage", "ProfessionsFrame.TabSystem", "ItemInteractionFrame", "ItemInteractionFrame.ItemConversionFrame", "InspectTalentFrame", "InspectTalentFramePointsBar", "InspectPVPFrame", "InspectHonorFrame", "StaticPopup1", "StaticPopup2", "ItemUpgradeFrame", "InspectPaperDollFrame", "InspectFrameTab1", "InspectFrameTab2", "InspectFrameTab3", "EngravingFrame", "EngravingFrame.Border", "EngravingFrameSideInset", "WeakAurasOptions", "GenericTraitFrame.NineSlice", "EditModeManagerFrame.Border", "ClassTrainerFrame", "ClassTrainerListScrollFrame", "ClassTrainerExpandButtonFrame", "KeyBindingFrame", "KeyBindingFrame.header", "MacroFrame", "MacroFrameTab1", "MacroFrameTab2", "MacroFrameTextBackground", "MacroButtonScrollFrame", "MacroFrame.MacroSelector.ScrollBar.Background", "TradeSkillFrame", "CraftFrame", "TradeSkillList", "AuctionFrame", "AuctionFrameTab1", "AuctionFrameTab2", "AuctionFrameTab3", "AuctionFrameTab4", "AuctionFrameTab5", "AuctionFrameTab6", "AuctionFrameTab7", "AuctionFrameTab8", "AuctionFrameTab9", "AuctionFrameTab10", "AuctionFrameTab11", "AuctionFrameTab12", "BrowseBidButton", "BrowseBuyoutButton", "BrowseCloseButton", "BidBidButton", "BidBuyoutButton", "BidCloseButton", "AuctionHouseFrame", "AuctionHouseFrameBuyTab", "AuctionHouseFrameSellTab", "AuctionHouseFrameAuctionsTab", "PlayerTalentFrame", "PlayerTalentFramePointsBar", "PlayerTalentFrameTab1", "PlayerTalentFrameTab2", "PlayerTalentFrameTab3", "PlayerTalentFrameTab4", "PlayerTalentFrameTab5", "ClassTalentFrame", "ClassTalentFrame.TabSystem", "ClassTalentFrame.TalentsTab.BottomBar", "AchievementFrame", "AchievementFrame.Header", "AchievementFrameTab1", "AchievementFrameTab2", "AchievementFrameTab3", "AchievementFrameTab4", "AchievementFrameHeader", "AchievementFrameCategories", "AchievementFrameSummary", "CommunitiesFrame", "CommunitiesFrameCommunitiesList", "CommunitiesFrame.MemberList", "CommunitiesFrame.Chat.MessageFrame.ScrollBar", "CollectionsJournal", "CollectionsJournalTab1", "CollectionsJournalTab2", "CollectionsJournalTab3", "CollectionsJournalTab4", "CollectionsJournalTab5", "CollectionsJournalTab6", "WardrobeCollectionFrame", "WardrobeCollectionFrame.ItemsCollectionFrame", "ToyBox", "ToyBox.iconsFrame", "HeirloomsJournal", "HeirloomsJournal.iconsFrame", "EncounterJournal", "EncounterJournalMonthlyActivitiesTab", "EncounterJournalSuggestTab", "EncounterJournalDungeonTab", "EncounterJournalRaidTab", "EncounterJournalLootJournalTab", "EncounterJournalInstanceSelect", "CalendarFrame",}
function DarkMode:GetFrameAddonsTable()
return DMFramesAddons
end
Expand Down
1 change: 1 addition & 0 deletions libs/D4Lib/D4Frames.lua
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ function D4:CreateSlider(tab)
"OnValueChanged",
function(sel, val)
val = string.format("%." .. tab.decimals .. "f", val)
val = tonumber(val)
if TAB then
TAB[tab.key] = val
end
Expand Down
2 changes: 1 addition & 1 deletion libs/D4Lib/D4Lib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function D4:IsSpellInRange(spellID, spellType, unit)
end

function D4:GetMouseFocus()
if GetMouseFoci then return GetMouseFoci() end
if GetMouseFoci then return GetMouseFoci()[1] end
if GetMouseFocus then return GetMouseFocus() end
D4:MSG("[D4][GetMouseFocus] FAILED")

Expand Down
6 changes: 3 additions & 3 deletions libs/db.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,17 @@ function DarkMode:SetElePoint(key, p1, p2, p3, p4, p5)
end
end

function DarkMode:SV(name, value)
function DarkMode:DMSV(name, value)
DMTAB = DMTAB or {}
DMTAB["VALUES"] = DMTAB["VALUES"] or {}
DMTAB["VALUES"][name] = value
end

function DarkMode:GV(name, value)
function DarkMode:DMGV(name, value)
DMTAB = DMTAB or {}
DMTAB["VALUES"] = DMTAB["VALUES"] or {}
if DMTAB["VALUES"][name] == nil then
DarkMode:SV(name, value)
DarkMode:DMSV(name, value)
end

return DMTAB["VALUES"][name] or value
Expand Down
2 changes: 1 addition & 1 deletion locale/deDE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local _, DarkMode = ...
DarkMode:AddTrans("deDE", "MMBTNLEFT", "Linksklick => Optionen")
DarkMode:AddTrans("deDE", "MMBTNRIGHT", "Rechtsklick => Minimapknopf verstecken")
DarkMode:AddTrans("deDE", "GENERAL", "Allgemein")
DarkMode:AddTrans("deDE", "SHOWMINIMAPBUTTON", "Minimapknopf anzeigen")
DarkMode:AddTrans("deDE", "MMBTN", "Minimapknopf anzeigen")
DarkMode:AddTrans("deDE", "COLORMODE", "Farbmodus Ui")
DarkMode:AddTrans("deDE", "COLORMODEUF", "Farbmodus Einheitenfenster")
DarkMode:AddTrans("deDE", "COLORMODETT", "Farbmodus Tooltips")
Expand Down
2 changes: 1 addition & 1 deletion locale/enUS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local _, DarkMode = ...
DarkMode:AddTrans("enUS", "MMBTNLEFT", "Left Click => Options")
DarkMode:AddTrans("enUS", "MMBTNRIGHT", "Right Click => Hide Minimap Button")
DarkMode:AddTrans("enUS", "GENERAL", "General")
DarkMode:AddTrans("enUS", "SHOWMINIMAPBUTTON", "Show Minimap Button")
DarkMode:AddTrans("enUS", "MMBTN", "Show Minimap Button")
DarkMode:AddTrans("enUS", "COLORMODE", "Color Mode Ui")
DarkMode:AddTrans("enUS", "COLORMODEUF", "Color Mode UnitFrames")
DarkMode:AddTrans("enUS", "COLORMODETT", "Color Mode Tooltips")
Expand Down
2 changes: 1 addition & 1 deletion locale/zhcn.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local _, DarkMode = ...
DarkMode:AddTrans("zhCN", "MMBTNLEFT", "左键点击 => 菜单选项")
DarkMode:AddTrans("zhCN", "MMBTNRIGHT", "右键点击 => 隐藏小地图按钮")
DarkMode:AddTrans("zhCN", "GENERAL", "常规")
DarkMode:AddTrans("zhCN", "SHOWMINIMAPBUTTON", "显示小地图按钮")
DarkMode:AddTrans("zhCN", "MMBTN", "显示小地图按钮")
DarkMode:AddTrans("zhCN", "COLORMODE", "界面染色")
DarkMode:AddTrans("zhCN", "COLORMODEUF", "头像染色")
DarkMode:AddTrans("zhCN", "COLORMODETT", "鼠标提示染色")
Expand Down
2 changes: 1 addition & 1 deletion locale/zhtw.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local _, DarkMode = ...
DarkMode:AddTrans("zhTW", "MMBTNLEFT", "左鍵點擊 => 選項設定")
DarkMode:AddTrans("zhTW", "MMBTNRIGHT", "右鍵點擊 => 隱藏小地圖按鈕")
DarkMode:AddTrans("zhTW", "GENERAL", "一般")
DarkMode:AddTrans("zhTW", "SHOWMINIMAPBUTTON", "顯示小地圖按鈕")
DarkMode:AddTrans("zhTW", "MMBTN", "顯示小地圖按鈕")
DarkMode:AddTrans("zhTW", "COLORMODE", "介面著色")
DarkMode:AddTrans("zhTW", "COLORMODEUF", "單位框架著色")
DarkMode:AddTrans("zhTW", "COLORMODETT", "滑鼠提示著色")
Expand Down
Loading

0 comments on commit fa0c698

Please sign in to comment.