From c7c303ae3c9fdbf0cdae2fde4ce7cc9cb7d88844 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Tue, 2 Sep 2008 16:55:22 +0200 Subject: [PATCH] Removed trailing spaces --- ActionBar.lua | 2 +- ActionBarStates.lua | 8 ++++---- ActionBars.lua | 14 +++++++------- ActionButton.lua | 10 +++++----- BagBar.lua | 12 ++++++------ Bar.lua | 2 +- Bartender4.lua | 2 +- Bartender4.toc | 2 +- ButtonBar.lua | 4 ++-- MicroMenu.lua | 6 +++--- PetBar.lua | 2 +- PetButton.lua | 4 ++-- StanceBar.lua | 6 +++--- 13 files changed, 37 insertions(+), 37 deletions(-) diff --git a/ActionBar.lua b/ActionBar.lua index d4bdaa0..4571a63 100644 --- a/ActionBar.lua +++ b/ActionBar.lua @@ -8,7 +8,7 @@ Bartender4.ActionBar = ActionBar ===================================================================================]]-- local initialPosition -do +do -- Sets the Bar to its initial Position in the Center of the Screen function initialPosition(bar) bar:ClearSetPoint("CENTER", 0, -250 + (bar.id-1) * 38) diff --git a/ActionBarStates.lua b/ActionBarStates.lua index dc4f05d..67bb711 100644 --- a/ActionBarStates.lua +++ b/ActionBarStates.lua @@ -55,7 +55,7 @@ local stancemap function ActionBar:UpdateStates() if not self.buttons then return end self.statebutton = {} - if not stancemap and DefaultStanceMap[playerclass] then + if not stancemap and DefaultStanceMap[playerclass] then stancemap = DefaultStanceMap[playerclass] end @@ -78,7 +78,7 @@ function ActionBar:UpdateStates() for _,v in pairs(modifiers) do local page = self:GetStateOption(v) if page and page ~= 0 then - table_insert(statedriver, fmt("[modifier:%s]%s", v, page)) + table_insert(statedriver, fmt("[modifier:%s]%s", v, page)) end end @@ -136,7 +136,7 @@ end function ActionBar:GetStanceState(stance) local stanceconfig = self.config.states.stance[playerclass] - if type(stance) == "table" then + if type(stance) == "table" then state = stanceconfig[stance.id] else state = stanceconfig[stance] @@ -167,7 +167,7 @@ end function ActionBar:AddToStateButton(state) if not self.statebutton then self.statebutton = {} end - if not tfind(self.statebutton, state) then + if not tfind(self.statebutton, state) then table_insert(self.statebutton, state) end end diff --git a/ActionBars.lua b/ActionBars.lua index b206550..d0c8a6f 100644 --- a/ActionBars.lua +++ b/ActionBars.lua @@ -12,15 +12,15 @@ local abdefaults = { hidehotkey = false, showgrid = false, autoassist = false, - states = { - enabled = false, + states = { + enabled = false, possess = false, actionbar = false, - default = 0, + default = 0, ctrl = 0, alt = 0, shift = 0, - stance = { + stance = { ['*'] = { }, }, @@ -55,10 +55,10 @@ local abdefaults = { }, } -local defaults = { - profile = { +local defaults = { + profile = { actionbars = abdefaults, - } + } } function BT4ActionBars:OnInitialize() diff --git a/ActionButton.lua b/ActionButton.lua index c42a114..53bc938 100644 --- a/ActionButton.lua +++ b/ActionButton.lua @@ -210,8 +210,8 @@ function onUpdate(self, elapsed) local valid = IsActionInRange(self.action) local hotkey = self.hotkey local hkshown = (hotkey:GetText() == RANGE_INDICATOR and oor == "hotkey") - if valid and hkshown then - hotkey:Show() + if valid and hkshown then + hotkey:Show() elseif hkshown then hotkey:Hide() end @@ -389,7 +389,7 @@ function Button:GetBindings() for i = 1, select('#', GetBindingKey(binding)) do local hotKey = select(i, GetBindingKey(binding)) if keys ~= "" then - keys = keys .. ', ' + keys = keys .. ', ' end keys = keys .. GetBindingText(hotKey,'KEY_') end @@ -399,7 +399,7 @@ function Button:GetBindings() for i = 1, select('#', GetBindingKey(binding)) do local hotKey = select(i, GetBindingKey(binding)) if keys ~= "" then - keys = keys .. ', ' + keys = keys .. ', ' end keys = keys .. GetBindingText(hotKey,'KEY_') end @@ -445,7 +445,7 @@ end function Button:UpdateUsable(force) local isUsable, notEnoughMana = IsUsableAction(self.action) local icon, hotkey = self.icon, self.hotkey - if force or not oor then + if force or not oor then oor = Bartender4.db.profile.outofrange oorcolor, oomcolor = Bartender4.db.profile.colors.range, Bartender4.db.profile.colors.mana end diff --git a/BagBar.lua b/BagBar.lua index 3f955d3..deee415 100644 --- a/BagBar.lua +++ b/BagBar.lua @@ -12,7 +12,7 @@ local BagBar = setmetatable({}, {__index = ButtonBar}) local table_insert = table.insert -local defaults = { profile = Bartender4:Merge({ +local defaults = { profile = Bartender4:Merge({ enabled = true, keyring = false, onebag = false, @@ -72,7 +72,7 @@ function BagBar:FeedButtons() btn:Hide() btn:SetParent(UIParent) btn:ClearSetPoint("CENTER") - if btn ~= KeyRingButton and btn.LBFButtonData then + if btn ~= KeyRingButton and btn.LBFButtonData then local group = self.LBFGroup group:RemoveButton(btn) end @@ -87,16 +87,16 @@ function BagBar:FeedButtons() end if not self.config.onebag then - table_insert(self.buttons, CharacterBag3Slot) - table_insert(self.buttons, CharacterBag2Slot) - table_insert(self.buttons, CharacterBag1Slot) + table_insert(self.buttons, CharacterBag3Slot) + table_insert(self.buttons, CharacterBag2Slot) + table_insert(self.buttons, CharacterBag1Slot) table_insert(self.buttons, CharacterBag0Slot) count = count + 4 end table_insert(self.buttons, MainMenuBarBackpackButton) - for i,v in pairs(self.buttons) do + for i,v in pairs(self.buttons) do v:SetParent(self) v:Show() if v ~= KeyRingButton then diff --git a/Bar.lua b/Bar.lua index c60d65f..bc2888d 100644 --- a/Bar.lua +++ b/Bar.lua @@ -54,7 +54,7 @@ do -- TODO: Once dropdown config is stable, show dropdown on rightclick end - function barOnUpdateFunc(self, elapsed) + function barOnUpdateFunc(self, elapsed) self.elapsed = self.elapsed + elapsed if self.elapsed > self.config.fadeoutdelay then self:ControlFadeOut(self.elapsed) diff --git a/Bartender4.lua b/Bartender4.lua index 1abb78e..3a4e35a 100644 --- a/Bartender4.lua +++ b/Bartender4.lua @@ -50,7 +50,7 @@ end function Bartender4:CombatLockdown() self:Lock() - LibStub("AceConfigDialog-3.0"):Close("Bartender4") + LibStub("AceConfigDialog-3.0"):Close("Bartender4") end function Bartender4:ToggleLock() diff --git a/Bartender4.toc b/Bartender4.toc index 67a792a..e22fc87 100644 --- a/Bartender4.toc +++ b/Bartender4.toc @@ -1,5 +1,5 @@ ## Interface: 30000 -## Notes-ruRU: Простой и усовершенствованный - Аддон паненей команд Бармен4 +## Notes-ruRU: Простой и усовершенствованный - Аддон паненей команд Бармен4 ## Notes: Simple and Advanced combined - Bartender4 ActionBar AddOn ## Title: Bartender4 ## Author: Nevcairiel diff --git a/ButtonBar.lua b/ButtonBar.lua index 5f73a7d..ae74c4a 100644 --- a/ButtonBar.lua +++ b/ButtonBar.lua @@ -106,8 +106,8 @@ function ButtonBar:UpdateButtonLayout() local Rows = self:GetRows() local ButtonPerRow = math_floor(numbuttons / Rows + 0.5) -- just a precaution Rows = math_floor(numbuttons / ButtonPerRow + 0.5) - if Rows > numbuttons then - Rows = numbuttons + if Rows > numbuttons then + Rows = numbuttons ButtonPerRow = 1 end diff --git a/MicroMenu.lua b/MicroMenu.lua index 5376db4..91253d8 100644 --- a/MicroMenu.lua +++ b/MicroMenu.lua @@ -12,7 +12,7 @@ local MicroMenuBar = setmetatable({}, {__index = Bar}) local table_insert = table.insert -local defaults = { profile = Bartender4:Merge({ +local defaults = { profile = Bartender4:Merge({ enabled = true, vertical = false, visibility = { @@ -45,9 +45,9 @@ function MicroMenuMod:OnEnable() self:RawHook("UpdateTalentButton", noopFunc, true) - for i,v in pairs(buttons) do + for i,v in pairs(buttons) do v:SetParent(self.bar) - v:Show() + v:Show() v:SetFrameLevel(self.bar:GetFrameLevel() + 1) end diff --git a/PetBar.lua b/PetBar.lua index 527538f..e4492f7 100644 --- a/PetBar.lua +++ b/PetBar.lua @@ -93,7 +93,7 @@ end PetBar.button_width = 30 PetBar.button_height = 30 function PetBar:OnEvent(event, arg1) - if event == "PET_BAR_UPDATE" or + if event == "PET_BAR_UPDATE" or (event == "UNIT_PET" and arg1 == "player") or ((event == "UNIT_FLAGS" or event == "UNIT_AURA") and arg1 == "pet") or event == "PLAYER_CONTROL_LOST" or event == "PLAYER_CONTROL_GAINED" or event == "PLAYER_FARSIGHT_FOCUS_CHANGED" diff --git a/PetButton.lua b/PetButton.lua index 6a270b7..5211482 100644 --- a/PetButton.lua +++ b/PetButton.lua @@ -182,7 +182,7 @@ function PetButtonPrototype:GetBindings() for i = 1, select('#', GetBindingKey(binding)) do local hotKey = select(i, GetBindingKey(binding)) if keys ~= "" then - keys = keys .. ', ' + keys = keys .. ', ' end keys = keys .. GetBindingText(hotKey,'KEY_') end @@ -191,7 +191,7 @@ function PetButtonPrototype:GetBindings() for i = 1, select('#', GetBindingKey(binding)) do local hotKey = select(i, GetBindingKey(binding)) if keys ~= "" then - keys = keys .. ', ' + keys = keys .. ', ' end keys = keys.. GetBindingText(hotKey,'KEY_') end diff --git a/StanceBar.lua b/StanceBar.lua index 9a6e905..8a7be37 100644 --- a/StanceBar.lua +++ b/StanceBar.lua @@ -17,7 +17,7 @@ local format = string.format local LBF = LibStub("LibButtonFacade", true) local KeyBound = LibStub("LibKeyBound-1.0") -local defaults = { profile = Bartender4:Merge({ +local defaults = { profile = Bartender4:Merge({ enabled = true, scale = 1.5, }, Bartender4.ButtonBar.defaults) } @@ -120,7 +120,7 @@ function StanceButtonPrototype:GetBindings() for i = 1, select('#', GetBindingKey(binding)) do local hotKey = select(i, GetBindingKey(binding)) if keys ~= "" then - keys = keys .. ', ' + keys = keys .. ', ' end keys = keys .. GetBindingText(hotKey,'KEY_') end @@ -129,7 +129,7 @@ function StanceButtonPrototype:GetBindings() for i = 1, select('#', GetBindingKey(binding)) do local hotKey = select(i, GetBindingKey(binding)) if keys ~= "" then - keys = keys .. ', ' + keys = keys .. ', ' end keys = keys.. GetBindingText(hotKey,'KEY_') end