DepositBox_ToggleDepositBox();
GameTooltip:SetOwner(DepositBoxUI_Main_MiniMapButton, "ANCHOR_LEFT");
GameTooltip:SetText("Deposit Box");
GameTooltip:Hide();DepositBox_ShowTotalMoney();GameTooltip:Hide();DepositBox_ShowTotalMoney();GameTooltip:Hide();
MoneyInputFrame_ResetMoney(DepositBoxUI_DepositBox_MoneyInputFrame);
MoneyInputFrame_ClearFocus(DepositBoxUI_DepositBox_MoneyInputFrame);
if (DepositBox_Location == "ABOVELEFT" or DepositBox_Location == "BELOWLEFT") then
GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPLEFT");
else
GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPRIGHT");
end
GameTooltip:SetText("Clear Input");
GameTooltip:Hide();
if (GetCursorMoney() > 0) then
DropCursorMoney();
end
DepositBox_StoreCash();
if (DepositBox_Location == "ABOVELEFT" or DepositBox_Location == "BELOWLEFT") then
GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPLEFT");
else
GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPRIGHT");
end
GameTooltip:SetText("Deposit Money");
GameTooltip:Hide();
if (GetCursorMoney() > 0) then
DropCursorMoney();
end
DepositBox_RetrieveCash();
if (DepositBox_Location == "ABOVELEFT" or DepositBox_Location == "BELOWLEFT") then
GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPLEFT");
else
GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPRIGHT");
end
GameTooltip:SetText("Withdraw Money");
GameTooltip:Hide();DepositBox_ToggleUsingDirectDeposit();
if (DepositBox_Location == "ABOVELEFT" or DepositBox_Location == "BELOWLEFT") then
GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPLEFT");
else
GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPRIGHT");
end
GameTooltip:SetText("Toggle Direct Deposit");
GameTooltip:Hide();DepositBox_OnValueChanged();DepositBox_ToggleUsingThreshold();
if (DepositBox_Location == "ABOVELEFT" or DepositBox_Location == "BELOWLEFT") then
GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPLEFT");
else
GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPRIGHT");
end
GameTooltip:SetText("Toggle Using a Bag Money Threshold");
GameTooltip:Hide();DepositBox_UpdateThresholdDisplay();
if (DepositBoxUI_DepositBox_ThresholdFrame ~= nil) then
DepositBoxUI_DepositBox_ThresholdFrame:Show();
end
if (DepositBoxUI_DepositBox_ThresholdFrame ~= nil) then
DepositBoxUI_DepositBox_ThresholdFrame:Hide();
end
if (DepositBoxUI_OptionsFrame ~= nil) then
DepositBoxUI_OptionsFrame:Hide();
end
if (DepositBoxUI_OptionsTab ~= nil) then
DepositBoxUI_OptionsTab:SetChecked(0);
end
if (DepositBoxUI_DepositBoxTab ~= nil) then
DepositBoxUI_DepositBoxTab:SetChecked(1);
end
DepositBoxUI_DepositBoxFrame:Hide();
DepositBoxUI_OptionsTab:SetChecked(1);
DepositBoxUI_DepositBoxTab:SetChecked(0);
DepositBoxUI_OptionsFrame:Hide();DepositBox_MiniMapOnValueChanged();DepositBox_ToggleMiniMapButton();
if (DepositBox_Location == "ABOVELEFT" or DepositBox_Location == "BELOWLEFT") then
GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPLEFT");
else
GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPRIGHT");
end
GameTooltip:SetText("Toggle MiniMap Button");
GameTooltip:Hide();DepositBox_ToggleUsingMoneyDisplay();
if (DepositBox_Location == "ABOVELEFT" or DepositBox_Location == "BELOWLEFT") then
GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPLEFT");
else
GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPRIGHT");
end
GameTooltip:SetText("Toggle Money Display");
GameTooltip:Hide();DepositBox_ToggleMoneyDisplayType("Bag");
if (DepositBox_Location == "ABOVELEFT" or DepositBox_Location == "BELOWLEFT") then
GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPLEFT");
else
GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPRIGHT");
end
GameTooltip:SetText("Display Bag Money");
GameTooltip:Hide();DepositBox_ToggleMoneyDisplayType("Box");
if (DepositBox_Location == "ABOVELEFT" or DepositBox_Location == "BELOWLEFT") then
GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPLEFT");
else
GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPRIGHT");
end
GameTooltip:SetText("Display Stored Money");
GameTooltip:Hide();
if (DepositBoxUI_Options_MoneyAlertFrame ~= nil) then
DepositBoxUI_Options_MoneyAlertFrame:Show();
end
if (DepositBoxUI_Options_MoneyAlertFrame ~= nil) then
DepositBoxUI_Options_MoneyAlertFrame:Hide();
end
DepositBox_ToggleUsingMoneyAlert();
if (DepositBox_Location == "ABOVELEFT" or DepositBox_Location == "BELOWLEFT") then
GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPLEFT");
else
GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPRIGHT");
end
GameTooltip:SetText("Toggle Using a Storage Target");
GameTooltip:Hide();DepositBox_UpdateMoneyAlertDisplay();
if (DepositBoxUI_Options_MoneyAlertCheckButton:GetChecked() ~= nil) then
DepositBox_PerformTargetHide();
end
if (DepositBox_Location == "ABOVELEFT" or DepositBox_Location == "BELOWLEFT") then
GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPLEFT");
else
GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPRIGHT");
end
GameTooltip:SetText("Hide until target is reached");
GameTooltip:Hide();DepositBox_ToggleACMode();
if (DepositBox_Location == "ABOVELEFT" or DepositBox_Location == "BELOWLEFT") then
GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPLEFT");
else
GameTooltip:SetOwner(DepositBoxUI_DepositBoxFrame, "ANCHOR_TOPRIGHT");
end
GameTooltip:SetText("Toggle Compatibility with Accountant type Addons");
GameTooltip:Hide();
if (DepositBoxUI_DepositBoxFrame:IsShown()) then
DepositBoxUI_DepositBoxTab:SetChecked(1);
end
DepositBoxUI_DepositBoxFrame:Show();
DepositBoxUI_OptionsTab:SetChecked(0);
if (DepositBoxUI_OptionsFrame:IsShown()) then
DepositBoxUI_DepositBoxTab:SetChecked(0);
DepositBoxUI_OptionsTab:SetChecked(1);
end
DepositBoxUI_DepositBoxTab:SetChecked(0);
DepositBoxUI_OptionsFrame:Show();
DepositBoxUI_DepositBox_MoneyStoredCopperText:SetText("0");
DepositBoxUI_DepositBox_MoneyStoredSilverText:SetText("0");
DepositBoxUI_DepositBox_MoneyStoredGoldText:SetText("0");
DepositBoxUI_DepositBox_MoneyStoredLabelText:SetText("Stored:");
DepositBoxUI_DepositBox_MoneyBagCopperText:SetText("0");
DepositBoxUI_DepositBox_MoneyBagSilverText:SetText("0");
DepositBoxUI_DepositBox_MoneyBagGoldText:SetText("0");
DepositBoxUI_DepositBox_MoneyBagLabelText:SetText("Bag:");
DepositBoxUI_DepositBoxFrame:Hide();
DepositBoxUI_OptionsFrame:Hide();
DepositBoxUI_Main_BlockButton:Hide();
DepositBoxUI_Main_MiniMapButtonFrame:Hide();
DepositBoxUI_Main_TabsFrame:Hide();
DepositBox_OnLoad();
DepositBox_OnEvent();
if(TitanPanelBarButton~=nil) then
if (arg1 == "LeftButton") then
DepositBox_ToggleDepositBox();
end
TitanPanelButton_OnClick(arg1)
end
if(TitanPanelBarButton~=nil) then
if (arg1 == "LeftButton") then
DepositBox_ToggleDepositBox();
end
TitanPanelButton_OnClick(arg1)
end
if(TitanPanelBarButton~=nil) then
if (arg1 == "LeftButton") then
DepositBox_ToggleDepositBox();
end
TitanPanelButton_OnClick(arg1)
end
if(TitanPanelBarButton ~= nil) then
DepositBox_Titan_OnLoad();
TitanPanelButton_OnLoad();
end
if(TitanPanelBarButton ~= nil) then
if (arg1 == "LeftButton") then
DepositBox_ToggleDepositBox();
end
TitanPanelButton_OnClick(arg1)
end