view MainPage.xml @ 1:a4e2eaf9cad9

Initial Fixes for ticket 1: Added a menu to the interface options page to allow the syncing of the addon to the mouse profile. This should resolve i8n issues
author madcatzinc@35b17cf1-18cd-47ff-9ca3-31d6b526ef09
date Wed, 23 May 2012 08:26:07 +0000
parents bf9220814fb5
children d186f8cd5000
line wrap: on
line source
<Ui xmlns="http://www.blizzard.com/wow/ui" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<!--
	Warcraft Plugin for Cyborg MMO7 
	Filename: MainPage.xml
	Description: Xml description of the MMO7 UI
	Copyright (C) 2012 Mad Catz Inc.
	Author: Christopher Hooks

	This program is free software; you can redistribute it and/or
	modify it under the terms of the GNU General Public License
	as published by the Free Software Foundation; either version 2
	of the License, or (at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program; if not, write to the Free Software
	Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA. 
	-->
	
	<!-- UIButtonsTemplate-->
	<Button name="WowCallbackButtonsTemplate" virtual="true" inherits="IconTemplate">
		<Scripts>
			<OnLoad>
				self = CallbackIcons.new(self);
			</OnLoad>
			<OnClick>
				self.OnClick();
			</OnClick>
			<OnDragStart>
				self.DragStart();
			</OnDragStart>
			<OnDragStop>
				self.DragStop();
			</OnDragStop>
		</Scripts>
	</Button>

	<!-- The Main Form -->
	<Frame name="MainPage" movable="true" enableMouse="true" clampedtoscreen="true" frameStrata="MEDIUM">
		<TitleRegion>
			<Size x="512" y="512"/>
			<Anchors>
				<Anchor point="LEFT">
					<Offset>
					  <AbsDimension x="0"
									y="0" />
					</Offset>
				</Anchor>
			</Anchors>
		</TitleRegion>
		<Size>
			<AbsDimension x="512" y="512" />
		</Size>
		<Anchors>
			<Anchor point="LEFT" relativeTo="UIParent">
				<Offset>
					<AbsDimension x="0" y="0" />
				</Offset>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
			<Texture name="BackgroundTexture"
					   file="Interface\AddOns\CyborgMMO7\Graphics\ParchmentAndAllIcons.tga" >
				<Size>
				  <AbsDimension x="512"
								y="512" />
				</Size>
				<Anchors>
				  <Anchor point="TOPLEFT">
					<Offset>
					  <AbsDimension x="0"
									y="0" />
					</Offset>
				  </Anchor>
				</Anchors>
			  </Texture>
			</Layer>
			<Layer level="ARTWORK">
			<Texture name="RatCalloutsTexture"
					   file="Interface\AddOns\CyborgMMO7\Graphics\Lines.tga" >

				<Size>
				  <AbsDimension x="512"
								y="512" />
				</Size>
				<Anchors>
				  <Anchor point="TOPLEFT">
					<Offset>
					  <AbsDimension x="0"
									y="0" />
					</Offset>
				  </Anchor>
				</Anchors>
			  </Texture>
			</Layer>
		</Layers>
		<Frames>
			<Button name="CharacterPage" inherits="WowCallbackButtonsTemplate" resize="false">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="379" y="-411" />
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="Inventory" inherits="WowCallbackButtonsTemplate">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="379" y="-446" />
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="Spellbook" inherits="WowCallbackButtonsTemplate">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="414" y="-411" />
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="Macros" inherits="WowCallbackButtonsTemplate">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="449" y="-446" />
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="Achievement" inherits="WowCallbackButtonsTemplate">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="449" y="-411" />
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="QuestLog" inherits="WowCallbackButtonsTemplate">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="344" y="-446" />
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="Map" inherits="WowCallbackButtonsTemplate">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="414" y="-446" />
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentCloseButton">
				<Size>
					<AbsDimension x="23" y="24" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="474" y="-8" />
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>Close()</OnClick>
				</Scripts>
				<NormalTexture file="Interface\AddOns\CyborgMMO7\Graphics\CloseButton.tga"/>
				<PushedTexture file="Interface\AddOns\CyborgMMO7\Graphics\CloseButtonDown.tga"/>
				<HighlightTexture file="Interface\AddOns\CyborgMMO7\Graphics\CloseButtonOver.tga" alpha=".5"/>
			</Button>
			<Frame name="defaultPage" inherits="RatPageTemplate">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad>Loaded();</OnLoad>
			<OnEvent>Event(this, event,...);</OnEvent>
		</Scripts>
	</Frame>
</Ui>