vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 <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/">
2  
3 <Button name="DFM_FrameFinder" parent="UIParent" inherits="DiscordLib_DialogueBackdropTemplate" hidden="true" movable="true" frameStrata="HIGH">
4 <Size><AbsDimension x="260" y="305"/></Size>
5 <Anchors>
6 <Anchor point="LEFT" relativeTo="DFM_Options" relativePoint="RIGHT"/>
7 </Anchors>
8 <Frames>
9 <Button name="$parent_CloseButton" inherits="DiscordLib_CloseButtonTemplate">
10 <Scripts>
11 <OnClick>
12 DFM_FrameFinder:Hide();
13 </OnClick>
14 </Scripts>
15 </Button>
16 <Button name="$parent_Unlock" inherits="UIPanelButtonTemplate" hidden="false">
17 <Size><AbsDimension x="50" y="22"/></Size>
18 <Anchors>
19 <Anchor point="RIGHT" relativeTo="$parent_CloseButton" relativePoint="LEFT">
20 <Offset><AbsDimension x="5" y="0"/></Offset>
21 </Anchor>
22 </Anchors>
23 <Scripts>
24 <OnLoad>
25 this:SetText(DFM_TEXT.Unlock);
26 </OnLoad>
27 <OnClick>
28 DFM_FINDER_LOCKED = nil;
29 DFM_FrameFinder_LockText:SetText(DFM_TEXT.Unlocked);
30 </OnClick>
31 </Scripts>
32 </Button>
33 <ScrollFrame name="$parent_ScrollFrame" inherits="UIPanelScrollFrameTemplate">
34 <Size><AbsDimension x="200" y="250"/></Size>
35 <Anchors>
36 <Anchor point="TOPLEFT">
37 <Offset><AbsDimension x="20" y="-40"/></Offset>
38 </Anchor>
39 </Anchors>
40 <ScrollChild>
41 <EditBox name="$parent_Text" multiLine="true" letters="10000" autoFocus="false" enableMouse="true">
42 <Size><AbsDimension x="200" y="250"/></Size>
43 <Scripts>
44 <OnTextChanged>
45 local scrollBar = getglobal(this:GetParent():GetName().."ScrollBar")
46 this:GetParent():UpdateScrollChildRect();
47 local min;
48 local max;
49 min, max = scrollBar:GetMinMaxValues();
50 if ( max > 0 and (this.max ~= max) ) then
51 this.max = max;
52 scrollBar:SetValue(max);
53 end
54 </OnTextChanged>
55 <OnEscapePressed>
56 this:ClearFocus();
57 </OnEscapePressed>
58 <OnFocusLost>
59 DFM_FrameFinder_TextButton:Show();
60 </OnFocusLost>
61 <OnFocusGained>
62 DFM_FrameFinder_TextButton:Hide();
63 </OnFocusGained>
64 <OnHide>
65 DFM_FrameFinder_TextButton:Show();
66 </OnHide>
67 </Scripts>
68 <FontString inherits="GameFontHighlightSmall"/>
69 </EditBox>
70 </ScrollChild>
71 </ScrollFrame>
72 <Button name="$parent_TextButton" frameStrata="DIALOG">
73 <Size><AbsDimension x="200" y="250"/></Size>
74 <Anchors>
75 <Anchor point="TOPLEFT" relativeTo="DFM_FrameFinder_ScrollFrame_Text"/>
76 </Anchors>
77 <Scripts>
78 <OnClick>
79 DFM_FrameFinder_ScrollFrame_Text:SetFocus();
80 this:Hide();
81 </OnClick>
82 </Scripts>
83 </Button>
84 <Frame name="$parent_ScrollFrameBackground" inherits="DiscordLib_TooltipBackdropTemplate" frameStrata="HIGH">
85 <Size><AbsDimension x="240" y="262"/></Size>
86 <Anchors>
87 <Anchor point="TOPLEFT" relativeTo="$parent_ScrollFrame">
88 <Offset><AbsDimension x="-10" y="7"/></Offset>
89 </Anchor>
90 </Anchors>
91 <Scripts>
92 <OnLoad>
93 this:SetBackdropColor(0,0,0);
94 </OnLoad>
95 </Scripts>
96 </Frame>
97 </Frames>
98 <Layers>
99 <Layer level="OVERLAY">
100 <FontString name="$parent_LockText" inherits="GameFontNormal">
101 <Anchors>
102 <Anchor point="TOP">
103 <Offset><AbsDimension x="-41" y="-20"/></Offset>
104 </Anchor>
105 </Anchors>
106 </FontString>
107 </Layer>
108 </Layers>
109 <Scripts>
110 <OnLoad>
111 this:SetBackdropColor(0, 0, 0);
112 this:SetBackdropBorderColor(1, 0, 0);
113 this:RegisterForDrag("LeftButton");
114 DFM_FrameFinder_LockText:SetText(DFM_TEXT.Unlocked);
115 </OnLoad>
116 <OnDragStart>
117 this:StartMoving();
118 </OnDragStart>
119 <OnDragStop>
120 this:StopMovingOrSizing();
121 </OnDragStop>
122 <OnUpdate>
123 DFM_FrameFinder_OnUpdate();
124 </OnUpdate>
125 </Scripts>
126 </Button>
127  
128 </Ui>