This commit is contained in:
Manuel Simon Hirsig
2017-11-09 00:20:35 +01:00
parent 660af8d2f1
commit 0722b631ba
4 changed files with 127 additions and 130 deletions
+44 -44
View File
@@ -1,17 +1,17 @@
<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/
C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
<Script file="postal.lua"/>
<Script file="mail.lua"/>
<Button name="postalAutoCompleteButtonTemplate" virtual="true">
<Button name="mailAutoCompleteButtonTemplate" virtual="true">
<Size>
<AbsDimension x="120" y="14"/>
</Size>
<Scripts>
<OnClick>
postal.SelectMatch(this:GetID())
mail.SelectMatch(this:GetID())
</OnClick>
<OnTabPressed>
postal.NextMatch()
mail.NextMatch()
</OnTabPressed>
</Scripts>
<NormalFont inherits="GameFontNormal"/>
@@ -19,7 +19,7 @@ C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
<DisabledFont inherits="GameFontDisable"/>
<HighlightTexture inherits="UIPanelButtonHighlightTexture"/>
</Button>
<Frame name="postalAutoCompleteBox" parent="SendMailNameEditBox" frameStrata="DIALOG" hidden="true">
<Frame name="mailAutoCompleteBox" parent="SendMailNameEditBox" frameStrata="DIALOG" hidden="true">
<Size>
<AbsDimension x="5" y="5"/>
</Size>
@@ -39,7 +39,7 @@ C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
</Backdrop>
<Layers>
<Layer level="ARTWORK">
<FontString name="postalAutoCompleteInstructions" inherits="GameFontDisableSmall">
<FontString name="mailAutoCompleteInstructions" inherits="GameFontDisableSmall">
<Anchors>
<Anchor point="BOTTOMLEFT">
<Offset>
@@ -51,49 +51,49 @@ C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
</Layer>
</Layers>
<Frames>
<Button name="postalAutoCompleteButton1" inherits="postalAutoCompleteButtonTemplate" id="1">
<Button name="mailAutoCompleteButton1" inherits="mailAutoCompleteButtonTemplate" id="1">
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<!--This 10 is a magic number used in postalAutoComplete_Update when checking whether the postalAutoComplete box should be above or below the EditBox. Please update the number there if you change it here-->
<!--This 10 is a magic number used in mailAutoComplete_Update when checking whether the mailAutoComplete box should be above or below the EditBox. Please update the number there if you change it here-->
<AbsDimension x="0" y="-10"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="postalAutoCompleteButton2" inherits="postalAutoCompleteButtonTemplate" id="2">
<Button name="mailAutoCompleteButton2" inherits="mailAutoCompleteButtonTemplate" id="2">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="postalAutoCompleteButton1" relativePoint="BOTTOMLEFT"/>
<Anchor point="TOPLEFT" relativeTo="mailAutoCompleteButton1" relativePoint="BOTTOMLEFT"/>
</Anchors>
</Button>
<Button name="postalAutoCompleteButton3" inherits="postalAutoCompleteButtonTemplate" id="3">
<Button name="mailAutoCompleteButton3" inherits="mailAutoCompleteButtonTemplate" id="3">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="postalAutoCompleteButton2" relativePoint="BOTTOMLEFT"/>
<Anchor point="TOPLEFT" relativeTo="mailAutoCompleteButton2" relativePoint="BOTTOMLEFT"/>
</Anchors>
</Button>
<Button name="postalAutoCompleteButton4" inherits="postalAutoCompleteButtonTemplate" id="4">
<Button name="mailAutoCompleteButton4" inherits="mailAutoCompleteButtonTemplate" id="4">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="postalAutoCompleteButton3" relativePoint="BOTTOMLEFT"/>
<Anchor point="TOPLEFT" relativeTo="mailAutoCompleteButton3" relativePoint="BOTTOMLEFT"/>
</Anchors>
</Button>
<Button name="postalAutoCompleteButton5" inherits="postalAutoCompleteButtonTemplate" id="5">
<Button name="mailAutoCompleteButton5" inherits="mailAutoCompleteButtonTemplate" id="5">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="postalAutoCompleteButton4" relativePoint="BOTTOMLEFT"/>
<Anchor point="TOPLEFT" relativeTo="mailAutoCompleteButton4" relativePoint="BOTTOMLEFT"/>
</Anchors>
</Button>
</Frames>
<Scripts>
<OnLoad>
POSTAL_AUTOCOMPLETE_MAX_BUTTONS = 5
MAIL_AUTOCOMPLETE_MAX_BUTTONS = 5
this:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b)
this:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b)
this.maxHeight = POSTAL_AUTOCOMPLETE_MAX_BUTTONS * postalAutoCompleteButton1:GetHeight()
postalAutoCompleteInstructions:SetText("|cffbbbbbbPress Tab|r")
this.maxHeight = MAIL_AUTOCOMPLETE_MAX_BUTTONS * mailAutoCompleteButton1:GetHeight()
mailAutoCompleteInstructions:SetText("|cffbbbbbbPress Tab|r")
</OnLoad>
</Scripts>
</Frame>
<Button name="postalAttachment" virtual="true">
<Button name="mailAttachment" virtual="true">
<Size>
<AbsDimension x="37" y="37"/>
</Size>
@@ -141,13 +141,13 @@ C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
this:RegisterForDrag('LeftButton')
</OnLoad>
<OnReceiveDrag>
postal.AttachmentButton_OnClick()
mail.AttachmentButton_OnClick()
</OnReceiveDrag>
<OnDragStart>
postal.AttachmentButton_OnClick()
mail.AttachmentButton_OnClick()
</OnDragStart>
<OnClick>
postal.AttachmentButton_OnClick()
mail.AttachmentButton_OnClick()
this:GetScript'OnEnter'()
</OnClick>
<OnEnter>
@@ -165,25 +165,25 @@ C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
<HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
</Button>
<Button name="postalAttachment1" parent="SendMailFrame" inherits="postalAttachment"/>
<Button name="postalAttachment2" parent="SendMailFrame" inherits="postalAttachment"/>
<Button name="postalAttachment3" parent="SendMailFrame" inherits="postalAttachment"/>
<Button name="postalAttachment4" parent="SendMailFrame" inherits="postalAttachment"/>
<Button name="postalAttachment5" parent="SendMailFrame" inherits="postalAttachment"/>
<Button name="postalAttachment6" parent="SendMailFrame" inherits="postalAttachment"/>
<Button name="postalAttachment7" parent="SendMailFrame" inherits="postalAttachment"/>
<Button name="postalAttachment8" parent="SendMailFrame" inherits="postalAttachment"/>
<Button name="postalAttachment9" parent="SendMailFrame" inherits="postalAttachment"/>
<Button name="postalAttachment10" parent="SendMailFrame" inherits="postalAttachment"/>
<Button name="postalAttachment11" parent="SendMailFrame" inherits="postalAttachment"/>
<Button name="postalAttachment12" parent="SendMailFrame" inherits="postalAttachment"/>
<Button name="postalAttachment13" parent="SendMailFrame" inherits="postalAttachment"/>
<Button name="postalAttachment14" parent="SendMailFrame" inherits="postalAttachment"/>
<Button name="postalAttachment15" parent="SendMailFrame" inherits="postalAttachment"/>
<Button name="postalAttachment16" parent="SendMailFrame" inherits="postalAttachment"/>
<Button name="postalAttachment17" parent="SendMailFrame" inherits="postalAttachment"/>
<Button name="postalAttachment18" parent="SendMailFrame" inherits="postalAttachment"/>
<Button name="postalAttachment19" parent="SendMailFrame" inherits="postalAttachment"/>
<Button name="postalAttachment20" parent="SendMailFrame" inherits="postalAttachment"/>
<Button name="postalAttachment21" parent="SendMailFrame" inherits="postalAttachment"/>
<Button name="mailAttachment1" parent="SendMailFrame" inherits="mailAttachment"/>
<Button name="mailAttachment2" parent="SendMailFrame" inherits="mailAttachment"/>
<Button name="mailAttachment3" parent="SendMailFrame" inherits="mailAttachment"/>
<Button name="mailAttachment4" parent="SendMailFrame" inherits="mailAttachment"/>
<Button name="mailAttachment5" parent="SendMailFrame" inherits="mailAttachment"/>
<Button name="mailAttachment6" parent="SendMailFrame" inherits="mailAttachment"/>
<Button name="mailAttachment7" parent="SendMailFrame" inherits="mailAttachment"/>
<Button name="mailAttachment8" parent="SendMailFrame" inherits="mailAttachment"/>
<Button name="mailAttachment9" parent="SendMailFrame" inherits="mailAttachment"/>
<Button name="mailAttachment10" parent="SendMailFrame" inherits="mailAttachment"/>
<Button name="mailAttachment11" parent="SendMailFrame" inherits="mailAttachment"/>
<Button name="mailAttachment12" parent="SendMailFrame" inherits="mailAttachment"/>
<Button name="mailAttachment13" parent="SendMailFrame" inherits="mailAttachment"/>
<Button name="mailAttachment14" parent="SendMailFrame" inherits="mailAttachment"/>
<Button name="mailAttachment15" parent="SendMailFrame" inherits="mailAttachment"/>
<Button name="mailAttachment16" parent="SendMailFrame" inherits="mailAttachment"/>
<Button name="mailAttachment17" parent="SendMailFrame" inherits="mailAttachment"/>
<Button name="mailAttachment18" parent="SendMailFrame" inherits="mailAttachment"/>
<Button name="mailAttachment19" parent="SendMailFrame" inherits="mailAttachment"/>
<Button name="mailAttachment20" parent="SendMailFrame" inherits="mailAttachment"/>
<Button name="mailAttachment21" parent="SendMailFrame" inherits="mailAttachment"/>
</Ui>