Mobile Frames

By: AnduinLothar    <KarlKFI@cosmosui.org>

Makes selected frames mobile by dragging their top bar.
All would-be mobile frames must have a mobile parent already.
If the parent's right HitRectInsets are different than 30 pixels then OnShow must
be replaced with a modified width update. (See QuestLogFrameMobileBar for example)

Slash Commands:
	/mobile - Print slash command help,
	/mobile list - Print a list of movable UI panels and frames,
	/mobile enable [frameName] - Enable the mobility of a frame (all if not specified),
	/mobile disable [frameName] - Disable the mobility of a frame (all if not specified),
	/mobile reset [frameName] - Reset the position of a frame (all if not specified),
	/mobile anchors - Toggle the visibility of special frame anchors,
	/mobile sound - Toggle the splash sound when special frame anchors are hidden,
	/mobile offset uipanel <#> - Set the offset for regular windows from the left side of the screen,
	/mobile offset bags <#> - Set the offset for bags from the right side of the screen,
	/mobile rollstack - Toggle group loot window stacking down or up.

Currently Mobile Frames:
	LootFrame,
	QuestLogFrame,
	TradeFrame,
	MerchantFrame,
	ClassTrainerFrame,
	TradeSkillFrame,
	MacroFrame,
	FriendsFrame,
	CharacterFrame,
	SpellBookFrame,
	InspectFrame,
	CraftFrame,
	BankFrame,
	QuestFrame,
	GossipFrame,
	GuildRegistrarFrame,
	ItemTextFrame,
	TabardFrame,
	PetStableFrame,
	TradeFrame,
	Containers (Bags),
	PlayerFrame,
	TargetFrame,
	PartyMemberFrames,
	BottomMultiBars,
	SideMultiBars,
	MinimapCluster,
	AuctionFrame,
	TalentFrame,
	PetFrame,
	MailFrame,
	OpenMailFrame,
	QuestWatchFrame,
	FramerateLabel  (Framerate),
	DurabilityFrame,
	TicketStatusFrame,
	TemporaryEnchantFrame (Buffs),
	BattlefieldFrame,
	MiniMapBattlefieldFrame,
	WorldStateScoreFrame,
	DressUpFrame,
	TaxiFrame,
	MainMenuBar,
	BackpackButtons,
	MicroButtons,
	ActionButtons,
	ShapeshiftBarFrame (Shapeshift/Aura/Stance Bar),
	PetActionBarFrame,
	UIErrorsFrame,
	TargetofTargetFrame,
	QuestTimerFrame
	
	
Change Log:

v3.5 (10/18/06)

   1. Updated for Lua 5.1
   2. Updated toc to 20000
   3. ShapeshiftBar background no longer shows when moved

v3.43 (11/20/06)

   1. Added QuestTimerFrame mobility

v3.42 (9/27/06)

   1. Fixed bug when hitting esc with 3 frames open

v3.41 (8/23/06)

   1. Updated SeaHooks embedding

v3.4 (8/22/06)

   1. The AB/WSG score frame is now dragged by anchor rather than the rediculous mouseover hook system it was using. (This fixes a 1.12 error where they are made dynamicly)
   2. Fixed loading order so that the EarthFeatureFrame is again draggable.
   3. Updated TOC to 11200 

v3.3 (6/26/06)

   1. Made TargetofTargetFrame mobile
   2. Updated TOC to 11100 
   
v3.21 (4/7/06)

   1. Re-Updated TOC to 11000 

v3.2 (3/31/06)

   1. Revamp of all reset and anchoring code. Now handled frames must not be user placed in order for SetPoint to affect them. This should also fix some addon conflicts.
   2. Bottom frames now reset using UIParent_ManageFramePositions as per 1.10 changes.
   3. Fixed shapeshift/aura bar graphic bug 

v3.1 (3/28/06)

   1. 1.10 Compatible: only 11 containers
   2. Removed RegisterForSave
   3. Updated TOC to 11000 

v3.0 (2/8/06)

   1. Made Sea Optional thanks to embeddable SeaHooks
   2. Fixed Print Statements 

v2.95 (2/2/06)

   1. Changed slash command from /mf to /mobile to avoid conflicts
   2. Made all printed strings localizable
   3. Changed slash command syntax for offset from regular/containers to uipanel/bags
   4. Made Mobile: UIErrorsFrame 

v2.94 (1/30/06)

   1. Alphebatized the Frame Listings by Localized frame name.
   2. Made some minor readability changes
   3. Put the reset button on the same line as the enable/disable checkbox in Khaos
   4. Consolidated Slash Commands. Type /mf for help 

v2.93 (10/23/05)

   1. Fixed a bug with enable and disable all with the wrong khaos key being called.
   2. Alphebatized the Frame Listings 

v2.92 (10/20/05)

   1. Fixed another Pet Bar positioning problem regarding the chatframe. 

v2.91 (10/19/05)

   1. Fixed Pet Bar positioning problems.
   2. Fixed Shapeshift Bar positionig problems.
   3. Made Mobile: WorldStateAlwaysUpFrame (AB Scores) 

v2.9 (10/17/05)

   1. Made MainMenuBar anchor top/bottom rather than left/right
   2. Made Mobile: PetActionBarFrame
   3. Fixed some PetActionBarFrame related positioning overlap
   4. Added Tooltip for Mobile Bars and Anchors.
   5. Fixed WorldStateScoreFrame reset bug 

