View Single Post
04-26-23, 11:08 AM   #3
AeroMaxxD
An Aku'mai Servant
Join Date: Dec 2022
Posts: 33
That works great thank you!

I added some comments, so I'd remember what does what in the future when I need to look at it again.

I do have a question if I wanted to add stuff to the new Frame from an xml file how would I do that.

The below sort of works in that it creates a new frame which is great, but it doesn't add to the tab on the character frame, instead it creates a standalone frame over the top of character pane, but slightly offset, this new frame does open when I click on my new tab.

Also for my new tab is it possible to change the icon that is in the top left corner of my new tab to something else?

Code:
<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/ http://wowprogramming.com/FrameXML/UI.xsd">
	<Frame name="OuterContent" parent="A_Test_Panel" frameStrata="HIGH" enableMouse="true" movable="true">
		<Size x="205" y="512"/>
		<Anchors>
			<Anchor point="CENTER" relativePoint="CENTER" relativeTo="A_Test_Panel"/>
		</Anchors>
		<Frames>
			<Frame name="InnerContent" parent="OuterContent">
				My character panel!
			</Frame>
			<Button name="Button1" inherits="UIPanelButtonTemplate" text="Button1">
				<Size x="109" y="22"/>
				<Anchors>
					<Anchor point="BOTTOMLEFT" x="-127" y="83"/>
				</Anchors>
			</Button>
			<Button name="Button2" inherits="UIPanelButtonTemplate" text="Button2">
				<Size x="100" y="22"/>
				<Anchors>
					<Anchor point="BOTTOMLEFT" x="95" y="83"/>
				</Anchors>
			</Button>
			<Button name="ButtonTab" inherits="PanelTopTabButtonTemplate" text="ButtonTab" id="1">
				<Anchors>
					<Anchor point="BOTTOMLEFT" x="98" y="440"/>
				</Anchors>
				<ButtonText parentKey="Text">
					<Size x="0" y="10"/>
					<Anchors>
						<Anchor point="CENTER" x="0" y="-8"/>
					</Anchors>
				</ButtonText>
			</Button>
		</Frames>
		<Layers>
			<Layer level="BORDER">
				<Texture file="Interface\LFGFRAME\UI-FRAME-THREEBUTTON-BLANK">
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="BACKGROUND">
				<Texture name="$parent_Portrait" parentKey="portrait" file="Interface\ICONS\INV_Misc_Book_12">
					<Size x="65" y="65"/>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset x="-144" y="-4"/>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<FontString name="$parent_Title" parentKey="title" inherits="GameFontNormal" text="MyNewTab">
					<Anchors>
						<Anchor point="TOP">
							<Offset x="-60" y="-18"/>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
	</Frame>
</Ui>

Last edited by AeroMaxxD : 04-26-23 at 11:10 AM.
  Reply With Quote