Mercurial > wow > cyborg-mmo7
view RatPage.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 | f02cf040133c |
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: RatPage.xml Description: Layout and description of the command slots for the mouse. 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. --> <!-- IconTemplate--> <Button name="CyborgMMO_TemplateIcon" virtual="true" inherits="SecureActionButtonTemplate"> <Size> <AbsDimension x="32" y="32"/> </Size> <Layers> <Layer level="OVERLAY"> <Texture name="$parentIcon"/> </Layer> <Layer level="ARTWORK"> <FontString name="$parentHotKey" inherits="NumberFontNormalSmallGray" justifyH="RIGHT"> <Size> <AbsDimension x="32" y="10"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="-2" y="-2"/> </Offset> </Anchor> </Anchors> </FontString> </Layer> </Layers> <PushedTexture file="Interface\Buttons\UI-Quickslot-Depress"/> <HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/> </Button> <Button name="CyborgMMO_TemplateSlot" inherits="CyborgMMO_TemplateIcon" virtual="true"> <Scripts> <OnLoad> self = CyborgMMO_SlotView.new(self) </OnLoad> <OnMouseDown> if button == "LeftButton" then self.Clicked() end </OnMouseDown> </Scripts> </Button> <Button name="CyborgMMO_TemplateMode" virtual="true"> <Size> <AbsDimension x="127" y="63" /> </Size> <ButtonText name="$parentText"> <FontHeight> <AbsValue val="10" /> </FontHeight> </ButtonText> <NormalFont style="GameFontNormal" /> <HighlightFont style="GameFontHighlight" /> <DisabledFont style="GameFontDisable" /> <Scripts> <OnLoad> self = CyborgMMO_ModeView.new(self) </OnLoad> <OnClick> self.Clicked() </OnClick> </Scripts> </Button> <!-- The Rat Page Frame --> <Frame name="CyborgMMO_TemplateRatPage" virtual="true"> <Size> <AbsDimension x="512" y="512"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="0" y="-0"/> </Offset> </Anchor> </Anchors> <!-- Our Slot Locations --> <Frames> <CheckButton name="$parentSlot1" inherits="CyborgMMO_TemplateSlot" id="1"> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="68" y="-116" /> </Offset> </Anchor> </Anchors> <Layers> <Layer level="ARTWORK"> <Texture name="$parentText" file="Interface\AddOns\CyborgMMO7\Graphics\Slot.tga"> <Size> <AbsDimension x="33" y="33"/> </Size> <Anchors> <Anchor point="CENTER"> <Offset> <AbsDimension x="0" y="0"/> </Offset> </Anchor> </Anchors> </Texture> </Layer> </Layers> </CheckButton> <CheckButton name="$parentSlot2" inherits="CyborgMMO_TemplateSlot" id="2"> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="68" y="-153"/> </Offset> </Anchor> </Anchors> <Layers> <Layer level="ARTWORK"> <Texture name="$parentText" file="Interface\AddOns\CyborgMMO7\Graphics\Slot.tga"> <Size> <AbsDimension x="33" y="33"/> </Size> <Anchors> <Anchor point="CENTER"> <Offset> <AbsDimension x="0" y="0"/> </Offset> </Anchor> </Anchors> </Texture> </Layer> </Layers> </CheckButton> <CheckButton name="$parentSlot3" inherits="CyborgMMO_TemplateSlot" id="3"> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="68" y="-189" /> </Offset> </Anchor> </Anchors> <Layers> <Layer level="ARTWORK"> <Texture name="$parentText" file="Interface\AddOns\CyborgMMO7\Graphics\Slot.tga"> <Size> <AbsDimension x="33" y="33"/> </Size> <Anchors> <Anchor point="CENTER"> <Offset> <AbsDimension x="0" y="0"/> </Offset> </Anchor> </Anchors> </Texture> </Layer> </Layers> </CheckButton> <CheckButton name="$parentSlot4" inherits="CyborgMMO_TemplateSlot" id="4"> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="68" y="-238" /> </Offset> </Anchor> </Anchors> <Layers> <Layer level="ARTWORK"> <Texture name="$parentText" file="Interface\AddOns\CyborgMMO7\Graphics\SlotUp.tga"> <Size> <AbsDimension x="33" y="33"/> </Size> <Anchors> <Anchor point="CENTER"> <Offset> <AbsDimension x="0" y="0"/> </Offset> </Anchor> </Anchors> </Texture> </Layer> </Layers> </CheckButton> <CheckButton name="$parentSlot5" inherits="CyborgMMO_TemplateSlot" id="5"> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="68" y="-273" /> </Offset> </Anchor> </Anchors> <Layers> <Layer level="ARTWORK"> <Texture name="$parentText" file="Interface\AddOns\CyborgMMO7\Graphics\SlotMiddle.tga"> <Size> <AbsDimension x="33" y="33"/> </Size> <Anchors> <Anchor point="CENTER"> <Offset> <AbsDimension x="0" y="0"/> </Offset> </Anchor> </Anchors> </Texture> </Layer> </Layers> </CheckButton> <CheckButton name="$parentSlot6" inherits="CyborgMMO_TemplateSlot" id="6"> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="68" y="-308" /> </Offset> </Anchor> </Anchors> <Layers> <Layer level="ARTWORK"> <Texture name="$parentText" file="Interface\AddOns\CyborgMMO7\Graphics\SlotDown.tga"> <Size> <AbsDimension x="33" y="33"/> </Size> <Anchors> <Anchor point="CENTER"> <Offset> <AbsDimension x="0" y="0"/> </Offset> </Anchor> </Anchors> </Texture> </Layer> </Layers> </CheckButton> <CheckButton name="$parentSlot7" inherits="CyborgMMO_TemplateSlot" id="7"> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="33" y="-273"/> </Offset> </Anchor> </Anchors> <Layers> <Layer level="ARTWORK"> <Texture name="$parentText" file="Interface\AddOns\CyborgMMO7\Graphics\SlotLeft.tga"> <Size> <AbsDimension x="33" y="33"/> </Size> <Anchors> <Anchor point="CENTER"> <Offset> <AbsDimension x="0" y="0"/> </Offset> </Anchor> </Anchors> </Texture> </Layer> </Layers> </CheckButton> <CheckButton name="$parentSlot8" inherits="CyborgMMO_TemplateSlot" id="8"> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="103" y="-273"/> </Offset> </Anchor> </Anchors> <Layers> <Layer level="ARTWORK"> <Texture name="$parentText" file="Interface\AddOns\CyborgMMO7\Graphics\SlotRight.tga"> <Size> <AbsDimension x="33" y="33"/> </Size> <Anchors> <Anchor point="CENTER"> <Offset> <AbsDimension x="0" y="0"/> </Offset> </Anchor> </Anchors> </Texture> </Layer> </Layers> </CheckButton> <CheckButton name="$parentSlot9" inherits="CyborgMMO_TemplateSlot" id="9"> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="68" y="-356"/> </Offset> </Anchor> </Anchors> <Layers> <Layer level="ARTWORK"> <Texture name="$parentText" file="Interface\AddOns\CyborgMMO7\Graphics\Slot.tga"> <Size> <AbsDimension x="33" y="33"/> </Size> <Anchors> <Anchor point="CENTER"> <Offset> <AbsDimension x="0" y="0"/> </Offset> </Anchor> </Anchors> </Texture> </Layer> </Layers> </CheckButton> <CheckButton name="$parentSlot10" inherits="CyborgMMO_TemplateSlot" id="10"> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="68" y="-393"/> </Offset> </Anchor> </Anchors> <Layers> <Layer level="ARTWORK"> <Texture name="$parentText" file="Interface\AddOns\CyborgMMO7\Graphics\Slot.tga"> <Size> <AbsDimension x="33" y="33"/> </Size> <Anchors> <Anchor point="CENTER"> <Offset> <AbsDimension x="0" y="0"/> </Offset> </Anchor> </Anchors> </Texture> </Layer> </Layers> </CheckButton> <CheckButton name="$parentSlot11" inherits="CyborgMMO_TemplateSlot" id="11"> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="68" y="-429"/> </Offset> </Anchor> </Anchors> <Layers> <Layer level="ARTWORK"> <Texture name="$parentText" file="Interface\AddOns\CyborgMMO7\Graphics\Slot.tga"> <Size> <AbsDimension x="33" y="33"/> </Size> <Anchors> <Anchor point="CENTER"> <Offset> <AbsDimension x="0" y="0"/> </Offset> </Anchor> </Anchors> </Texture> </Layer> </Layers> </CheckButton> <CheckButton name="$parentSlot12" inherits="CyborgMMO_TemplateSlot" id="12"> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="50" y="-68"/> </Offset> </Anchor> </Anchors> <Layers> <Layer level="ARTWORK"> <Texture name="$parentText" file="Interface\AddOns\CyborgMMO7\Graphics\SlotLeft.tga"> <Size> <AbsDimension x="33" y="33"/> </Size> <Anchors> <Anchor point="CENTER"> <Offset> <AbsDimension x="0" y="0"/> </Offset> </Anchor> </Anchors> </Texture> </Layer> </Layers> </CheckButton> <CheckButton name="$parentSlot13" inherits="CyborgMMO_TemplateSlot" id="13"> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="86" y="-68" /> </Offset> </Anchor> </Anchors> <Layers> <Layer level="ARTWORK"> <Texture name="$parentText" file="Interface\AddOns\CyborgMMO7\Graphics\SlotRight.tga"> <Size> <AbsDimension x="33" y="33"/> </Size> <Anchors> <Anchor point="CENTER"> <Offset> <AbsDimension x="0" y="0"/> </Offset> </Anchor> </Anchors> </Texture> </Layer> </Layers> </CheckButton> <Button name="Mode1" inherits="CyborgMMO_TemplateMode" id="1"> <NormalTexture file="Interface\AddOns\CyborgMMO7\Graphics\Mode1Down.tga" > </NormalTexture> <PushedTexture file="Interface\AddOns\CyborgMMO7\Graphics\Mode1Selected.tga"> </PushedTexture> <HighlightTexture file="Interface\AddOns\CyborgMMO7\Graphics\Mode1Over.tga"> </HighlightTexture> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="384" y="-33" /> </Offset> </Anchor> </Anchors> </Button> <Button name="Mode2" inherits="CyborgMMO_TemplateMode" id="2"> <NormalTexture file="Interface\AddOns\CyborgMMO7\Graphics\Mode2Down.tga" > </NormalTexture> <PushedTexture file="Interface\AddOns\CyborgMMO7\Graphics\Mode2Selected.tga"> </PushedTexture> <HighlightTexture file="Interface\AddOns\CyborgMMO7\Graphics\Mode2Over.tga"> </HighlightTexture> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="384" y="-33" /> </Offset> </Anchor> </Anchors> </Button> <Button name="Mode3" inherits="CyborgMMO_TemplateMode" id="3"> <NormalTexture file="Interface\AddOns\CyborgMMO7\Graphics\Mode3Down.tga" > </NormalTexture> <PushedTexture file="Interface\AddOns\CyborgMMO7\Graphics\Mode3Selected.tga"> </PushedTexture> <HighlightTexture file="Interface\AddOns\CyborgMMO7\Graphics\Mode3Over.tga"> </HighlightTexture> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="384" y="-33" /> </Offset> </Anchor> </Anchors> </Button> </Frames> <Scripts> <OnLoad> self = CyborgMMO_RatPageView.new(self) </OnLoad> </Scripts> </Frame> </Ui>