View Single Post
06-22-10, 10:35 AM   #9
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,927
Grr Looked cool for a moment until it decided not to work rofl.. Maybe they haven't completely made the DockManager facility open to developers yet rofl.

Code:
	<Frame name="DockManagerTemplate" frameStrata="LOW" virtual="true" parent="UIParent">
		<Size x="0" y="26"/>
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="$parentInsertHighlight" file="Interface\ChatFrame\UI-ChatFrame-DockHighlight" alphaMode="ADD" parentKey="insertHighlight">
					<Size x="32" y="32"/>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<Button name="$parentOverflowButton" parentKey="overflowButton" alpha="0.6">
				<Size x="16" y="16"/>
				<Anchors>
					<Anchor point="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="0" y="-5"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Frames>
					<Frame name="$parentList" inherits="DockManagerOverflowListTemplate" parentKey="list">
						<Anchors>
							<Anchor point="LEFT" relativePoint="RIGHT"/>
						</Anchors>
					</Frame>
				</Frames>
				<Scripts>
					<OnLoad>
						self.width = self:GetWidth();
						self:RegisterEvent("UPDATE_CHAT_COLOR");
					</OnLoad>
					<OnEvent>
						FCFDockOverflowButton_OnEvent(self, event, ...);
					</OnEvent>
					<OnEnter>
						GameTooltip_AddNewbieTip(self, CHAT_OVERFLOW_LABEL, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_CHAT_OVERFLOW, 1);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
					<OnClick>
						FCFDockOverflowButton_OnClick(self, button);
					</OnClick>
				</Scripts>
				<NormalTexture file="Interface\ChatFrame\chat-tab-arrow"/>
				<HighlightTexture file="Interface\ChatFrame\chat-tab-arrow-on" alphaMode="ADD"/>
			</Button>
			<ScrollFrame name="$parentScrollFrame" parentKey="scrollFrame">
				<Size x="0" y="31"/>
				<Anchors>
					<Anchor point="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="0" y="-5"/>
						</Offset>
					</Anchor>
				</Anchors>
				<ScrollChild>
					<Frame name="$parentChild" parentKey="child">
						<Size x="1" y="26"/>
						<Anchors>
							<Anchor point="LEFT"/>
						</Anchors>
					</Frame>
					<!--Frames will be dynamically added to the ScrollChild for now-->
				</ScrollChild>
			</ScrollFrame>
		</Frames>
		<Scripts>
			<OnLoad function="FCFDock_OnLoad"/>
			<OnEvent>
				FCFDock_OnEvent(self, event, ...);
			</OnEvent>
		</Scripts>
	</Frame>
Create a frame based on this template and none of the child frames exist and the GENERAL_CHAT_FRAME doesn't seem to do anything with it either rofl. So nothing to guide me by.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818