/branches
--TargetofFocusFrameDebuff4:UnregisterAllEvents(); |
end |
function RDXDK.DisableCompactRaidFrameManager() |
CompactRaidFrameManager:UnregisterAllEvents(); |
CompactRaidFrameManager:Hide(); |
CompactRaidFrameContainer:UnregisterEvent("RAID_ROSTER_UPDATE"); |
CompactRaidFrameContainer:UnregisterEvent("UNIT_PET"); |
CompactRaidFrameContainer:Hide(); |
end |
function RDXDK.DisableMainMenuBar() |
MainMenuBar_OnLoad = VFL.Noop; |
MainMenuBar_OnEvent = VFL.Noop; |
if opt and opt.puf then chk_puf:SetChecked(true); else chk_puf:SetChecked(); end |
ui:InsertFrame(chk_puf); |
local chk_raiduf = VFLUI.Checkbox:new(ui); chk_raiduf:Show(); |
chk_raiduf:SetText(VFLI.i18n("Disable Raid frame")); |
if opt and opt.raiduf then chk_raiduf:SetChecked(true); else chk_raiduf:SetChecked(); end |
ui:InsertFrame(chk_raiduf); |
local chk_peuf = VFLUI.Checkbox:new(ui); chk_peuf:Show(); |
chk_peuf:SetText(VFLI.i18n("Disable Pet frame")); |
if opt and opt.peuf then chk_peuf:SetChecked(true); else chk_peuf:SetChecked(); end |
chk_cuf:SetChecked(); |
chk_fuf:SetChecked(); |
chk_puf:SetChecked(); |
chk_raiduf:SetChecked(); |
chk_peuf:SetChecked(); |
chk_pluf:SetChecked(); |
chk_ruf:SetChecked(); |
chk_cuf:SetChecked(true); |
chk_fuf:SetChecked(true); |
chk_puf:SetChecked(true); |
chk_raiduf:SetChecked(true); |
chk_peuf:SetChecked(true); |
chk_pluf:SetChecked(true); |
chk_ruf:SetChecked(true); |
opt.cuf = chk_cuf:GetChecked(); |
opt.fuf = chk_fuf:GetChecked(); |
opt.puf = chk_puf:GetChecked(); |
opt.raiduf = chk_raiduf:GetChecked(); |
opt.peuf = chk_peuf:GetChecked(); |
opt.pluf = chk_pluf:GetChecked(); |
opt.ruf = chk_ruf:GetChecked(); |
if opt.cuf then RDXDK.DisableComboFrame(); end |
if opt.fuf then RDXDK.DisableFocusFrame(); end |
if opt.puf then RDXDK.DisablePartyMember(); end |
if opt.raiduf then RDXDK.DisableCompactRaidFrameManager(); end |
if opt.peuf then RDXDK.DisablePetFrames(); end |
if opt.pluf then RDXDK.DisablePlayerFrames(); end |
if opt.ruf then RDXDK.DisableRuneFrames(); end |
end |
end |
VFLP.RegisterFunc(VFLI.i18n("RDXDAL: UnitDB"), "ProcessBoss", ProcessBoss, true); |
WoWEvents:Bind("INSTANCE_ENCOUNTER_ENGAGE_UNIT", nil, ProcessBoss); |
--WoWEvents:Bind("INSTANCE_ENCOUNTER_ENGAGE_UNIT", nil, ProcessBoss); |
--VFLEvents:Bind("PLAYER_COMBAT", nil, ProcessBoss); |
------------------------------------------------------------ |
RDXPM.CharacterMenu:RegisterMenuFunction(function(ent) |
ent.text = VFLI.i18n("SpellBook"); |
ent.notCheckable = true; |
ent.func = function() ToggleFrame(SpellBookFrame); end; |
ent.func = function() |
--ToggleFrame(SpellBookFrame); |
if SpellBookFrame:IsShown() then |
HideUIPanel(SpellBookFrame); |
else |
ShowUIPanel(SpellBookFrame); |
end |
end; |
end); |
RDXPM.CharacterMenu:RegisterMenuFunction(function(ent) |
ent.text = VFLI.i18n("Talents"); |