<Ui xmlns="http://www.blizzard.com/wow/ui/" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
	xsi:schemaLocation="http://www.blizzard.com/wow/ui/..\FrameXML\UI.xsd">
	
	<Script file="visibility.lua"/>
	
	<CheckButton name="BOptionsShowButton" inherits="BongosCheckButtonTemplate" virtual="true">
		<Scripts>
			<OnClick>
				if this:GetChecked() then
					BBar.Show(BBar.IDToBar(this:GetText()), 1)
				else
					BBar.Hide(BBar.IDToBar(this:GetText()), 1)
				end
			</OnClick>
			<OnMouseWheel>
				BOptionsVisibility_OnMousewheel(BOptionsPanelVisibilityScrollFrame, arg1);
			</OnMouseWheel>
		</Scripts>
	</CheckButton>
		
	<!-- Panel for hiding/showing bars -->
	<Frame name="BongosOptionsVisibility" inherits="BongosOptionsPanel" virtual="true">
		<Frames>
			<ScrollFrame name="$parentScrollFrame" inherits="FauxScrollFrameTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPRIGHT">
						<Offset x="-48" y="-32"/>
					</Anchor>
					<Anchor point="BOTTOMRIGHT">
						<Offset x="-24" y="6"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnVerticalScroll>
						FauxScrollFrame_OnVerticalScroll(18, BOptionsVisibilityScrollBar_Update);
					</OnVerticalScroll>
				</Scripts>
			</ScrollFrame>
		</Frames>
		<Scripts>
			<OnLoad>
				BOptionsVisibility_OnLoad();
			</OnLoad>
			<OnShow>
				BOptionsVisibility_OnShow();
			</OnShow>
			<OnMouseWheel>
				BOptionsVisibility_OnMousewheel(BOptionsPanelVisibilityScrollFrame, arg1);
			</OnMouseWheel>
		</Scripts>
	</Frame>
</Ui>