Thread Tools Display Modes
01-16-11, 09:10 AM   #1
Syliha
A Flamescale Wyrmkin
 
Syliha's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 104
DBM Icon Border Change

Hey,

i was inspired by this thread:
http://forums.wowace.com/showthread.php?t=16379&page=1

I've worked on dbm and am nearly finished now, but i want to look the border of the icons like this:



I've come this far:



The Problem is that i'm ot able to make the texture "thicker" so it covers all of the icons normal "blizzard" Border cause I'm not a good one in photoshopping things
The second thing is that maybe the "level" of the texture is to low so it does not cover the icons border cause it's simply "behind" it.

The Code of my work:

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/
..\FrameXML\UI.xsd">
    <Frame name="DBTBarTemplate" virtual="true" frameStrata="MEDIUM" topLevel="true">
        <Size>
            <AbsDimension x="195" y="10"/>
        </Size>
        <Frames>
            <StatusBar name="$parentBar">
                <Size>
                    <AbsDimension x="195" y="6"/>
                </Size>
                <Anchors>
                    <Anchor point="BOTTOM" relativePoint="BOTTOM">
                        <Offset>
                            <AbsDimension x="0" y="0"/>
                        </Offset>
                    </Anchor>
                </Anchors>

                <Layers>

                    <Layer level="BACKGROUND">
                        <Texture name="$parentBackground">
                            <Color r="0" g="0" b="0" a="0.7"/>


                        <Anchors>
                            <Anchor point="CENTER" relativePoint="CENTER">
                                <Offset>
                                    <AbsDimension x="0" y="0"/>
                                </Offset>
                                </Anchor>
                                 <Anchor point="LEFT" relativePoint="LEFT">
                                       <Offset><AbsDimension x="-1" y="0"/></Offset>
                                 </Anchor>
                                 <Anchor point="RIGHT" relativePoint="RIGHT">
                                       <Offset><AbsDimension x="1" y="0"/></Offset>
                                  </Anchor>
                                 <Anchor point="TOP" relativePoint="TOP">
                                       <Offset><AbsDimension x="0" y="1"/></Offset>
                                  </Anchor>
                                 <Anchor point="BOTTOM" relativePoint="BOTTOM">
                                       <Offset><AbsDimension x="0" y="-1"/></Offset>
                                  </Anchor>
                        </Anchors>
                        </Texture>
                    </Layer><Layer level="OVERLAY">
                    <Texture name="Border" file="Interface\AddOns\DBM-Core\textures\frameborder" level="TOP">
                            <Size>
                                <AbsDimension x="23" y="22"/>
                            </Size>
                            <Color r="0" g="0" b="0" a="1"/>
                            <Anchors>
                                <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT">
                                    <Offset>
                                        <AbsDimension x="-2" y="-1"/>
                                    </Offset>
                                </Anchor>
                            </Anchors>
                        </Texture>
  </Layer>
                    <Layer level="OVERLAY">
                        <Texture name="$parentSpark" file="Interface\AddOns\DBM-Core\textures\Spark.blp" alphaMode="ADD">
                            <Size>
                                <AbsDimension x="0" y="0"/>
                            </Size>
                            <Anchors>
                                <Anchor point="CENTER">
                                    <Offset>
                                        <AbsDimension x="0" y="0"/>
                                    </Offset>
                                </Anchor>
                            </Anchors>
                        </Texture>
                        <FontString name="$parentName" inherits="GameFontHighlightSmall" text="">
                            <Anchors>
                                <Anchor point="LEFT" relativePoint="LEFT">
                                    <Offset>
                                        <AbsDimension x="1" y="10"/>
                                    </Offset>
                                </Anchor>
                            </Anchors>
                        </FontString>
                        <FontString name="$parentTimer" inherits="GameFontHighlightSmall" text="">
                            <Anchors>
                                <Anchor point="RIGHT" relativePoint="RIGHT">
                                    <Offset>
                                        <AbsDimension x="-1" y="10"/>
                                    </Offset>
                                </Anchor>
                            </Anchors>
                        </FontString>
                        <Texture name="$parentIcon1">
                            <Size>
                                <AbsDimension x="20" y="20"/>
                            </Size>
                            <Anchors>
                                <Anchor point="RIGHT" relativePoint="LEFT">
                                    <Offset>
                                        <AbsDimension x="-4" y="7"/>
                                    </Offset>
                                </Anchor>
                            </Anchors>
                        </Texture>
                        <Texture name="$parentIcon2">
                            <Size>
                                <AbsDimension x="20" y="20"/>
                            </Size>
                            <Anchors>
                                <Anchor point="LEFT" relativePoint="RIGHT">
                                    <Offset>
                                        <AbsDimension x="-4" y="7"/>
                                    </Offset>
                                </Anchor>
                            </Anchors>
                        </Texture>
                    </Layer>
                </Layers>


                <BarTexture name="$parentTexture" file="Interface\AddOns\DBM-Core\textures\default.tga"/>
                <BarColor r="1.0" g="0.7" b="0.0"/>
                <Scripts>
                    <OnLoad function="DBT_Bar_OnLoad"/>
                </Scripts>
            </StatusBar>
        </Frames>
        <Scripts>
            <OnUpdate function="DBT_Bar_OnUpdate"/>
            <OnMouseDown function="DBT_Bar_OnMouseDown"/>
            <OnMouseUp function="DBT_Bar_OnMouseUp"/>
            <OnHide function="DBT_Bar_OnHide"/>
        </Scripts>
    </Frame>
</Ui>
If you want to use the code, please give credits:
http://www.wowinterface.com/download...I19201080.html

The Bordertexture:
http://hotfile.com/dl/97226057/1b52e...order.tga.html

I would really appreciate your help
Thanks very much!
__________________
Balance is, when everyone is unhappy.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » DBM Icon Border Change


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off