Commit 1ddd7cee authored by Azilroka's avatar Azilroka

White Space & Cleanup

parent 4607e134
...@@ -12,7 +12,7 @@ C["General"] = { ...@@ -12,7 +12,7 @@ C["General"] = {
["Scaling"] = { ["Scaling"] = {
["Options"] = { ["Options"] = {
["Pixel Perfection"] = "Pixel Perfection", ["Pixel Perfection"] = "Pixel Perfection",
["Smallest"] = "Smallest", ["Smallest"] = "Smallest",
["Small"] = "Small", ["Small"] = "Small",
["Medium"] = "Medium", ["Medium"] = "Medium",
["Large"] = "Large", ["Large"] = "Large",
...@@ -24,7 +24,7 @@ C["General"] = { ...@@ -24,7 +24,7 @@ C["General"] = {
["Themes"] = { ["Themes"] = {
["Options"] = { ["Options"] = {
["Tukui"] = "Tukui", ["Tukui"] = "Tukui",
["Tukui 17"] = "Tukui 17", ["Tukui 17"] = "Tukui 17",
}, },
["Value"] = "Tukui", ["Value"] = "Tukui",
......
...@@ -48,11 +48,11 @@ T.SlashHandler = function(cmd) ...@@ -48,11 +48,11 @@ T.SlashHandler = function(cmd)
elseif (arg1 == "events" or arg1 == "trace") then elseif (arg1 == "events" or arg1 == "trace") then
if EventTraceEnabled then if EventTraceEnabled then
EventTrace:UnregisterAllEvents() EventTrace:UnregisterAllEvents()
EventTraceEnabled = false EventTraceEnabled = false
else else
EventTrace:RegisterAllEvents() EventTrace:RegisterAllEvents()
EventTraceEnabled = true EventTraceEnabled = true
end end
elseif (arg1 == "move" or arg1 == "moveui") then elseif (arg1 == "move" or arg1 == "moveui") then
......
...@@ -49,13 +49,13 @@ function Loading:OnEvent(event, addon) ...@@ -49,13 +49,13 @@ function Loading:OnEvent(event, addon)
local Adjust = (T.ScreenHeight / 10000) / 2 local Adjust = (T.ScreenHeight / 10000) / 2
local UIScale = min(2, max(0.01, 768 / string.match(T.Resolution, "%d+x(%d+)"))) local UIScale = min(2, max(0.01, 768 / string.match(T.Resolution, "%d+x(%d+)")))
if (Scaling == "Smallest") then if (Scaling == "Smallest") then
if (T.ScreenHeight >= 1600) then if (T.ScreenHeight >= 1600) then
-- 0.35555556416512 + 0.108 = 0.463 on 4K monitor -- 0.35555556416512 + 0.108 = 0.463 on 4K monitor
UIScale = UIScale + Adjust UIScale = UIScale + Adjust
else else
UIScale = 0.64 - Adjust UIScale = 0.64 - Adjust
end end
elseif (Scaling == "Small") then elseif (Scaling == "Small") then
UIScale = 0.64 UIScale = 0.64
elseif (Scaling == "Medium") then elseif (Scaling == "Medium") then
...@@ -66,10 +66,10 @@ function Loading:OnEvent(event, addon) ...@@ -66,10 +66,10 @@ function Loading:OnEvent(event, addon)
UIScale = 0.64 + Adjust + Adjust + Adjust UIScale = 0.64 + Adjust + Adjust + Adjust
end end
-- This is for 4K with pixel pecfection scaling -- This is for 4K with pixel pecfection scaling
if (T.ScreenHeight >= 1600) and (Scaling == "Pixel Perfection") then if (T.ScreenHeight >= 1600) and (Scaling == "Pixel Perfection") then
UIScale = UIScale * 2 -- Pixel Perfection Scaling, X 2 to still be almost pixel perfect, should be around 0.71 UIScale = UIScale * 2 -- Pixel Perfection Scaling, X 2 to still be almost pixel perfect, should be around 0.71
end end
T.Mult = 768 / string.match(T.Resolution, "%d+x(%d+)") / UIScale T.Mult = 768 / string.match(T.Resolution, "%d+x(%d+)") / UIScale
T.UIScale = UIScale T.UIScale = UIScale
......
...@@ -38,13 +38,13 @@ function TukuiActionBars:CreatePetBar() ...@@ -38,13 +38,13 @@ function TukuiActionBars:CreatePetBar()
Bar:SetAttribute("addchild", Button) Bar:SetAttribute("addchild", Button)
Bar["Button"..i] = Button Bar["Button"..i] = Button
end end
PetActionBarFrame:EnableMouse(0) PetActionBarFrame:EnableMouse(0)
PetActionBarFrame:ClearAllPoints() PetActionBarFrame:ClearAllPoints()
PetActionBarFrame:SetParent(T.Panels.Hider) PetActionBarFrame:SetParent(T.Panels.Hider)
hooksecurefunc("PetActionBar_Update", TukuiActionBars.UpdatePetBar) hooksecurefunc("PetActionBar_Update", TukuiActionBars.UpdatePetBar)
TukuiActionBars:SkinPetButtons() TukuiActionBars:SkinPetButtons()
RegisterStateDriver(Bar, "visibility", "[pet,nopetbattle,novehicleui,nooverridebar,nopossessbar,nobonusbar:5] show; hide") RegisterStateDriver(Bar, "visibility", "[pet,nopetbattle,novehicleui,nooverridebar,nopossessbar,nobonusbar:5] show; hide")
......
...@@ -124,7 +124,7 @@ local OnClick = function(self, button) ...@@ -124,7 +124,7 @@ local OnClick = function(self, button)
if (Bar:IsVisible()) then if (Bar:IsVisible()) then
if (ShiftClick and Num ~= 4) then -- Handle shift-clicks on the button if (ShiftClick and Num ~= 4) then -- Handle shift-clicks on the button
if (Num == 2 or Num == 3) then if (Num == 2 or Num == 3) then
ActionBars:RemoveColumn(Bar, Num) ActionBars:RemoveColumn(Bar, Num)
else else
ActionBars:RemoveButton(Bar, Num) ActionBars:RemoveButton(Bar, Num)
...@@ -204,7 +204,7 @@ local OnClick = function(self, button) ...@@ -204,7 +204,7 @@ local OnClick = function(self, button)
end end
function ActionBars:CreateToggleButtons() function ActionBars:CreateToggleButtons()
for i = 2, 5 do for i = 2, 5 do
local Bar = T.Panels["ActionBar" .. i] local Bar = T.Panels["ActionBar" .. i]
local Width = Bar:GetWidth() local Width = Bar:GetWidth()
local Height = Bar:GetHeight() local Height = Bar:GetHeight()
......
...@@ -3,14 +3,12 @@ local T, C, L = select(2, ...):unpack() ...@@ -3,14 +3,12 @@ local T, C, L = select(2, ...):unpack()
local TukuiActionBars = CreateFrame("Frame") local TukuiActionBars = CreateFrame("Frame")
local _G = _G local _G = _G
local format = format local format = format
local Noop = function() end
local NUM_ACTIONBAR_BUTTONS = NUM_ACTIONBAR_BUTTONS local NUM_ACTIONBAR_BUTTONS = NUM_ACTIONBAR_BUTTONS
local NUM_PET_ACTION_SLOTS = NUM_PET_ACTION_SLOTS local NUM_PET_ACTION_SLOTS = NUM_PET_ACTION_SLOTS
local NUM_STANCE_SLOTS = NUM_STANCE_SLOTS local NUM_STANCE_SLOTS = NUM_STANCE_SLOTS
local MainMenuBar, MainMenuBarArtFrame = MainMenuBar, MainMenuBarArtFrame local MainMenuBar, MainMenuBarArtFrame = MainMenuBar, MainMenuBarArtFrame
local OverrideActionBar = OverrideActionBar local OverrideActionBar = OverrideActionBar
local PossessBarFrame = PossessBarFrame local PossessBarFrame = PossessBarFrame
local PetActionBarFrame = PetActionBarFrame
local ShapeshiftBarLeft, ShapeshiftBarMiddle, ShapeshiftBarRight = ShapeshiftBarLeft, ShapeshiftBarMiddle, ShapeshiftBarRight local ShapeshiftBarLeft, ShapeshiftBarMiddle, ShapeshiftBarRight = ShapeshiftBarLeft, ShapeshiftBarMiddle, ShapeshiftBarRight
local Panels = T["Panels"] local Panels = T["Panels"]
...@@ -22,7 +20,7 @@ local Frames = { ...@@ -22,7 +20,7 @@ local Frames = {
function TukuiActionBars:DisableBlizzard() function TukuiActionBars:DisableBlizzard()
local Hider = Panels.Hider local Hider = Panels.Hider
SetCVar("alwaysShowActionBars", 1) SetCVar("alwaysShowActionBars", 1)
if (not C.ActionBars.AddNewSpells) then if (not C.ActionBars.AddNewSpells) then
...@@ -68,7 +66,7 @@ function TukuiActionBars:ShowGrid() ...@@ -68,7 +66,7 @@ function TukuiActionBars:ShowGrid()
for i = 1, NUM_ACTIONBAR_BUTTONS do for i = 1, NUM_ACTIONBAR_BUTTONS do
local Button local Button
local Reason = nil local Reason = nil
if T.WoWBuild >= 28724 then if T.WoWBuild >= 28724 then
Reason = ACTION_BUTTON_SHOW_GRID_REASON_EVENT Reason = ACTION_BUTTON_SHOW_GRID_REASON_EVENT
end end
...@@ -262,7 +260,7 @@ function TukuiActionBars:UpdateStanceBar(...) ...@@ -262,7 +260,7 @@ function TukuiActionBars:UpdateStanceBar(...)
Button = _G[ButtonName] Button = _G[ButtonName]
Icon = _G[ButtonName.."Icon"] Icon = _G[ButtonName.."Icon"]
Button:SetNormalTexture("") Button:SetNormalTexture("")
if i <= NumForms then if i <= NumForms then
......
...@@ -5,7 +5,6 @@ local TukuiActionBars = T["ActionBars"] ...@@ -5,7 +5,6 @@ local TukuiActionBars = T["ActionBars"]
local IsUsableAction = IsUsableAction local IsUsableAction = IsUsableAction
local IsActionInRange = IsActionInRange local IsActionInRange = IsActionInRange
local ActionHasRange = ActionHasRange local ActionHasRange = ActionHasRange
local HasAction = HasAction
function TukuiActionBars:RangeOnUpdate(elapsed) function TukuiActionBars:RangeOnUpdate(elapsed)
if (not self.rangeTimer) then if (not self.rangeTimer) then
......
...@@ -3,9 +3,7 @@ local T, C, L = select(2, ...):unpack() ...@@ -3,9 +3,7 @@ local T, C, L = select(2, ...):unpack()
local TukuiActionBars = T["ActionBars"] local TukuiActionBars = T["ActionBars"]
local NUM_PET_ACTION_SLOTS = NUM_PET_ACTION_SLOTS local NUM_PET_ACTION_SLOTS = NUM_PET_ACTION_SLOTS
local Replace = string.gsub local Replace = string.gsub
local SpellFlyout = SpellFlyout
local FlyoutButtons = 0 local FlyoutButtons = 0
local ActionButton_HideOverlayGlow = ActionButton_HideOverlayGlow
local Noop = function() end local Noop = function() end
function TukuiActionBars:SkinButton() function TukuiActionBars:SkinButton()
...@@ -16,9 +14,9 @@ function TukuiActionBars:SkinButton() ...@@ -16,9 +14,9 @@ function TukuiActionBars:SkinButton()
local Count = _G[Name.."Count"] local Count = _G[Name.."Count"]
local Flash = _G[Name.."Flash"] local Flash = _G[Name.."Flash"]
local HotKey = _G[Name.."HotKey"] local HotKey = _G[Name.."HotKey"]
local Border = _G[Name.."Border"] local Border = _G[Name.."Border"]
local Btname = _G[Name.."Name"] local Btname = _G[Name.."Name"]
local Normal = _G[Name.."NormalTexture"] local Normal = _G[Name.."NormalTexture"]
local BtnBG = _G[Name.."FloatingBG"] local BtnBG = _G[Name.."FloatingBG"]
local Font = T.GetFont(C["ActionBars"].Font) local Font = T.GetFont(C["ActionBars"].Font)
...@@ -176,9 +174,9 @@ end ...@@ -176,9 +174,9 @@ end
function TukuiActionBars:SkinPetButtons() function TukuiActionBars:SkinPetButtons()
for i = 1, NUM_PET_ACTION_SLOTS do for i = 1, NUM_PET_ACTION_SLOTS do
local Name = "PetActionButton"..i local Name = "PetActionButton"..i
local Button = _G[Name] local Button = _G[Name]
local Icon = _G[Name.."Icon"] local Icon = _G[Name.."Icon"]
local Normal = _G[Name.."NormalTexture2"] -- ?? 2 local Normal = _G[Name.."NormalTexture2"] -- ?? 2
TukuiActionBars:SkinPetAndShiftButton(Normal, Button, Icon, Name, true) TukuiActionBars:SkinPetAndShiftButton(Normal, Button, Icon, Name, true)
end end
...@@ -187,9 +185,9 @@ end ...@@ -187,9 +185,9 @@ end
function TukuiActionBars:SkinStanceButtons() function TukuiActionBars:SkinStanceButtons()
for i=1, NUM_STANCE_SLOTS do for i=1, NUM_STANCE_SLOTS do
local Name = "StanceButton"..i local Name = "StanceButton"..i
local Button = _G[Name] local Button = _G[Name]
local Icon = _G[Name.."Icon"] local Icon = _G[Name.."Icon"]
local Normal = _G[Name.."NormalTexture"] local Normal = _G[Name.."NormalTexture"]
TukuiActionBars:SkinPetAndShiftButton(Normal, Button, Icon, Name, false) TukuiActionBars:SkinPetAndShiftButton(Normal, Button, Icon, Name, false)
end end
......
...@@ -4,11 +4,9 @@ local TukuiAuras = T["Auras"] ...@@ -4,11 +4,9 @@ local TukuiAuras = T["Auras"]
local unpack = unpack local unpack = unpack
local GetTime = GetTime local GetTime = GetTime
local DebuffTypeColor = DebuffTypeColor local DebuffTypeColor = DebuffTypeColor
local NumberFontNormal = NumberFontNormal
local BuffFrame = BuffFrame local BuffFrame = BuffFrame
local TemporaryEnchantFrame = TemporaryEnchantFrame local TemporaryEnchantFrame = TemporaryEnchantFrame
local InterfaceOptionsFrameCategoriesButton12 = InterfaceOptionsFrameCategoriesButton12 local InterfaceOptionsFrameCategoriesButton12 = InterfaceOptionsFrameCategoriesButton12
local InterfaceOptionsFrameCategoriesButton12 = InterfaceOptionsFrameCategoriesButton12
TukuiAuras.Headers = {} TukuiAuras.Headers = {}
TukuiAuras.FlashTimer = 30 TukuiAuras.FlashTimer = 30
...@@ -129,7 +127,7 @@ function TukuiAuras:UpdateAura(index) ...@@ -129,7 +127,7 @@ function TukuiAuras:UpdateAura(index)
self.Duration:SetText("") self.Duration:SetText("")
self:SetScript("OnUpdate", nil) self:SetScript("OnUpdate", nil)
local min, max = self.Bar:GetMinMaxValues() local min, max = self.Bar:GetMinMaxValues()
self.Bar:SetValue(max) self.Bar:SetValue(max)
self.Bar:SetStatusBarColor(0, 0.8, 0) self.Bar:SetStatusBarColor(0, 0.8, 0)
......
...@@ -4,7 +4,6 @@ local _G = _G ...@@ -4,7 +4,6 @@ local _G = _G
local format = format local format = format
local Noop = function() end local Noop = function() end
local Toast = BNToastFrame local Toast = BNToastFrame
local ToastCloseButton = BNToastFrameCloseButton
local TukuiChat = T["Chat"] local TukuiChat = T["Chat"]
local UIFrameFadeRemoveFrame = UIFrameFadeRemoveFrame local UIFrameFadeRemoveFrame = UIFrameFadeRemoveFrame
...@@ -52,7 +51,7 @@ end ...@@ -52,7 +51,7 @@ end
function TukuiChat:SetChatFont() function TukuiChat:SetChatFont()
local Font = T.GetFont(C["Chat"].ChatFont) local Font = T.GetFont(C["Chat"].ChatFont)
local Path, _, Flag = _G[Font]:GetFont() local Path, _, Flag = _G[Font]:GetFont()
local CurrentFont, CurrentSize, CurrentFlag = self:GetFont() local CurrentFont, CurrentSize, CurrentFlag = self:GetFont()
if (CurrentFont == Path and CurrentFlag == Flag) then if (CurrentFont == Path and CurrentFlag == Flag) then
......
...@@ -16,7 +16,7 @@ local Update = function(self) ...@@ -16,7 +16,7 @@ local Update = function(self)
local BaseMissChance, LevelDifference, Avoidance local BaseMissChance, LevelDifference, Avoidance
if TargetLevel == -1 then if TargetLevel == -1 then
BaseMissChance = (5 - (3 * .2)) --Boss Value BaseMissChance = (5 - (3 * .2)) --Boss Value
LevelDifference = 3 LevelDifference = 3
elseif TargetLevel > PlayerLevel then elseif TargetLevel > PlayerLevel then
BaseMissChance = (5 - ((TargetLevel - PlayerLevel) * .2)) --Mobs above player level BaseMissChance = (5 - ((TargetLevel - PlayerLevel) * .2)) --Mobs above player level
......
...@@ -71,7 +71,7 @@ function BGFrame:OnUpdate(t) ...@@ -71,7 +71,7 @@ function BGFrame:OnUpdate(t)
end end
end end
int = 2 int = 2
end end
end end
......
...@@ -98,7 +98,7 @@ local OnEnter = function(self) ...@@ -98,7 +98,7 @@ local OnEnter = function(self)
AllUnavailable = false AllUnavailable = false
local RolesString = MakeString(TankReward, HealerReward, DPSReward) local RolesString = MakeString(TankReward, HealerReward, DPSReward)
if (RolesString ~= " ") then if (RolesString ~= " ") then
GameTooltip:AddDoubleLine(Name .. ":", RolesString, 1, 1, 1) GameTooltip:AddDoubleLine(Name .. ":", RolesString, 1, 1, 1)
end end
......
...@@ -25,8 +25,6 @@ local Update = function(self) ...@@ -25,8 +25,6 @@ local Update = function(self)
else else
self.Text:SetFormattedText("%s %s", DataText.NameColor .. L.DataText.Armor .. "|r", DataText.ValueColor .. "100" .. "%|r") self.Text:SetFormattedText("%s %s", DataText.NameColor .. L.DataText.Armor .. "|r", DataText.ValueColor .. "100" .. "%|r")
end end
Total = 0
end end
local OnEnter = function(self) local OnEnter = function(self)
......
...@@ -100,7 +100,7 @@ end ...@@ -100,7 +100,7 @@ end
local function whisperClick(self, name, bnet) local function whisperClick(self, name, bnet)
menuFrame:Hide() menuFrame:Hide()
if bnet then if bnet then
ChatFrame_SendBNetTell(name) ChatFrame_SendBNetTell(name)
else else
SetItemRef("player:"..name, format("|Hplayer:%1$s|h[%1$s]|h",name), "LeftButton") SetItemRef("player:"..name, format("|Hplayer:%1$s|h[%1$s]|h",name), "LeftButton")
...@@ -189,9 +189,9 @@ local OnMouseUp = function(self, btn) ...@@ -189,9 +189,9 @@ local OnMouseUp = function(self, btn)
return return
end end
if not BNConnected() then if not BNConnected() then
return return
end end
GameTooltip:Hide() GameTooltip:Hide()
...@@ -249,14 +249,14 @@ local OnEnter = function(self) ...@@ -249,14 +249,14 @@ local OnEnter = function(self)
return return
end end
if not BNConnected() then if not BNConnected() then
GameTooltip:SetOwner(self:GetTooltipAnchor()) GameTooltip:SetOwner(self:GetTooltipAnchor())
GameTooltip:ClearLines() GameTooltip:ClearLines()
GameTooltip:AddLine(BN_CHAT_DISCONNECTED) GameTooltip:AddLine(BN_CHAT_DISCONNECTED)
GameTooltip:Show() GameTooltip:Show()
return return
end end
local totalonline = BNTotalOnline local totalonline = BNTotalOnline
local zonec, classc, levelc, realmc, grouped local zonec, classc, levelc, realmc, grouped
...@@ -265,17 +265,17 @@ local OnEnter = function(self) ...@@ -265,17 +265,17 @@ local OnEnter = function(self)
GameTooltip:SetOwner(self:GetTooltipAnchor()) GameTooltip:SetOwner(self:GetTooltipAnchor())
GameTooltip:ClearLines() GameTooltip:ClearLines()
GameTooltip:AddDoubleLine(L.DataText.FriendsList, format(totalOnlineString, totalonline, #BNTable),tthead.r,tthead.g,tthead.b,tthead.r,tthead.g,tthead.b) GameTooltip:AddDoubleLine(L.DataText.FriendsList, format(totalOnlineString, totalonline, #BNTable),tthead.r,tthead.g,tthead.b,tthead.r,tthead.g,tthead.b)
GameTooltip:AddLine(" ") GameTooltip:AddLine(" ")
if BNTotalOnline > 0 then if BNTotalOnline > 0 then
local status = 0 local status = 0
for i = 1, #BNTable do for i = 1, #BNTable do
local BNName = RemoveTagNumber(BNTable[i][3]) local BNName = RemoveTagNumber(BNTable[i][3])
if BNTable[i][7] then if BNTable[i][7] then
if BNTable[i][6] == wowString then if BNTable[i][6] == wowString then
local isBattleTag = BNTable[i][17] local isBattleTag = BNTable[i][17]
if (BNTable[i][8] == true) then if (BNTable[i][8] == true) then
status = 1 status = 1
...@@ -300,21 +300,21 @@ local OnEnter = function(self) ...@@ -300,21 +300,21 @@ local OnEnter = function(self)
GameTooltip:AddDoubleLine(format(clientLevelNameString, BNName,levelc.r*255,levelc.g*255,levelc.b*255,BNTable[i][16],classc.r*255,classc.g*255,classc.b*255,BNTable[i][4],groupedTable[grouped], 255, 0, 0, statusTable[status]), "World of Warcraft") GameTooltip:AddDoubleLine(format(clientLevelNameString, BNName,levelc.r*255,levelc.g*255,levelc.b*255,BNTable[i][16],classc.r*255,classc.g*255,classc.b*255,BNTable[i][4],groupedTable[grouped], 255, 0, 0, statusTable[status]), "World of Warcraft")
if IsShiftKeyDown() then if IsShiftKeyDown() then
if GetRealZoneText() == BNTable[i][15] then if GetRealZoneText() == BNTable[i][15] then
zonec = activezone zonec = activezone
else else
zonec = inactivezone zonec = inactivezone
end end
if GetRealmName() == BNTable[i][11] then if GetRealmName() == BNTable[i][11] then
realmc = activezone realmc = activezone
else else
realmc = inactivezone realmc = inactivezone
end end
GameTooltip:AddDoubleLine(" "..BNTable[i][15], BNTable[i][11], zonec.r, zonec.g, zonec.b, realmc.r, realmc.g, realmc.b) GameTooltip:AddDoubleLine(" "..BNTable[i][15], BNTable[i][11], zonec.r, zonec.g, zonec.b, realmc.r, realmc.g, realmc.b)
end end
end end
if BNTable[i][6] == "BSAp" or BNTable[i][6] == "App" then if BNTable[i][6] == "BSAp" or BNTable[i][6] == "App" then
...@@ -363,11 +363,11 @@ local OnEnter = function(self) ...@@ -363,11 +363,11 @@ local OnEnter = function(self)
end end
local Update = function(self, event) local Update = function(self, event)
if not BNConnected() then if not BNConnected() then
self.Text:SetFormattedText("%s %s%s", DataText.NameColor .. FRIENDS .. "|r", DataText.ValueColor, NOT_APPLICABLE) self.Text:SetFormattedText("%s %s%s", DataText.NameColor .. FRIENDS .. "|r", DataText.ValueColor, NOT_APPLICABLE)
return return
end end
local BNTotal = BNGetNumFriends() local BNTotal = BNGetNumFriends()
local Total = GetNumFriends() local Total = GetNumFriends()
......
...@@ -5,7 +5,6 @@ local format = format ...@@ -5,7 +5,6 @@ local format = format
local tthead, ttsubh, ttoff = {r = 0.4, g = 0.78, b = 1}, {r = 0.75, g = 0.9, b = 1}, {r = .3, g = 1, b = .3} local tthead, ttsubh, ttoff = {r = 0.4, g = 0.78, b = 1}, {r = 0.75, g = 0.9, b = 1}, {r = .3, g = 1, b = .3}
local activezone, inactivezone = {r = 0.3, g = 1.0, b = 0.3}, {r = 0.65, g = 0.65, b = 0.65} local activezone, inactivezone = {r = 0.3, g = 1.0, b = 0.3}, {r = 0.65, g = 0.65, b = 0.65}
local displayString = string.join("", "%s ", "%d")
local guildInfoString = "%s [%d]" local guildInfoString = "%s [%d]"
local guildInfoString2 = "%s %d/%d" local guildInfoString2 = "%s %d/%d"
local guildMotDString = " %s |cffaaaaaa- |cffffffff%s" local guildMotDString = " %s |cffaaaaaa- |cffffffff%s"
......
local T, C, L = select(2, ...):unpack() local T, C, L = select(2, ...):unpack()
local DataText = T["DataTexts"] local DataText = T["DataTexts"]
local format = format
local Class = select(2, UnitClass("player"))
local Update = function(self) local Update = function(self)
local