WoWInterface SVN TotemGuru

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 28 to Rev 29
    Reverse comparison

Rev 28 → Rev 29

trunk/localization/localization.lua New file
0,0 → 1,10
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});
 
trunk/localization/enUS.lua New file
0,0 → 1,45
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
 
trunk/localization/enGB.lua New file
0,0 → 1,45
 
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
 
trunk/localization/ruRU.lua New file
0,0 → 1,46
--Этот файл все еще нуждается в переводе. Если вы можете помочь связаться 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
 
trunk/localization/esES.lua New file
0,0 → 1,46
--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
 
trunk/localization/frFR.lua New file
0,0 → 1,46
--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
 
trunk/localization/deDE.lua New file
0,0 → 1,46
--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
 
trunk/TotemGuru.lua
103,6 → 103,7
---------------------------------------------------
---------- main window functions ------------------
---------------------------------------------------
local _, L = ...;
 
-----------------------
-- TotemGuruMain_OnLoad
trunk/TotemGuru.toc
21,11 → 21,18
## 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
trunk/Settings.lua
15,6 → 15,7
--
-- 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",
34,15 → 35,15
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);
 
50,18 → 51,18
------------ 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
76,13 → 77,13
--------- 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);
 
 
90,28 → 91,28
--------- 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);
 
119,15 → 120,15
--------- 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);
 
234,8 → 235,8
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)
255,11 → 256,11
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)
269,25 → 270,25
-- 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
396,7 → 397,7
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
485,7 → 486,6
totemWindow.TitleFontstring:SetPoint("TOPLEFT", totemWindow, "TOPLEFT", 0,-60)
totemWindow.TitleFontstring:SetPoint("TOPRIGHT", totemWindow, "TOPRIGHT", 0, -60)
totemWindow.TitleFontstring:SetFontObject('GameFontNormal')
 
end
 
end