/
local addonName, L = ...; -- Let's use the private table passed to every .lua file to store our locale |
local function defaultFunc(L, key) |
-- If this function was called, we have no localization for this key. |
-- We could complain loudly to allow localizers to see the error of their ways, |
-- but, for now, just return the key as its own localization. This allows you to |
-- avoid writing the default localization out explicitly. |
return key; |
end |
setmetatable(L, {__index=defaultFunc}); |
local _, L = ...; |
if GetLocale() == "enUS" then |
L["General Settings"] = "General Settings"; |
L["Load TotemGuru at all times"] = "Load TotemGuru at all times"; |
L["Load TotemGuru when in Battleground"] = "Load TotemGuru when in Battleground"; |
L["Load TotemGuru when in Arena"] = "Load TotemGuru when in Arena"; |
L["Load TotemGuru when in 5 man instance"] = "Load TotemGuru when in 5 man instance"; |
L["Load TotemGuru when in a Raid instance"] = "Load TotemGuru when in a Raid instance"; |
L["Options"] = "Options"; |
L["Forces the use of the alt key to move the main window"] = "Forces the use of the alt key to move the main window"; |
L["Enable tooltips"] = "Enable tooltips"; |
L["Show Cooldowns"] = "Show Cooldowns"; |
L["Show Missing totem warnings"] = "Show Missing totem warnings"; |
L["Show which totems are giving us a buff"] = "Show which totems are giving us a buff"; |
L["Allow the sending/receiving of totem Assignments"] = "Allow the sending/receiving of totem Assignments"; |
L["Display Size"] = "Display Size"; |
L["Size Settings"] = "Size Settings"; |
L["Main window size"] = "Main window size"; |
L["Display Alpha"] = "Display Alpha"; |
L["Alpha Settings"] = "Alpha Settings"; |
L["Main window Alpha"] = "Main window Alpha"; |
L["Main Windows Buttons"] = "Main Windows Buttons"; |
L["Warning icons Alpha"] = "Warning icons Alpha"; |
L["Player Name Alpha"] = "Player Name Alpha"; |
L["Totem's Normal/Buffed Alpha"] = "Totem's Normal/Buffed Alpha"; |
L["Totem's Unbuffed Alpha"] = "Totem's Unbuffed Alpha"; |
L["Totem Priorites"] = "Totem Priorites"; |
L["Set the order in which totems will be warned"] = "Set the order in which totems will be warned"; |
L["Totem Assignments"] = "Totem Assignments"; |
L["Assign"] = "Assign"; |
L["TotemBar"] = "TotemBar"; |
L["less"] = "less"; |
L["more"] = "more"; |
L["Raid"] = "Raid"; |
L["Party"] = "Party"; |
L["All"] = "All"; |
L["Click to warn for missing Totems\nRows are number of players/Priority. \nThis will only show warnings for the number of players \ncurrently active in the main window"] = "Click to warn for missing Totems\nRows are number of players/Priority. \nThis will only show warnings for the number of players \ncurrently active in the main window"; |
end |
local L = MyLocalizationTable; |
if GetLocale() == "enGB" then |
L["General Settings"] = "General Settings"; |
L["Load TotemGuru at all times"] = "Load TotemGuru at all times"; |
L["Load TotemGuru when in Battleground"] = "Load TotemGuru when in Battleground"; |
L["Load TotemGuru when in Arena"] = "Load TotemGuru when in Arena"; |
L["Load TotemGuru when in 5 man instance"] = "Load TotemGuru when in 5 man instance"; |
L["Load TotemGuru when in a Raid instance"] = "Load TotemGuru when in a Raid instance"; |
L["Options"] = "Options"; |
L["Forces the use of the alt key to move the main window"] = "Forces the use of the alt key to move the main window"; |
L["Enable tooltips"] = "Enable tooltips"; |
L["Show Cooldowns"] = "Show Cooldowns"; |
L["Show Missing totem warnings"] = "Show Missing totem warnings"; |
L["Show which totems are giving us a buff"] = "Show which totems are giving us a buff"; |
L["Allow the sending/receiving of totem Assignments"] = "Allow the sending/receiving of totem Assignments"; |
L["Display Size"] = "Display Size"; |
L["Size Settings"] = "Size Settings"; |
L["Main window size"] = "Main window size"; |
L["Display Alpha"] = "Display Alpha"; |
L["Alpha Settings"] = "Alpha Settings"; |
L["Main window Alpha"] = "Main window Alpha"; |
L["Main Windows Buttons"] = "Main Windows Buttons"; |
L["Warning icons Alpha"] = "Warning icons Alpha"; |
L["Player Name Alpha"] = "Player Name Alpha"; |
L["Totem's Normal/Buffed Alpha"] = "Totem's Normal/Buffed Alpha"; |
L["Totem's Unbuffed Alpha"] = "Totem's Unbuffed Alpha"; |
L["Totem Priorites"] = "Totem Priorites"; |
L["Set the order in which totems will be warned"] = "Set the order in which totems will be warned"; |
L["Totem Assignments"] = "Totem Assignments"; |
L["Assign"] = "Assign"; |
L["TotemBar"] = "TotemBar"; |
L["less"] = "less"; |
L["more"] = "more"; |
L["Raid"] = "Raid"; |
L["Party"] = "Party"; |
L["All"] = "All"; |
L["Click to warn for missing Totems\nRows are number of players/Priority. \nThis will only show warnings for the number of players \ncurrently active in the main window"] = "Click to warn for missing Totems\nRows are number of players/Priority. \nThis will only show warnings for the number of players \ncurrently active in the main window"; |
end |
--ÐÑÐ¾Ñ Ñайл вÑе еÑе нÑждаеÑÑÑ Ð² пеÑеводе. ÐÑли Ð²Ñ Ð¼Ð¾Ð¶ÐµÑе помоÑÑ ÑвÑзаÑÑÑÑ Easysham на www.curse.com |
local _, L = ...; |
if GetLocale() == "ruRU" then |
L["General Settings"] = "ÐбÑие наÑÑÑойки"; |
L["Load TotemGuru at all times"] = "ÐагÑÑзка TotemGuru на вÑе вÑемена"; |
L["Load TotemGuru when in Battleground"] = "ÐагÑÑзка TotemGuru, когда в поле боÑ"; |
L["Load TotemGuru when in Arena"] = "ÐагÑÑзка TotemGuru, когда в Arena"; |
L["Load TotemGuru when in 5 man instance"] = "ÐагÑÑзка TotemGuru, когда в 5 Ñеловек ÑкземплÑÑ"; |
L["Load TotemGuru when in a Raid instance"] = "ÐагÑÑзка TotemGuru, когда в Ñ Ð¾Ð´Ðµ Ñейда, напÑимеÑ"; |
L["Options"] = "ФÑнкÑии"; |
L["Forces the use of the alt key to move the main window"] = "Ð¡Ð¸Ð»Ñ Ð¸ÑполÑзование Alt Ð´Ð»Ñ Ð¿ÐµÑемеÑÐµÐ½Ð¸Ñ Ð³Ð»Ð°Ð²Ð½Ð¾Ð³Ð¾ окна"; |
L["Enable tooltips"] = "ÐклÑÑиÑÑ Ð¿Ð¾Ð´Ñказки"; |
L["Show Cooldowns"] = "ÐоказаÑÑ ÐÑлдаÑнÑ"; |
L["Show Missing totem warnings"] = "ÐоказаÑÑ Ð¿ÑедÑпÑÐµÐ¶Ð´ÐµÐ½Ð¸Ñ ÐÑÑÑÑÑÑвÑÐµÑ ÑоÑем"; |
L["Show which totems are giving us a buff"] = "ÐоказаÑÑ ÐºÐ¾ÑоÑÑе ÑоÑÐµÐ¼Ñ Ð´Ð°ÑÑ Ð½Ð°Ð¼ баÑÑ"; |
L["Allow the sending/receiving of totem Assignments"] = "РазÑеÑиÑÑ Ð¾ÑпÑÐ°Ð²ÐºÑ / полÑÑение ÑоÑема ÐаданиÑ"; |
L["Display Size"] = "Ð Ð°Ð·Ð¼ÐµÑ Ð´Ð¸ÑплеÑ"; |
L["Size Settings"] = "Ð Ð°Ð·Ð¼ÐµÑ ÐаÑÑÑойки"; |
L["Main window size"] = "ÐÐ»Ð°Ð²Ð½Ð°Ñ ÑÐ°Ð·Ð¼ÐµÑ Ð¾ÐºÐ½Ð°"; |
L["Display Alpha"] = "ÐиÑплей Alpha"; |
L["Alpha Settings"] = "ÐлÑÑа ÐаÑÑÑойки"; |
L["Main window Alpha"] = "Ðлавное окно Alpha"; |
L["Main Windows Buttons"] = "Ðлавное окно Alpha"; |
L["Warning icons Alpha"] = "ÐнаÑки пÑедÑпÑеждений Alpha"; |
L["Player Name Alpha"] = "ÐÐ¼Ñ Ð¸Ð³Ñока Alpha"; |
L["Totem's Normal/Buffed Alpha"] = "ÐоÑмалÑнÑй/ТоÑем в оÑÑлиÑованной Alpha"; |
L["Totem's Unbuffed Alpha"] = "Unbuffed ТоÑем's Alpha"; |
L["Totem Priorites"] = "ТоÑем Priorites"; |
L["Set the order in which totems will be warned"] = "УÑÑановиÑÑ Ð¿Ð¾ÑÑдок, в коÑоÑом ÑоÑемов бÑÐ´ÐµÑ Ð¿ÑедÑпÑежден"; |
L["Totem Assignments"] = "ТоÑем ÐаданиÑ"; |
L["Assign"] = "ÐазнаÑиÑÑ"; |
L["TotemBar"] = "TotemBar"; |
L["less"] = "менÑÑе"; |
L["more"] = "болÑÑе"; |
L["Raid"] = "Raid"; |
L["Party"] = "СÑоÑона"; |
L["All"] = "ÐÑе"; |
L["Click to warn for missing Totems\nRows are number of players/Priority. \nThis will only show warnings for the number of players \ncurrently active in the main window"] = "ÐажмиÑе, ÑÑÐ¾Ð±Ñ Ð¿ÑедÑпÑедиÑÑ Ð¾ÑÑÑÑÑÑвÑÑÑÐ¸Ñ Ð¢Ð¾ÑемÑ\nRows ÑвлÑÑÑÑÑ ÐºÐ¾Ð»Ð¸ÑеÑÑво игÑоков/ÐÑиоÑиÑеÑнÑе.\nÐÑдÑÑ Ð¿Ð¾ÐºÐ°Ð·ÑваÑÑ ÑолÑко пÑедÑпÑÐµÐ¶Ð´ÐµÐ½Ð¸Ñ Ð´Ð»Ñ ÐºÐ¾Ð»Ð¸ÑеÑÑво игÑоков\ncurrently акÑивное ÑÑаÑÑие в главном окне"; |
end |
--This file still needs translating. If you can help contact Easysham on curse |
local _, L = ...; |
if GetLocale() == "esES" then |
L["General Settings"] = "Configuración general"; |
L["Load TotemGuru at all times"] = "Carga TotemGuru en todo momento"; |
L["Load TotemGuru when in Battleground"] = "Carga TotemGuru cuando en campo de batalla"; |
L["Load TotemGuru when in Arena"] = "Carga TotemGuru cuando en la Arena"; |
L["Load TotemGuru when in 5 man instance"] = "Carga TotemGuru cuando dentro de 5 ejemplo el hombre"; |
L["Load TotemGuru when in a Raid instance"] = "Carga TotemGuru cuando en una instancia de Raid"; |
L["Options"] = "Opciones"; |
L["Forces the use of the alt key to move the main window"] = "Fuerza el uso de la tecla ALT para mover la ventana principal"; |
L["Enable tooltips"] = "Habilitar tooltips"; |
L["Show Cooldowns"] = "Mostrar el tiempo de reutilización"; |
L["Show Missing totem warnings"] = "Mostrar Faltan advertencias tótem"; |
L["Show which totems are giving us a buff"] = "Mostrar que los tótems nos están dando un aficionado"; |
L["Allow the sending/receiving of totem Assignments"] = "Permitir el envÃo y recepción de misiones tótem"; |
L["Display Size"] = "Tamaño de la pantalla"; |
L["Size Settings"] = "Configuración de Tamaño"; |
L["Main window size"] = "Tamaño de la ventana principal"; |
L["Display Alpha"] = "Mostrar Alfa"; |
L["Alpha Settings"] = "Alfa Configuración"; |
L["Main window Alpha"] = "Ventana principal de Alfa"; |
L["Main Windows Buttons"] = "Windows principal Botones"; |
L["Warning icons Alpha"] = "Advertencia iconos Alfa"; |
L["Player Name Alpha"] = "Reproductor de Alfa Nombre"; |
L["Totem's Normal/Buffed Alpha"] = "Normal Totem/Alpha Pulida"; |
L["Totem's Unbuffed Alpha"] = "Alfa Unbuffed Totem"; |
L["Totem Priorites"] = "Totem Prioridades"; |
L["Set the order in which totems will be warned"] = "Establecer el orden en el que los tótems se advirtió"; |
L["Totem Assignments"] = "Tótem de misiones"; |
L["Assign"] = "Asignar"; |
L["TotemBar"] = "TotemBar"; |
L["less"] = "menos"; |
L["more"] = "más"; |
L["Raid"] = "Redada"; |
L["Party"] = "Parte"; |
L["All"] = "Todos los"; |
L["Click to warn for missing Totems\nRows are number of players/Priority. \nThis will only show warnings for the number of players \ncurrently active in the main window"] = "Haga clic para advertir a los desaparecidos Totems\nRows son el número de jugadores/Prioridad.\nEste sólo mostrará las advertencias para el número de jugadores\ncurrently activa en la ventana principal"; |
end |
--Traduit en utilisant google. Si vous pouvez aider à corriger ce contact fichier Easysham sur www.curse.com |
local _, L = ...; |
if GetLocale() == "frFR" then |
L["General Settings"] = "Paramètres généraux"; |
L["Load TotemGuru at all times"] = "Charge TotemGuru en tout temps"; |
L["Load TotemGuru when in Battleground"] = "Charge TotemGuru quand en champ de bataille"; |
L["Load TotemGuru when in Arena"] = "Charge TotemGuru quand à l'Arena"; |
L["Load TotemGuru when in 5 man instance"] = "Charge TotemGuru lorsque dans 5 par exemple l'homme"; |
L["Load TotemGuru when in a Raid instance"] = "Charge TotemGuru lorsque dans une instance de raid"; |
L["Options"] = "Options"; |
L["Forces the use of the alt key to move the main window"] = "Force l'utilisation de la touche alt pour déplacer la fenêtre principale"; |
L["Enable tooltips"] = "Activer les info-bulles"; |
L["Show Cooldowns"] = "Voir les temps de recharge"; |
L["Show Missing totem warnings"] = "Afficher les avertissements totem disparus"; |
L["Show which totems are giving us a buff"] = "Afficher les totems qui sont en nous donnant un buff"; |
L["Allow the sending/receiving of totem Assignments"] = "Autoriser l'envoi/réception des assignations de totem"; |
L["Display Size"] = "Taille de l'écran"; |
L["Size Settings"] = "Paramètres de taille"; |
L["Main window size"] = "Taille de la fenêtre principale"; |
L["Display Alpha"] = "Affichage Alpha"; |
L["Alpha Settings"] = "Alpha Paramètres"; |
L["Main window Alpha"] = "La fenêtre principale Alpha"; |
L["Main Windows Buttons"] = "Windows Main Boutons"; |
L["Warning icons Alpha"] = "Icônes d'avertissement Alpha"; |
L["Player Name Alpha"] = "Alpha nom de joueur"; |
L["Totem's Normal/Buffed Alpha"] = "Totem Normal/Alpha rectifiée"; |
L["Totem's Unbuffed Alpha"] = "Alpha sans buff de Totem"; |
L["Totem Priorites"] = "PRIORITÉS Totem"; |
L["Set the order in which totems will be warned"] = "Définir l'ordre dans lequel totems seront avertis"; |
L["Totem Assignments"] = "Totem de missions"; |
L["Assign"] = "Attribuer"; |
L["TotemBar"] = "TotemBar"; |
L["less"] = "moins"; |
L["more"] = "plus"; |
L["Raid"] = "Raid"; |
L["Party"] = "Partie"; |
L["All"] = "Tous les"; |
L["Click to warn for missing Totems\nRows are number of players/Priority. \nThis will only show warnings for the number of players \ncurrently active in the main window"] = "Cliquez ici pour mettre en garde pour manque Totems\nrows sont nombre de joueurs/priorité.\nCette ne montrent avertissements pour le nombre de joueurs\ncurrently active dans la fenêtre principale"; |
end |
--Vertaald met behulp van google. Als u kunt helpen de juiste dit bestand Contact Easysham op www.curse.com |
local _, L = ...; |
if GetLocale() == "deDE" then |
L["General Settings"] = "Algemene instellingen"; |
L["Load TotemGuru at all times"] = "Laad TotemGuru te allen tijde"; |
L["Load TotemGuru when in Battleground"] = "Belasting TotemGuru wanneer in Battleground"; |
L["Load TotemGuru when in Arena"] = "Belasting TotemGuru wanneer in Arena"; |
L["Load TotemGuru when in 5 man instance"] = "Belasting TotemGuru wanneer in 5 man bijvoorbeeld"; |
L["Load TotemGuru when in a Raid instance"] = "Belasting TotemGuru wanneer in een raid instance"; |
L["Options"] = "Opties"; |
L["Forces the use of the alt key to move the main window"] = "Krachten van het gebruik van de Alt-toets naar het hoofdvenster te verplaatsen"; |
L["Enable tooltips"] = "Staat tooltips"; |
L["Show Cooldowns"] = "Toon cooldowns"; |
L["Show Missing totem warnings"] = "Toon Ontbrekende totem waarschuwingen"; |
L["Show which totems are giving us a buff"] = "Laten zien welke totems geven ons een buff"; |
L["Allow the sending/receiving of totem Assignments"] = "Laat het verzenden/ontvangen van Totem Opdrachten"; |
L["Display Size"] = "Scherm Afmetingen"; |
L["Size Settings"] = "Instellingen voor"; |
L["Main window size"] = "Hoofdvenster formaat"; |
L["Display Alpha"] = "Display Alpha"; |
L["Alpha Settings"] = "Alpha-instellingen"; |
L["Main window Alpha"] = "Hoofdvenster Alpha"; |
L["Main Windows Buttons"] = "Belangrijkste Windows Buttons"; |
L["Warning icons Alpha"] = "Waarschuwingspictogrammen Alpha"; |
L["Player Name Alpha"] = "Naam Alpha-speler"; |
L["Totem's Normal/Buffed Alpha"] = "Normaal/Totem's afgeslepen Alpha"; |
L["Totem's Unbuffed Alpha"] = "Unbuffed Alpha Totem's"; |
L["Totem Priorites"] = "Totem Priorites"; |
L["Set the order in which totems will be warned"] = "Stel de volgorde waarin de totems zullen worden gewaarschuwd"; |
L["Totem Assignments"] = "Totem Opdrachten"; |
L["Assign"] = "Toewijzen"; |
L["TotemBar"] = "TotemBar"; |
L["less"] = "minder"; |
L["more"] = "meer"; |
L["Raid"] = "Inval"; |
L["Party"] = "Partij"; |
L["All"] = "Alle"; |
L["Click to warn for missing Totems\nRows are number of players/Priority. \nThis will only show warnings for the number of players \ncurrently active in the main window"] = "Klik om te waarschuwen voor ontbrekende Totems\nRijen zijn het aantal spelers/Priority\nDit zal alleen waarschuwingen voor het aantal spelers\nmomenteel actief in het hoofdvenster"; |
end |
--------------------------------------------------- |
---------- main window functions ------------------ |
--------------------------------------------------- |
local _, L = ...; |
----------------------- |
-- TotemGuruMain_OnLoad |
## Notes: Shows totems dropped by other people in the raid. |
## SavedVariablesPerCharacter: TotemGuruConfig |
## Title: TotemGuru |
## Version: 4.0.3 |
## Version: 4.0.4 |
## SVN wowi:revision |
localization\localization.lua |
localization\enGB.lua |
localization\deDE.lua |
localization\enUS.lua |
localization\esES.lua |
localization\frFR.lua |
localization\ruRU.lua |
Settings.lua |
TotemAssignments.lua |
Settings.lua |
TotemGuruTotems.lua |
ButtonStash.lua |
TotemGuruWindows.lua |
-- |
-- You should have received a copy of the GNU General Public License |
-- along with TotemGuru. If not, see <http://www.gnu.org/licenses/>. |
local _, L = ...; |
TotemGuruSettingsGUI = { |
font = STANDARD_TEXT_FONT,--"Fonts\\FRIZQT__.ttf", |
self.mainPanel.name = "TotemGuru V"..tostring(GetAddOnMetadata("TotemGuru", "Version")) |
self.mainPanel.title = FrameTitle(self.mainPanel.name,self.mainPanel) |
self.mainPanel.subtitle1 = FrameSubtitle("General Settings",self.mainPanel) |
self.mainPanel.subtitle1 = FrameSubtitle(L["General Settings"],self.mainPanel) |
x = 30 |
y = -80 |
--y = self:createChkBox("TotemGuruOff","Disable totemGuru\n(Note: You may need to reset instance\nsettings after changing this)",50,-80,self.mainPanel,TotemGuruMain_Toggle) |
y = self:createChkBox("Loadnone","Load TotemGuru at all times",x,y,self.mainPanel,TotemGuruMain_CheckInstance) |
y = self:createChkBox("Loadpvp","Load TotemGuru when in Battleground",x,y,self.mainPanel,TotemGuruMain_CheckInstance) |
y = self:createChkBox("Loadarena","Load TotemGuru when in Arena",x,y,self.mainPanel,TotemGuruMain_CheckInstance) |
y = self:createChkBox("Loadparty","Load TotemGuru when in 5 man instance",x,y,self.mainPanel,TotemGuruMain_CheckInstance) |
y = self:createChkBox("Loadraid","Load TotemGuru when in a Raid instance",x,y,self.mainPanel,TotemGuruMain_CheckInstance) |
y = self:createChkBox("Loadnone",L["Load TotemGuru at all times"],x,y,self.mainPanel,TotemGuruMain_CheckInstance) |
y = self:createChkBox("Loadpvp",L["Load TotemGuru when in Battleground"],x,y,self.mainPanel,TotemGuruMain_CheckInstance) |
y = self:createChkBox("Loadarena",L["Load TotemGuru when in Arena"],x,y,self.mainPanel,TotemGuruMain_CheckInstance) |
y = self:createChkBox("Loadparty",L["Load TotemGuru when in 5 man instance"],x,y,self.mainPanel,TotemGuruMain_CheckInstance) |
y = self:createChkBox("Loadraid",L["Load TotemGuru when in a Raid instance"],x,y,self.mainPanel,TotemGuruMain_CheckInstance) |
InterfaceOptions_AddCategory(self.mainPanel); |
------------ Options Panel ---------- |
------------------------------------- |
self.OptionsPanel = CreateFrame( "Frame", "TotemGuruSettingsGUI-Options", UIParent); |
self.OptionsPanel.name = "Options"; |
self.OptionsPanel.name = L["Options"]; |
self.OptionsPanel.parent = self.mainPanel.name |
self.OptionsPanel.title = FrameTitle(self.mainPanel.name .. " " .. self.OptionsPanel.name,self.OptionsPanel) |
self.OptionsPanel.subtitle1 = FrameSubtitle("Options",self.OptionsPanel) |
self.OptionsPanel.subtitle1 = FrameSubtitle(L["Options"],self.OptionsPanel) |
x = 30 |
y = -80 |
y = self:createChkBox("LockWindow","Forces the use of the alt key to move the main window",x,y,self.OptionsPanel,TotemGuruMain_Redraw) |
y = self:createChkBox("TooltipsEnabled","Enable tooltips",x,y,self.OptionsPanel) |
y = self:createChkBox("ShowCooldowns","Show Cooldowns",x,y,self.OptionsPanel) |
y = self:createChkBox("ShowWarnings","Show Missing totem warnings",x,y,self.OptionsPanel,TotemGuru_CheckWarningsToggle) |
y = self:createChkBox("ShowBuffFlash","Show which totems are giving us a buff",x,y,self.OptionsPanel,TotemGuruMain_Redraw) |
y = self:createChkBox("ReceiveAssignments","Allow the sending/receiving of totem Assignments",x,y,self.OptionsPanel,TotemGuruMain_Redraw) |
y = self:createChkBox("LockWindow",L["Forces the use of the alt key to move the main window"],x,y,self.OptionsPanel,TotemGuruMain_Redraw) |
y = self:createChkBox("TooltipsEnabled",L["Enable tooltips"],x,y,self.OptionsPanel) |
y = self:createChkBox("ShowCooldowns",L["Show Cooldowns"],x,y,self.OptionsPanel) |
y = self:createChkBox("ShowWarnings",L["Show Missing totem warnings"],x,y,self.OptionsPanel,TotemGuru_CheckWarningsToggle) |
y = self:createChkBox("ShowBuffFlash",L["Show which totems are giving us a buff"],x,y,self.OptionsPanel,TotemGuruMain_Redraw) |
y = self:createChkBox("ReceiveAssignments",L["Allow the sending/receiving of totem Assignments"],x,y,self.OptionsPanel,TotemGuruMain_Redraw) |
-- not sure if this was a bug but in BG's on the ptr we sometimes saw enemy players totems. This needs some testing |
-- as if it is reliable this could be a bonus for PVP'rs |
--------- Size Panel ------------- |
------------------------------------- |
self.SizePanel = CreateFrame( "Frame", "TotemGuruSettingsGUI-Size", UIParent ); |
self.SizePanel.name = "Display Size"; |
self.SizePanel.name = L["Display Size"]; |
self.SizePanel.parent = self.mainPanel.name |
self.SizePanel.title = FrameTitle(self.mainPanel.name,self.SizePanel) |
self.SizePanel.subtitle1 = FrameSubtitle("Size Settings",self.SizePanel) |
self.SizePanel.subtitle1 = FrameSubtitle(L["Size Settings"],self.SizePanel) |
x = 140 |
y = -100 |
y = self:createSlider("TotemGuruScale", "Main window size", self.SizePanel, 0.3, 2, 0.001, x, y, TotemGuruUpdateScale) |
y = self:createSlider("TotemGuruScale",L["Main window size"], self.SizePanel, 0.3, 2, 0.001, x, y, TotemGuruUpdateScale) |
InterfaceOptions_AddCategory(self.SizePanel); |
--------- Alpha Panel ------------- |
------------------------------------- |
self.AlphaPanel = CreateFrame( "Frame", "TotemGuruSettingsGUI-Alpha", UIParent ); |
self.AlphaPanel.name = "Display Alpha"; |
self.AlphaPanel.name = L["Display Alpha"]; |
self.AlphaPanel.parent = self.mainPanel.name |
self.AlphaPanel.title = FrameTitle(self.mainPanel.name,self.AlphaPanel) |
self.AlphaPanel.subtitle1 = FrameSubtitle("Alpha Settings",self.AlphaPanel) |
self.AlphaPanel.subtitle1 = FrameSubtitle(L["Alpha Settings"],self.AlphaPanel) |
x = 140 |
y = -100 |
y = self:createSlider("BackgroundAlpha", "Main window Alpha", self.AlphaPanel, 0.1, 1, 0.01,x,y,UpdateAlpha) |
y = self:createSlider("ButtonsAlpha", "Main Windows Buttons", self.AlphaPanel, 0.1, 1, 0.01,x,y,UpdateAlpha) |
y = self:createSlider("WarningsAlpha", "Warning icons Alpha", self.AlphaPanel, 0.1, 1, 0.01,x,y,UpdateAlpha) |
y = self:createSlider("PlayerNameAlpha", "Player Name Alpha", self.AlphaPanel, 0.1, 1, 0.01,x,y,UpdateAlpha) |
y = self:createSlider("TotemNormalAlpha", "Totem's Normal/Buffed Alpha", self.AlphaPanel, 0.1, 1, 0.01,x,y,UpdateAlpha) |
y = self:createSlider("TotemUnbuffedAlpha", "Totem's Unbuffed Alpha", self.AlphaPanel, 0.1, 1, 0.01,x,y,UpdateAlpha) |
y = self:createSlider("BackgroundAlpha", L["Main window Alpha"], self.AlphaPanel, 0.1, 1, 0.01,x,y,UpdateAlpha) |
y = self:createSlider("ButtonsAlpha", L["Main Windows Buttons"], self.AlphaPanel, 0.1, 1, 0.01,x,y,UpdateAlpha) |
y = self:createSlider("WarningsAlpha", L["Warning icons Alpha"], self.AlphaPanel, 0.1, 1, 0.01,x,y,UpdateAlpha) |
y = self:createSlider("PlayerNameAlpha", L["Player Name Alpha"], self.AlphaPanel, 0.1, 1, 0.01,x,y,UpdateAlpha) |
y = self:createSlider("TotemNormalAlpha", L["Totem's Normal/Buffed Alpha"], self.AlphaPanel, 0.1, 1, 0.01,x,y,UpdateAlpha) |
y = self:createSlider("TotemUnbuffedAlpha", L["Totem's Unbuffed Alpha"], self.AlphaPanel, 0.1, 1, 0.01,x,y,UpdateAlpha) |
InterfaceOptions_AddCategory(self.AlphaPanel); |
------------------------------------- |
--------- Totems Panel ------------- |
------------------------------------- |
self.TotemsPanel = CreateFrame( "Frame", "TotemGuruSettingsGUI-Totems", UIParent ); |
self.TotemsPanel.name = "Totem Priorites"; |
self.TotemsPanel.name = L["Totem Priorites"]; |
self.TotemsPanel.parent = self.mainPanel.name |
self.TotemsPanel.title = FrameTitle(self.mainPanel.name,self.TotemsPanel) |
self.TotemsPanel.subtitle1 = FrameSubtitle("Set the order in which totems will be warned",self.TotemsPanel) |
self.TotemsPanel.subtitle1 = FrameSubtitle(L["Set the order in which totems will be warned"],self.TotemsPanel) |
self:createTotemsWindow("TotemGuruTotemPriorities", "blah blah", self.TotemsPanel ) |
InterfaceOptions_AddCategory(self.TotemsPanel); |
--------- Assignment Panel ------------- |
------------------------------------- |
self.AssignmentPanel = CreateFrame( "Frame", "TotemGuruSettingsGUI-Assignment", UIParent ); |
self.AssignmentPanel.name = "Totem Assignments"; |
self.AssignmentPanel.name = L["Totem Assignments"]; |
self.AssignmentPanel.parent = self.mainPanel.name |
self.AssignmentPanel.title = FrameTitle(self.mainPanel.name,self.AssignmentPanel) |
self.AssignmentPanel.subtitle1 = FrameSubtitle("Set the totems for all shamans in the group",self.AssignmentPanel) |
self.AssignmentPanel.subtitle1 = FrameSubtitle(L["Set the totems for all shamans in the group"],self.AssignmentPanel) |
self:createTotemsWindow("TotemGuruTotemPriorities", "blah blah", self.TotemsPanel ) |
x = 140 |
y = -100 |
y = self:createButton("Assign","Assign",x,y,self.AssignmentPanel,TotemGuruAssignments_LoadWindow) |
y = self:createButton("ShowButton","TotemBar",x,y,self.AssignmentPanel,TotemGuruwindows_SingleButtonCast) |
y = self:createButton("Assign",L["Assign"],x,y,self.AssignmentPanel,TotemGuruAssignments_LoadWindow) |
y = self:createButton("ShowButton",L["TotemBar"],x,y,self.AssignmentPanel,TotemGuruwindows_SingleButtonCast) |
y = self:CreateMulticastDropdown(x-40,y-10) |
--InterfaceOptions_AddCategory(self.AssignmentPanel); |
slider:SetValueStep(step) |
slider:SetPoint("TOPLEFT", parent, "TOPLEFT",x,y) |
getglobal(name .. 'Text'):SetText(title) |
getglobal(name .. 'Low'):SetText('less') |
getglobal(name .. 'High'):SetText('more') |
getglobal(name .. 'Low'):SetText(L["less"]) |
getglobal(name .. 'High'):SetText(L["more"]) |
slider:SetValue(TotemGuruConfig[variable]) |
BlizzardOptionsPanel_Slider_Enable(slider) --colors the slider properly |
return (y-45) |
frame.titletext:SetText(title) |
if TotemGuruConfig and TotemGuruConfig.Monitor then |
if TotemGuruConfig.Monitor.Raid then |
getglobal("MonitorTypeDropDownFrameText"):SetText("Raid") |
getglobal("MonitorTypeDropDownFrameText"):SetText(L["Raid"]) |
elseif TotemGuruConfig.Monitor.Party then |
getglobal("MonitorTypeDropDownFrameText"):SetText("Party") |
getglobal("MonitorTypeDropDownFrameText"):SetText(L["Party"]) |
elseif TotemGuruConfig.Monitor.All then |
getglobal("MonitorTypeDropDownFrameText"):SetText("All") |
getglobal("MonitorTypeDropDownFrameText"):SetText(L["All"]) |
end |
end |
UIDropDownMenu_Initialize(frame, CreateMonitorMenu) |
-- CreateMonitorMenu -- |
----------------------- |
function CreateMonitorMenu() |
TotemGuruSettingsGUI.info.text = "Raid"; |
TotemGuruSettingsGUI.info.text = L["Raid"]; |
TotemGuruSettingsGUI.info.value = someglobalvariable; |
TotemGuruSettingsGUI.info.func = function () |
TotemGuruConfig.Monitor = {All = false,Party = false,Raid = true} |
getglobal("MonitorTypeDropDownFrameText"):SetText("Raid") |
getglobal("MonitorTypeDropDownFrameText"):SetText(L["Raid"]) |
end |
UIDropDownMenu_AddButton(TotemGuruSettingsGUI.info); |
TotemGuruSettingsGUI.info.text = "Party"; |
TotemGuruSettingsGUI.info.text = L["Party"]; |
TotemGuruSettingsGUI.info.value = someglobalvariable; |
TotemGuruSettingsGUI.info.func = function () |
TotemGuruConfig.Monitor = {All = false,Party = true,Raid = false} |
getglobal("MonitorTypeDropDownFrameText"):SetText("Party") |
getglobal("MonitorTypeDropDownFrameText"):SetText(L["Party"]) |
end |
UIDropDownMenu_AddButton(TotemGuruSettingsGUI.info); |
TotemGuruSettingsGUI.info.text = "All"; |
TotemGuruSettingsGUI.info.text = L["All"]; |
TotemGuruSettingsGUI.info.value = someglobalvariable; |
TotemGuruSettingsGUI.info.func = function () |
TotemGuruConfig.Monitor = {All = true,Party = false,Raid = false} |
getglobal("MonitorTypeDropDownFrameText"):SetText("All") |
getglobal("MonitorTypeDropDownFrameText"):SetText(L["All"]) |
end |
UIDropDownMenu_AddButton(TotemGuruSettingsGUI.info); |
end |
totemWindow[("TitleFontstring")] = fontstring |
fontstring:SetFontObject('GameFontNormal') |
fontstring:SetJustifyH("MIDDLE") |
fontstring:SetText("Click to warn for missing Totems\nRows are number of players/Priority. \nThis will only show warnings for the number of players \ncurrently active in the main window") |
fontstring:SetText(L["Click to warn for missing Totems\nRows are number of players/Priority. \nThis will only show warnings for the number of players \ncurrently active in the main window"]) |
end |
TotemGuru_TotemsWindow_Redraw() |
end |
totemWindow.TitleFontstring:SetPoint("TOPLEFT", totemWindow, "TOPLEFT", 0,-60) |
totemWindow.TitleFontstring:SetPoint("TOPRIGHT", totemWindow, "TOPRIGHT", 0, -60) |
totemWindow.TitleFontstring:SetFontObject('GameFontNormal') |
end |
end |