Quantcast WoWInterface - View Single Post - LF Mod to move chat tabs below chatframe.
View Single Post
07-09-11, 11:24 PM   #11
Othgar
"That" Guy
 
Othgar's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2010
Posts: 228
ok lets try this lol I did some more digging around and finally I think I found something in FloatingChatFrame.xml

Releveant section: lines 742-805

Code:
<Layers>
            <Layer level="BACKGROUND">
                <Texture name="$parentLeft" file="Interface\ChatFrame\ChatFrameTab-BGLeft" parentKey="leftTexture">
                    <Size>
                        <AbsDimension x="16" y="32"/>
                    </Size>
                    <Anchors>
                        <Anchor point="TOPLEFT"/>
                    </Anchors>
                </Texture>
                <Texture name="$parentMiddle" file="Interface\ChatFrame\ChatFrameTab-BGMid" horizTile="true" parentKey="middleTexture">
                    <Size>
                        <AbsDimension x="44" y="32"/>
                    </Size>
                    <Anchors>
                        <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
                    </Anchors>
                </Texture>
                <Texture name="$parentRight" file="Interface\ChatFrame\ChatFrameTab-BGRight" parentKey="rightTexture">
                    <Size>
                        <AbsDimension x="16" y="32"/>
                    </Size>
                    <Anchors>
                        <Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
                    </Anchors>
                </Texture>
            </Layer>
            <Layer level="BORDER">
                <Texture name="$parentSelectedLeft" file="Interface\ChatFrame\ChatFrameTab-SelectedLeft" alphaMode="ADD" parentKey="leftSelectedTexture">
                    <Size>
                        <AbsDimension x="16" y="32"/>
                    </Size>
                    <Anchors>
                        <Anchor point="TOPLEFT" relativeTo="$parentLeft" relativePoint="TOPLEFT"/>
                        <Anchor point="BOTTOMRIGHT" relativeTo="$parentLeft" relativePoint="BOTTOMRIGHT"/>
                    </Anchors>
                </Texture>
                <Texture name="$parentSelectedMiddle" file="Interface\ChatFrame\ChatFrameTab-SelectedMid" horizTile="true" alphaMode="ADD" parentKey="middleSelectedTexture">
                    <Size>
                        <AbsDimension x="44" y="32"/>
                    </Size>
                    <Anchors>
                        <Anchor point="TOPLEFT" relativeTo="$parentMiddle" relativePoint="TOPLEFT"/>
                        <Anchor point="BOTTOMRIGHT" relativeTo="$parentMiddle" relativePoint="BOTTOMRIGHT"/>
                    </Anchors>
                </Texture>
                <Texture name="$parentSelectedRight" file="Interface\ChatFrame\ChatFrameTab-SelectedRight" alphaMode="ADD" parentKey="rightSelectedTexture">
                    <Size>
                        <AbsDimension x="16" y="32"/>
                    </Size>
                    <Anchors>
                        <Anchor point="TOPLEFT" relativeTo="$parentRight" relativePoint="TOPLEFT"/>
                        <Anchor point="BOTTOMRIGHT" relativeTo="$parentRight" relativePoint="BOTTOMRIGHT"/>
                    </Anchors>
                </Texture>
                <Texture name="$parentGlow" file="Interface\ChatFrame\ChatFrameTab-NewMessage" parentKey="glow" alphaMode="ADD" hidden="true">
                    <Anchors>
                        <Anchor point="BOTTOMLEFT" x="8"/>
                        <Anchor point="BOTTOMRIGHT" x="-8"/>
                    </Anchors>
                </Texture>
            </Layer>
            <Layer level="HIGHLIGHT">
                <Texture name="$parentHighlightLeft" file="Interface\ChatFrame\ChatFrameTab-HighlightLeft" alphaMode="ADD" parentKey="leftHighlightTexture">
                    <Size>
                        <AbsDimension x="16" y="32"/>
                    </Size>
                    <Anchors>
                        <Anchor point="TOPLEFT" relativeTo="$parentLeft" relativePoint="TOPLEFT"/>
                        <Anchor point="BOTTOMRIGHT" relativeTo="$parentLeft" relativePoint="BOTTOMRIGHT"/>
                    </Anchors>
                </Texture>
                <Texture name="$parentHighlightMiddle" file="Interface\ChatFrame\ChatFrameTab-HighlightMid" horizTile="true" alphaMode="ADD" parentKey="middleHighlightTexture">
                    <Size>
                        <AbsDimension x="44" y="32"/>
                    </Size>
                    <Anchors>
                        <Anchor point="TOPLEFT" relativeTo="$parentMiddle" relativePoint="TOPLEFT"/>
                        <Anchor point="BOTTOMRIGHT" relativeTo="$parentMiddle" relativePoint="BOTTOMRIGHT"/>
                    </Anchors>
                </Texture>
                <Texture name="$parentHighlightRight" file="Interface\ChatFrame\ChatFrameTab-HighlightRight" alphaMode="ADD" parentKey="rightHighlightTexture">
                    <Size>
                        <AbsDimension x="16" y="32"/>
                    </Size>
                    <Anchors>
                        <Anchor point="TOPLEFT" relativeTo="$parentRight" relativePoint="TOPLEFT"/>
                        <Anchor point="BOTTOMRIGHT" relativeTo="$parentRight" relativePoint="BOTTOMRIGHT"/>
                    </Anchors>
                </Texture>
            </Layer>
        </Layers>
And Also: 869-902

Code:
<!-- Main chat window -->
    <Button name="ChatFrame1Tab" inherits="ChatTabTemplate" id="1"/>
    <ScrollingMessageFrame name="ChatFrame1" hidden="false" inherits="FloatingChatFrameTemplate" id="1">
        <Size>
            <AbsDimension x="430" y="120"/>
        </Size>
        <Anchors>
            <Anchor point="BOTTOMLEFT">
                <Offset>
                    <AbsDimension x="32" y="95"/>
                </Offset>
            </Anchor>
        </Anchors>
        <Scripts>
            <OnLoad>
                tinsert(CHAT_FRAMES, self:GetName());
                ChatFrame_OnLoad(self);
                DEFAULT_CHAT_FRAME = ChatFrame1;
                SELECTED_CHAT_FRAME = ChatFrame1;
                SELECTED_DOCK_FRAME = ChatFrame1;
                 
                self.isStaticDocked = true;
                FCFDock_SetPrimary(GENERAL_CHAT_DOCK, self);
                ChatEdit_SetLastActiveWindow(self.editBox);
                 
                self:SetClampRectInsets(-35, 35, 38, -50);
                self:RegisterEvent("UPDATE_CHAT_WINDOWS");
                self:RegisterEvent("UPDATE_FLOATING_CHAT_WINDOWS");
            </OnLoad>
            <OnEvent>
                ChatFrame_OnEvent(self, event, ...);
                FloatingChatFrame_OnEvent(self, event, ...);
            </OnEvent>
        </Scripts>
I just added the FloatingChatFrame.lua and .xml files into a very generic addon and played with the anchor points in the first code section above and had a little succes...
__________________



Last edited by Othgar : 07-09-11 at 11:38 PM.
  Reply With Quote