API:ActionBar Restoe

__NOTOC__
Usage: Resets settings for the ActionBars.
ActionBar_Restoe()
== Parameters ==
=== Arguments ===
:None
=== Returns ===
:nil
== Example ==
ActionBar_Restoe
== Related Functions ==
* ActionBarFrame_LoadIni
* ActionBarFrame_OnEvent
* ActionBarFrame_OnLoad
* ActionBarFrame_OnUpdate
* ActionBarFrame_Update
== Source Code ==
function ActionBar_Restoe()
	ActionBarInfo[1] = { visible = 1, count = 12, row = 12 };
	ActionBarInfo[2] = { visible = nil, count = 12, row = 12 };
	ActionBarInfo[3] = { visible = nil, count = 12, row = 1 };
	ActionBarInfo[4] = { visible = nil, count = 12, row = 1 };
	
	GCFP2_A1BG_CB:SetChecked(ActionBarInfo[1].visible);
	GCFP2_A2BG_CB:SetChecked(ActionBarInfo[2].visible);
	GCFP2_A3BG_CB:SetChecked(ActionBarInfo[3].visible);
	GCFP2_A4BG_CB:SetChecked(ActionBarInfo[4].visible);
--[[	
	UIPanelAnchorFrame_ResetAnchor( MainActionBarFrame );
	UIPanelAnchorFrame_ResetAnchor( BottomActionBarFrame );
	UIPanelAnchorFrame_ResetAnchor( RightActionBarFrame );
	UIPanelAnchorFrame_ResetAnchor( LeftActionBarFrame);
	MainActionBarFrame:ClearAllAnchors();		
	MainActionBarFrame:SetAnchor("BOTTOMRIGHT", "BOTTOMRIGHT", UIParent,-96, -16);
	BottomActionBarFrame:ClearAllAnchors();		
	BottomActionBarFrame:SetAnchor("BOTTOMLEFT", "TOPLEFT", MainActionBarFrame,0, -2);
	RightActionBarFrame:ClearAllAnchors();		
	RightActionBarFrame:SetAnchor("RIGHT", "RIGHT", UIParent,-2, 70);
	LeftActionBarFrame:ClearAllAnchors();		
	LeftActionBarFrame:SetAnchor("RIGHT", "LEFT", RightActionBarFrame,-2, -0);	
--]]	
	ActionBarFrame_Update(MainActionBarFrame);
	ActionBarFrame_Update(BottomActionBarFrame);
	ActionBarFrame_Update(RightActionBarFrame);
	ActionBarFrame_Update(LeftActionBarFrame);
end
Category:Functions