/trunk
--[[-------------------------------------------------------------------- |
PhanxMod |
Personal addon to do miscellaneous things. |
Copyright (c) 2007-2014 Phanx <addons@phanx.net>. All rights reserved. |
Copyright (c) 2007-2015 Phanx <addons@phanx.net>. All rights reserved. |
Do not redistribute. Code reuse OK as long as neither my name nor |
the name of this addon are used. Email if you have questions. |
----------------------------------------------------------------------]] |
local CONFIRM_TEXT = "A small fee for supplies is required." |
if GetLocale() == "deDE" then |
GOSSIP_TEXT = "Ich würde gern meine Kampfhaustiere heilen und wiederbeleben." |
CONFIRM_TEXT = "Es wird eine kleine Gebühr für die medizinische Hilfe erhoben." |
GOSSIP_TEXT = "Ich w�rde gern meine Kampfhaustiere heilen und wiederbeleben." |
CONFIRM_TEXT = "Es wird eine kleine Geb�hr f�r die medizinische Hilfe erhoben." |
end |
local f = CreateFrame("Frame") |
--[[-------------------------------------------------------------------- |
PhanxMod |
Personal addon to do miscellaneous things. |
Copyright (c) 2007-2014 Phanx <addons@phanx.net>. All rights reserved. |
Copyright (c) 2007-2015 Phanx <addons@phanx.net>. All rights reserved. |
Do not redistribute. Code reuse OK as long as neither my name nor |
the name of this addon are used. Email if you have questions. |
----------------------------------------------------------------------]] |
--[[-------------------------------------------------------------------- |
PhanxMod |
Personal addon to do miscellaneous things. |
Copyright (c) 2007-2014 Phanx <addons@phanx.net>. All rights reserved. |
Copyright (c) 2007-2015 Phanx <addons@phanx.net>. All rights reserved. |
Do not redistribute. Code reuse OK as long as neither my name nor |
the name of this addon are used. Email if you have questions. |
----------------------------------------------------------------------]] |
--[[-------------------------------------------------------------------- |
PhanxMod |
Personal addon to do miscellaneous things. |
Copyright (c) 2007-2014 Phanx <addons@phanx.net>. All rights reserved. |
Copyright (c) 2007-2015 Phanx <addons@phanx.net>. All rights reserved. |
Do not redistribute. Code reuse OK as long as neither my name nor |
the name of this addon are used. Email if you have questions. |
----------------------------------------------------------------------]] |
--[[-------------------------------------------------------------------- |
PhanxMod |
Personal addon to do miscellaneous things. |
Copyright (c) 2007-2014 Phanx <addons@phanx.net>. All rights reserved. |
Copyright (c) 2007-2015 Phanx <addons@phanx.net>. All rights reserved. |
Do not redistribute. Code reuse OK as long as neither my name nor |
the name of this addon are used. Email if you have questions. |
----------------------------------------------------------------------]] |
--[[-------------------------------------------------------------------- |
PhanxMod |
Personal addon to do miscellaneous things. |
Copyright (c) 2007-2014 Phanx <addons@phanx.net>. All rights reserved. |
Copyright (c) 2007-2015 Phanx <addons@phanx.net>. All rights reserved. |
Do not redistribute. Code reuse OK as long as neither my name nor |
the name of this addon are used. Email if you have questions. |
----------------------------------------------------------------------]] |
-- Bagnon |
-- Move frames |
--------------------------------------------------------------------- |
--[==[ |
mods["Bagnon"] = function() |
local function MoveFrame(frame) |
--print("Bagnon: OnShow:", frame:GetName()) |
frame:HookScript("OnShow", MoveFrame) |
end) |
end |
]==] |
--------------------------------------------------------------------- |
-- MasterPlan |
-- * Enlarge group suggestion buttons, colorize success chances |
local knownSenders = { |
["Auntie Stormbrew"] = true, ["Tantchen Sturmbraü"] = true, |
["Breanni"] = true, |
["Lorewalker Cho"] = true, ["Lehrensucher Cho"] = true, |
["Mei Francis"] = true, |
["Thaumaturge Vashreen"] = true, ["Thaumaturg Vashreen"] = true, |
["The Postmaster"] = true, ["Der Postmeister"] = true, |
end) |
------------------------------------------------------------------------ |
-- Interface Options frame movable |
------------------------------------------------------------------------ |
do |
local function MakeMovable(frame) |
frame:SetMovable(true) |
frame:CreateTitleRegion():SetAllPoints(frame.header or _G[frame:GetName().."Header"]) |
end |
MakeMovable(InterfaceOptionsFrame) |
MakeMovable(VideoOptionsFrame) |
MakeMovable(HelpFrame) |
MakeMovable(AddonList) |
mods["Blizzard_BindingUI"] = function() MakeMovable(KeyBindingFrame) end |
end |
------------------------------------------------------------------------ |
-- When opening the LFD window, if no roles are selected, automatically |
-- select the role appropriate for the player's current spec, to avoid |
-- annoying "You must select at least one role" error messages. |