Total-RP / Storyline

A World of Warcraft add-on that improves the questing experience by replacing the default dialog frame by a more immersive frame with 3D models.
https://www.curseforge.com/wow/addons/storyline
14 stars 6 forks source link

Missing chat bubble backdrop #60

Closed Solanya closed 4 years ago

Solanya commented 4 years ago

The BACKDROP_CHAT_BUBBLE_16_16 backdrop info was removed as Blizzard moved chat bubbles to NineSlice with uprezzed textures, meaning the current bubble background in Storyline is now missing. If you want to use the backdrop again, here is what was removed:

BACKDROP_CHAT_BUBBLE_16_16 = {
    bgFile = "Interface\\Tooltips\\ChatBubble-Background",
    edgeFile = "Interface\\Tooltips\\ChatBubble-Backdrop",
    tile = true,
    tileEdge = true,
    tileSize = 16,
    edgeSize = 16,
    insets = { left = 16, right = 16, top = 16, bottom = 16 },
};

Alternatively if you wanna use the new textures by switching to a NineSlice, that's the new ChatBubbleTemplate:

<Frame name="ChatBubbleTemplate" inherits="NineSlicePanelTemplate" virtual="true">
    <KeyValues>
        <KeyValue key="layoutType" value="ChatBubble" type="string"/>
        <KeyValue key="inset" value="16" type="number"/>
    </KeyValues>
    <Layers>
        <Layer level="ARTWORK">
            <FontString parentKey="String" inherits="ChatBubbleFont"/>
        </Layer>
        <Layer level="ARTWORK" textureSublevel="8">
            <Texture parentKey="Tail" atlas="ChatBubble-Tail" useAtlasSize="true"/>
        </Layer>
    </Layers>
    <Scripts>
        <OnLoad inherit="append">
            self.String:SetNonSpaceWrap(true);
            self:ClearAllPoints();
            self.String:ClearAllPoints();
            self:SetPoint("TOPLEFT", self.String, "TOPLEFT", -self.inset, self.inset);
            self:SetPoint("BOTTOMRIGHT", self.String, "BOTTOMRIGHT", self.inset, -self.inset);
        </OnLoad>
    </Scripts>
</Frame>
Ellypse commented 4 years ago

Thanks for the info, that must have been a late change.