WoW:XML/EditBox: Difference between revisions

Reduce indent size in code example
(Created page with 'Derived from: Frame Elements: FontString, HighlightColor, TextInsets Attributes: letters, blinkSpeed,…')
 
(Reduce indent size in code example)
Line 31: Line 31:
====Example====
====Example====
Included in [[XML/Frame/Backdrop|Backdrop]]
Included in [[XML/Frame/Backdrop|Backdrop]]
  <EditBox name="$parentEditBox" letters="80">
  <EditBox name="$parentEditBox" letters="80">
<Size>
    <Size>
<AbsDimension x="100" y="32"></AbsDimension>
        <AbsDimension x="100" y="32"></AbsDimension>
</Size>
    </Size>
<Anchors>
    <Anchors>
<Anchor point="LEFT">
        <Anchor point="LEFT">
<Offset>
            <Offset>
<AbsDimension x="50" y="0"></AbsDimension>
                <AbsDimension x="50" y="0"></AbsDimension>
</Offset>
            </Offset>
</Anchor>
        </Anchor>
</Anchors>
    </Anchors>
<Layers>
    <Layers>
<Layer level="BACKGROUND">
        <Layer level="BACKGROUND">
<Texture file="Interface\ChatFrame\UI-ChatInputBorder-Left">
            <Texture file="Interface\ChatFrame\UI-ChatInputBorder-Left">
<Size>
                <Size>
<AbsDimension x="75" y="32"></AbsDimension>
                    <AbsDimension x="75" y="32"/>
</Size>
                </Size>
<Anchors>
                <Anchors>
<Anchor point="LEFT">
                    <Anchor point="LEFT">
<Offset>
                        <Offset>
<AbsDimension x="-10" y="0"></AbsDimension>
                            <AbsDimension x="-10" y="0"/>
</Offset>
                        </Offset>
</Anchor>
                    </Anchor>
</Anchors>
                </Anchors>
<TexCoords left="0" right="0.2" top="0" bottom="1.0"></TexCoords>
                <TexCoords left="0" right="0.2" top="0" bottom="1.0"/>
</Texture>
            </Texture>
<Texture file="Interface\ChatFrame\UI-ChatInputBorder-Right">
            <Texture file="Interface\ChatFrame\UI-ChatInputBorder-Right">
<Size>
                <Size>
<AbsDimension x="75" y="32"></AbsDimension>
                    <AbsDimension x="75" y="32"/>
</Size>
                </Size>
<Anchors>
                <Anchors>
<Anchor point="RIGHT">
                    <Anchor point="RIGHT">
<Offset>
                        <Offset>
<AbsDimension x="10" y="0"></AbsDimension>
                            <AbsDimension x="10" y="0"/>
</Offset>
                        </Offset>
</Anchor>
                    </Anchor>
</Anchors>
                </Anchors>
<TexCoords left="0.7" right="1.0" top="0" bottom="1.0"></TexCoords>
                <TexCoords left="0.7" right="1.0" top="0" bottom="1.0"/>
</Texture>
            </Texture>
</Layer>
        </Layer>
</Layers>
    </Layers>
<Scripts>
    <Scripts>
<OnLoad></OnLoad>
        <OnLoad></OnLoad>
</Scripts>
    </Scripts>
<FontString inherits="ChatFontNormal"></FontString>
    <FontString inherits="ChatFontNormal"></FontString>
  </EditBox>
  </EditBox>


[[Image:Editbox.jpg]]
[[Image:Editbox.jpg]]
[[Category:XML elements]]
[[Category:XML elements]]
Anonymous user