view MainPage.xml @ 34:6ce173840e68

Reworked the whole "wow object" system: - Only save what is strictly necessary. - Save appropriate persistent information for all objects (like spellIDs instead of spellBook+spellIndex). - Fixed Battle Pets objects (non-combat pets in pre-MoP). - Fixed item objects. - Cleaned and simplified most objects implementation. - Moved the settings and button profile to the root of the saved data, rather than in a per-character sub-table (that data is already tagged as saved per character). This should fix most issues with objects changing without user interaction on diverse occasions. Old profiles are not converted to the new system. This will come soon. Some issues persist due to the asynchronous loading of some informations: - Pet icons are never properly loaded from saved data. - Items are not properly loaded the first time the UI is started (a "/reload ui" or disconnect/connect cycle fixes this problem).
author madcatzinc@35b17cf1-18cd-47ff-9ca3-31d6b526ef09
date Thu, 25 Apr 2013 01:31:31 +0000
parents 6cb9a2936580
children 67ad1101ee10
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="CyborgMMO_TemplateCallbackButton" virtual="true" inherits="CyborgMMO_TemplateIcon">
		<Scripts>
			<OnLoad>
				self = CyborgMMO_CallbackIcons.new(self)
			</OnLoad>
			<OnClick>
				self.OnClick()
			</OnClick>
			<OnDragStart>
				self.DragStart()
			</OnDragStart>
			<OnDragStop>
				self.DragStop()
			</OnDragStop>
		</Scripts>
	</Button>

	<!-- The Main Form -->
	<Frame name="CyborgMMO_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="$parentBackgroundTexture"
					   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="$parentRatCalloutsTexture"
					   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="$parentCharacterPage" inherits="CyborgMMO_TemplateCallbackButton" resize="false">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="379" y="-411" />
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentInventory" inherits="CyborgMMO_TemplateCallbackButton">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="379" y="-446" />
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentSpellbook" inherits="CyborgMMO_TemplateCallbackButton">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="414" y="-411" />
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentMacros" inherits="CyborgMMO_TemplateCallbackButton">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="449" y="-446" />
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentAchievement" inherits="CyborgMMO_TemplateCallbackButton">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="449" y="-411" />
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentQuestLog" inherits="CyborgMMO_TemplateCallbackButton">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="344" y="-446" />
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentMap" inherits="CyborgMMO_TemplateCallbackButton">
				<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>CyborgMMO_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="$parentSlotList" inherits="CyborgMMO_TemplateRatPage">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad>CyborgMMO_Loaded()</OnLoad>
			<OnEvent>CyborgMMO_Event(this, event, ...)</OnEvent>
		</Scripts>
	</Frame>
</Ui>