self:StartMoving();
self:StopMovingOrSizing();
_G[self:GetName().."Icon"]:SetTexture(BFConst.ImagesDir.."CreateBar.tga");
self:RegisterForDrag("LeftButton", "RightButton");
self.Tooltip = BFUtil.GetLocaleString("CreateBarTooltip");
-- Toggle CreateBar Mode
BFUILib.ToggleCreateBarMode();
BFCustomAction.SetCursor("createbarmode");
GameTooltip:SetOwner(self:GetParent(), "ANCHOR_TOPLEFT");
GameTooltip:SetText(self.Tooltip, nil, nil, nil, nil, 1);
GameTooltip_Hide();
_G[self:GetName().."Icon"]:SetTexture(BFConst.ImagesDir.."CreateBonusBar.tga");
self:RegisterForDrag("LeftButton", "RightButton");
self.Tooltip = BFUtil.GetLocaleString("CreateBonusBarTooltip");
self:SetScale(0.66);
self:ClearAllPoints();
self:SetPoint("TOPLEFT", self:GetParent(), "TOPLEFT", 20 / 0.66, -74 / 0.66);
-- Toggle CreateBar Mode
BFUILib.ToggleCreateBonusBarMode();
BFCustomAction.SetCursor("createbonusbarmode");
GameTooltip:SetOwner(self:GetParent(), "ANCHOR_TOPLEFT");
GameTooltip:SetText(self.Tooltip, nil, nil, nil, nil, 1);
GameTooltip_Hide();
_G[self:GetName().."Icon"]:SetTexture(BFConst.ImagesDir.."DestroyBar.tga");
self:RegisterForDrag("LeftButton", "RightButton");
self.Tooltip = BFUtil.GetLocaleString("DestroyBarTooltip");
-- Toggle DestroyBar Mode
BFUILib.ToggleDestroyBarMode();
BFCustomAction.SetCursor("destroybarmode");
GameTooltip:SetOwner(self:GetParent(), "ANCHOR_TOPLEFT");
GameTooltip:SetText(self.Tooltip, nil, nil, nil, nil, 1);
GameTooltip_Hide();
_G[self:GetName().."Icon"]:SetTexture(BFConst.ImagesDir.."AdvancedTools.tga");
self:RegisterForDrag("LeftButton", "RightButton");
self.Tooltip = BFUtil.GetLocaleString("AdvancedToolsTooltip");
-- Toggle Advanced Tools Mode
BFUILib.ToggleAdvancedTools();
BFCustomAction.SetCursor("advancedtoolsmode");
GameTooltip:SetOwner(self:GetParent(), "ANCHOR_TOPRIGHT");
GameTooltip:SetText(self.Tooltip, nil, nil, nil, nil, 1);
GameTooltip_Hide();
_G[self:GetName().."Icon"]:SetTexture(BFConst.ImagesDir.."Configure.tga");
self.Tooltip = BFUtil.GetLocaleString("ConfigureModePrimaryTooltip");
self:RegisterForDrag("LeftButton", "RightButton");
self:SetChecked(true);
self:SetAttribute("type", "macro");
self:SetAttribute("macrotext", "/click BFToolbarToggle");
self:SetChecked(true);
BFCustomAction.SetCursor("configuremode");
GameTooltip:SetOwner(self:GetParent(), "ANCHOR_TOPRIGHT");
GameTooltip:SetText(self.Tooltip, nil, nil, nil, nil, 1);
GameTooltip_Hide();
_G[self:GetName().."Icon"]:SetTexture(BFConst.ImagesDir.."RightClickSelfCast.tga");
self:RegisterForDrag("LeftButton", "RightButton");
self.Tooltip = BFUtil.GetLocaleString("RightClickSelfCastTooltip");
self:SetScale(0.66);
self:ClearAllPoints();
self:SetPoint("TOPLEFT", self:GetParent(), "TOPLEFT", 20 / 0.66 + 40, -74 / 0.66);
-- Toggle Right Click Self Cast Mode
BFUILib.ToggleRightClickSelfCast();
BFCustomAction.SetCursor("rightclickselfcast");
GameTooltip:SetOwner(self:GetParent(), "ANCHOR_TOPLEFT");
GameTooltip:SetText(self.Tooltip, nil, nil, nil, nil, 1);
GameTooltip_Hide();