Commit ae217bff authored by Azilroka's avatar Azilroka

ActionBars: Automatically Add New Spells (Disabled by Default)

parent 67ff1210
......@@ -33,6 +33,7 @@ C["General"] = {
C["ActionBars"] = {
["Enable"] = true,
["AddNewSpells"] = false,
["HotKey"] = false,
["EquipBorder"] = true,
["Macro"] = false,
......@@ -163,7 +164,6 @@ C["Tooltips"] = {
["ShowSpec"] = true,
["MouseOver"] = false,
["HealthFont"] = "Tukui Outline",
}
C["Textures"] = {
......
......@@ -16,20 +16,23 @@ local Panels = T["Panels"]
local Frames = {
MainMenuBar, MainMenuBarArtFrame, OverrideActionBar,
PossessBarFrame, PetActionBarFrame, IconIntroTracker,
ShapeshiftBarLeft, ShapeshiftBarMiddle, ShapeshiftBarRight,
PossessBarFrame, PetActionBarFrame, ShapeshiftBarLeft, ShapeshiftBarMiddle, ShapeshiftBarRight,
TalentMicroButtonAlert, CollectionsMicroButtonAlert, EJMicroButtonAlert, CharacterMicroButtonAlert
}
function TukuiActionBars:DisableBlizzard()
local Hider = Panels.Hider
MainMenuBarArtFrame.RightEndCap.GetRight = function() return 0 end
MainMenuBarMixin.ChangeMenuBarSizeAndPosition = function() return end
MinimapCluster.GetBottom = function() return 999999999 end
SetCVar("alwaysShowActionBars", 1)
if (not C.ActionBars.AddNewSpells) then
tinsert(Frames, IconIntroTracker)
end
for _, frame in pairs(Frames) do
frame:UnregisterAllEvents()
frame.ignoreFramePositionManager = true
......@@ -59,11 +62,11 @@ function TukuiActionBars:DisableBlizzard()
MainMenuBar.slideOut.IsPlaying = function()
return true
end
-- Avoid Hiding Buttons on open/close spellbook
MultiActionBar_HideAllGrids = function() end
MultiActionBar_ShowAllGrids = function() end
ActionBarButtonEventsFrame:UnregisterEvent("ACTIONBAR_HIDEGRID")
end
......@@ -112,12 +115,12 @@ function TukuiActionBars:MovePetBar()
local PetBar = TukuiPetActionBar
local RightBar = TukuiActionBar5
local Data = TukuiData[GetRealmName()][UnitName("Player")].Move.TukuiActionBar5
-- Don't run if player moved bar 5
if Data then
return
end
if RightBar:IsShown() then
PetBar:SetPoint("RIGHT", RightBar, "LEFT", -6, 0)
else
......@@ -129,7 +132,7 @@ function TukuiActionBars:AddPanels()
local Size = C.ActionBars.NormalButtonSize
local PetSize = C.ActionBars.PetButtonSize
local Spacing = C.ActionBars.ButtonSpacing
-- Bar #1
local A1 = CreateFrame("Frame", "TukuiActionBar1", UIParent, "SecureHandlerStateTemplate")
A1:SetPoint("BOTTOM", UIParent, "BOTTOM", 0, 14)
......@@ -181,7 +184,7 @@ function TukuiActionBars:AddPanels()
A6:SetFrameLevel(10)
A6.Backdrop = CreateFrame("Frame", nil, A6)
A6.Backdrop:SetAllPoints()
-- Move Pet Bar if Bar 5 hidden
A5:SetScript("OnShow", self.MovePetBar)
A5:SetScript("OnHide", self.MovePetBar)
......@@ -202,9 +205,9 @@ function TukuiActionBars:AddPanels()
A5.Backdrop:SetTemplate()
A6.Backdrop:SetTemplate()
A7.Backdrop:SetTemplate()
A1.Backdrop:SetFrameLevel(A4:GetFrameLevel())
if not C.General.HideShadows then
A1.Backdrop:CreateShadow()
A2.Backdrop:CreateShadow()
......
......@@ -19,17 +19,17 @@ TukuiConfig["enUS"] = {
["Name"] = "Hide Shadows",
["Desc"] = "Display or hide shadows on certain Tukui frames",
},
["Scaling"] = {
["Name"] = "UI Scale",
["Desc"] = "Define how big the user interface is displayed",
},
["Themes"] = {
["Name"] = "Theme",
["Desc"] = "Applying a theme changes user interface look and feel",
},
["AFKSaver"] = {
["Name"] = "AFK Screensaver",
["Desc"] = "Enable or disable the afk screensaver",
......@@ -42,6 +42,11 @@ TukuiConfig["enUS"] = {
["Desc"] = "Derp",
},
["AddNewSpells"] = {
["Name"] = "Automatically Add New Spells",
["Desc"] = "Derp",
},
["EquipBorder"] = {
["Name"] = "Equipped Item Border",
["Desc"] = "Display Green Border on Equipped Items",
......@@ -212,7 +217,7 @@ TukuiConfig["enUS"] = {
["Name"] = "Mouse Scrolling",
["Desc"] = "Set the number of lines that the chat will jump when scrolling",
},
["ShortChannelName"] = {
["Name"] = "Reduced channel name",
["Desc"] = "Reduces the names of the channels of the chat in abbreviation",
......@@ -257,13 +262,13 @@ TukuiConfig["enUS"] = {
["Desc"] = "Set a font to be used by the data texts",
},
},
["Loot"] = {
["Enable"] = {
["Name"] = "Enable Loot",
["Desc"] = "Enable our loot frame window",
},
["StandardLoot"] = {
["Name"] = "Blizzard Loot Frame",
["Desc"] = "Replace our loot frame with a skinned version of Blizzard loot frame",
......@@ -317,7 +322,7 @@ TukuiConfig["enUS"] = {
["Name"] = "Enable Auto Invites",
["Desc"] = "Automatically accept group invites from friends, and guild members.",
},
["TalkingHeadEnable"] = {
["Name"] = "Enable Talking Head",
["Desc"] = "Display Blizzard Talking Head Frame.",
......@@ -496,7 +501,7 @@ TukuiConfig["enUS"] = {
["Desc"] = "Set a font to be used by the health bar below unit tooltips",
},
},
["Textures"] = {
["QuestProgressTexture"] = {
["Name"] = "Quest [Progress]",
......
......@@ -26,17 +26,17 @@ TukuiConfig["frFR"] = {
["Name"] = "Masquer les Ombres",
["Desc"] = "Afficher ou masquer les ombres sur certains cadres de Tukui",
},
["Scaling"] = {
["Name"] = "Échelle de l'UI",
["Desc"] = "Définir la taille de l'interface utilisateur",
},
["Themes"] = {
["Name"] = "Thème",
["Desc"] = "L'application d'un thème modifie l'interface",
},
["AFKSaver"] = {
["Name"] = "Écran de veille AFK",
["Desc"] = "Active ou désactive l'écran de veille AFK",
......@@ -49,6 +49,11 @@ TukuiConfig["frFR"] = {
["Desc"] = "Ehm...",
},
["AddNewSpells"] = {
["Name"] = "Automatically Add New Spells",
["Desc"] = "Derp",
},
["EquipBorder"] = {
["Name"] = "Identification équipement",
["Desc"] = "Les bordures d'équipements dans la barre d'action sera coloré vert.",
......@@ -219,7 +224,7 @@ TukuiConfig["frFR"] = {
["Name"] = "Défilement de la souris",
["Desc"] = "Définissez le nombre de lignes que la fenêtre de discussion va sauter lors du défilement",
},
["ShortChannelName"] = {
["Name"] = "Nom des canaux réduit",
["Desc"] = "Réduit les noms des canaux du chat en abbreviation",
......@@ -264,13 +269,13 @@ TukuiConfig["frFR"] = {
["Desc"] = "Définir une police pour les données texte",
},
},
["Loot"] = {
["Enable"] = {
["Name"] = "Active loot",
["Desc"] = "Active notre fenêtre de loot",
},
["StandardLoot"] = {
["Name"] = "Fenêtre de loot Blizzard",
["Desc"] = "Remplacez notre fenêtre de butin par celle que Blizzard propose.",
......@@ -324,7 +329,7 @@ TukuiConfig["frFR"] = {
["Name"] = "Activer les invitations automatiques",
["Desc"] = "Acceptez automatiquement les invitations de groupe d'amis et de membres de guilde.",
},
["TalkingHeadEnable"] = {
["Name"] = "Activer le cadre des discussions PNJ",
["Desc"] = "Ehm...",
......@@ -503,7 +508,7 @@ TukuiConfig["frFR"] = {
["Desc"] = "Définir une police pour etre utilisé sur la barre de santé des unités en-dessous des infobulles",
},
},
["Textures"] = {
["QuestProgressTexture"] = {
["Name"] = "Quête [Progression]",
......
......@@ -42,6 +42,11 @@ TukuiConfig["koKR"] = {
["Desc"] = "ㅇㅇ",
},
["AddNewSpells"] = {
["Name"] = "Automatically Add New Spells",
["Desc"] = "Derp",
},
["EquipBorder"] = {
["Name"] = "착용한 아이템 테두리",
["Desc"] = "착용한 아이템은 녹색 테두리로 보임",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment