RecentChatWindow - improvements

Cleanup xml file for template, change name of template to not bother other addons.
Added ScrollFrame.
Modified Ctrl-Click to toggle chat window editboxes.
Escape will now close window if keyboard focus is on text.
TrainerEnhance - change the background.
This commit is contained in:
Sattva
2023-06-08 15:17:37 +03:00
parent c9f9f94b3b
commit 9853b1dc49
3 changed files with 73 additions and 93 deletions
+2 -72
View File
@@ -1,82 +1,12 @@
<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">
<ScrollFrame name="InputScrollFrameTemplate" inherits="ScrollFrameTemplate" virtual="true">
<ScrollFrame name="Leatrix_InputScrollFrameTemplate" virtual="true">
<KeyValues>
<KeyValue key="maxLetters" value="0" type="number"/>
<!--
<KeyValue key="instructions" value="INSTRUCTION_TEXT" type="global"/>
<KeyValue key="hideCharCount" value="false" type="boolean"/>
-->
</KeyValues>
<Layers>
<Layer level="BACKGROUND">
<!-- <Texture file="Interface\BUTTONS\WHITE8X8" parentKey="Bg">
<Color r="0" g="0" b="0" a="0.2"/>
<Size>
<AbsDimension x="600" y="300"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT"/>
</Anchors>
</Texture> -->
<!-- <Texture parentKey="TopLeftTex" file="Interface\Common\Common-Input-Border-TL">
<Size x="8" y="8"/>
<Anchors>
<Anchor point="TOPLEFT" x="-5" y="5"/>
</Anchors>
</Texture>
<Texture parentKey="TopRightTex" file="Interface\Common\Common-Input-Border-TR">
<Size x="8" y="8"/>
<Anchors>
<Anchor point="TOPRIGHT" x="5" y="5"/>
</Anchors>
</Texture>
<Texture parentKey="TopTex" file="Interface\Common\Common-Input-Border-T">
<Anchors>
<Anchor point="TOPLEFT" relativeKey="$parent.TopLeftTex" relativePoint="TOPRIGHT"/>
<Anchor point="BOTTOMRIGHT" relativeKey="$parent.TopRightTex" relativePoint="BOTTOMLEFT"/>
</Anchors>
</Texture>
<Texture parentKey="BottomLeftTex" file="Interface\Common\Common-Input-Border-BL">
<Size x="8" y="8"/>
<Anchors>
<Anchor point="BOTTOMLEFT" x="-5" y="-5"/>
</Anchors>
</Texture>
<Texture parentKey="BottomRightTex" file="Interface\Common\Common-Input-Border-BR">
<Size x="8" y="8"/>
<Anchors>
<Anchor point="BOTTOMRIGHT" x="5" y="-5"/>
</Anchors>
</Texture>
<Texture parentKey="BottomTex" file="Interface\Common\Common-Input-Border-B">
<Anchors>
<Anchor point="TOPLEFT" relativeKey="$parent.BottomLeftTex" relativePoint="TOPRIGHT"/>
<Anchor point="BOTTOMRIGHT" relativeKey="$parent.BottomRightTex" relativePoint="BOTTOMLEFT"/>
</Anchors>
</Texture>
<Texture parentKey="LeftTex" file="Interface\Common\Common-Input-Border-L">
<Anchors>
<Anchor point="TOPLEFT" relativeKey="$parent.TopLeftTex" relativePoint="BOTTOMLEFT"/>
<Anchor point="BOTTOMRIGHT" relativeKey="$parent.BottomLeftTex" relativePoint="TOPRIGHT"/>
</Anchors>
</Texture>
<Texture parentKey="RightTex" file="Interface\Common\Common-Input-Border-R">
<Anchors>
<Anchor point="TOPLEFT" relativeKey="$parent.TopRightTex" relativePoint="BOTTOMLEFT"/>
<Anchor point="BOTTOMRIGHT" relativeKey="$parent.BottomRightTex" relativePoint="TOPRIGHT"/>
</Anchors>
</Texture>
<Texture parentKey="MiddleTex" file="Interface\Common\Common-Input-Border-M">
<Anchors>
<Anchor point="TOPLEFT" relativeKey="$parent.LeftTex" relativePoint="TOPRIGHT"/>
<Anchor point="BOTTOMRIGHT" relativeKey="$parent.RightTex" relativePoint="BOTTOMLEFT"/>
</Anchors>
</Texture> -->
</Layer>
<Layer level="OVERLAY">
<FontString inherits="GameFontDisableLarge" parentKey="CharCount">
<Anchors>