v2.8 (10/16/05)

   1. Updated for 1800 compatibility
   2. Made Mobile: DressUpFrame, TaxiFrame, MainMenuBar, BackpackButtons, MicroButtons, ActionButtons, ShapeshiftBarFrame (Shapeshift/Aura/Stance Bar)
   3. Implimented SetUserPlaced(0) for all resets
   4. Removed Minimap Mobile Buttons (use the MobileMinimapButtons addon)
   5. Removed duplicate entries in the Khaos 'Regular Options'.
   6. Added Shift-RightClick Reset menus for all anchors and mobile bars. 

v2.71 (9/26/05)

   1. Updated Container Hook to work with BarOptions 

v2.7 (9/6/05)

   1. Fixed UIPanelOffset Khaos Option dependancy
   2. Fixed MinimapZoomOut wrapping bug 

v2.6 (6/24/05)

   1. Made Mobile: CastingBarFrame
   2. Fixed Khaos enable and disable all
   3. Fixed slash commands to correctly update Khaos.
   4. Fixed a VisibilityOptions cyclic loading problem 

v2.5 (6/2/05)

   1. Fixed Buff repositioning
   2. Made Mobile: GroupLootFrame
   3. Added option for GroupLootFrame stacking down or up. 

v2.4 (5/16/05)

   1. Made Mobile: BattlefieldFrame, MiniMapBattlefieldFrame, WorldStateScoreFrame
   2. Updated TOC to 1500 

v2.3 (5/13/05)

   1. Fixed Bug where settings weren't being restored w/o cosmos
   2. Added Khaos Config Registration 

v2.2 (5/10/05)

   1. Made Mobile: Buffs
   2. Reworked slash commands so that you can use the readable name (as seen in /mflist) to reset, enable and disable frames. 

v2.1 (5/2/05)

   1. Made Mobile: DurabilityFrame, TicketStatusFrame
   2. Updated Mobile MiniMap Button code. You can now hook MobileFrames_MobileMinimapButton_OnClick to cast spells and the mouseover/click graphics work. 

v2.0

   1. Made Mobile: Minimap Buttons (zoomin, zoomout, mail, tracking, meetingstone)
          * [Shift-Drag to move around the Minimap. Shift-Rightclick to reset.] 

v1.93

   1. Fixed Bug where Cosmos Variables wouldn't save using slash commands 

v1.92

   1. Made Mobile: FramerateLabel 

v1.91

   1. Fixed Container Offset to work with PopNUI
   2. Stopped some exsessive Offset Flashing. 

v1.9

   1. Added Container and Regular Frame Side offset sliders so that you can adjust them not to overlap the Side Multibars. 

v1.83

   1. Made Mobile: QuestWatchFrame 

v1.82

   1. Added PopNUI and TransNUI Override toggling when anchors are visible. 

v1.81 (3/26/05)

   1. Fixed bags so that they aren't draggable when disabled. 

v1.8 (3/25/05)

   1. Major Bag overhaul. Now reset/unmoved bags act like normal until you click on the bar to drag them. No more default overlap.
   2. Fixes CONTAINER_OFFSET bug that caused bags to be unopenable.
   3. French Localization Upgrade. 

v1.7 (3/23/05)

   1. TOC updated to 1300.
   2. Added "Toggle Anchors" button to the cosmos button page.
   3. Made new blizzard MultiBars and MinimapCluster mobile using anchors
   4. Made Mobile: MultiBarBottomLeft, MultiBarBottomRight, MultiBarLeft, MultiBarRight, MinimapCluster, AuctionFrame, TalentFrame, PetFrame, MailFrame, OpenMailFrame
   5. (Known Issues: Mailbox sometimes doesn't update for a time after reset.)
   6. (Pet and Shapeshift bar automaticly reposition when you toggle anchors if you have moved the MultiBarBottomLeft much.) 

v1.61 (3/11/05)

   1. Added German Localization. 

v1.6 (3/9/05)

   1. Added Unit Frames!
   2. Made Mobile: PlayerFrame, TargetFrame, PartyMemberFrames
   3. Added Anchor for Unit Frame dragging. Use binding or "/mfanchors" to toggle visibility.
   4. Added Splash sound when you drop Unit Frame Anchors. Use "/mfsound" to toggle.
   5. Anchor moves to left of Unit Frame if toggled while off screen. 

v1.5 (3/7/05)

   1. Added Mobile Containers!
   2. Made Mobile: QuestFrame, GossipFrame, GuildRegistrarFrame, ItemTextFrame, TabardFrame, PetStableFrame, TradeFrame, Containers 

v1.41 (2/28/05)

   1. Fixed a '/mflist' bug and made it a little more useful for localized versions.
          * It now shows actual frame name used in reset and enable/disable along with a more readable version. 

v1.4 (2/21/05)

   1. Added more readable and localizable frame names in the cosmos config.
   2. Fixed a bug on frame reset involving a code typo.
   3. Added French and German Localization 

v1.3 (2/20/05)

   1. Fixed Massive frame lag issues/bugs when you moved some frames on top of eachother.
   2. Cleaned up some XML code. 

v1.2 (2/18/05)

   1. Addded a bunch of Cosmos Options as well as new slash commands. Reset, enable or disable all or individually. 

v1.11 (2/15/05)

   1. Fixed a bug that would cause wow to loop infinitely when you opened the guild or who tabs of the Friends Frame. 

v1.1 (2/14/05)

   1. Limited open windows using default 'pushable' status.
   2. Made Mobile: TradeFrame, MerchantFrame, ClassTrainerFrame, TradeSkillFrame, MacroFrame, InspectFrame, CraftFrame, BankFrame. 

v1.0 (2/9/05)

   1. Initial Release
   2. Created MobileBarTemplate for instantiation.
   3. Made Mobile: LootFrame, QuestLogFrame, FriendsFrame, CharacterFrame, SpellBookFrame. 
		
