/
zo_dialog.xml
executable file
·185 lines (151 loc) · 9.81 KB
/
zo_dialog.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<GuiXml>
<Animations>
<AnimationTimeline name="DialogModalUnderlay">
<Animations>
<AlphaAnimation duration="175" startAlpha="0" endAlpha="1">
<EasingFunction>
return ZO_EaseOutQuadratic(progress)
</EasingFunction>
</AlphaAnimation>
<ScaleAnimation duration="100" startScale="1.25" endScale="1">
<EasingFunction>
return ZO_EaseOutQuadratic(progress)
</EasingFunction>
</ScaleAnimation>
</Animations>
</AnimationTimeline>
</Animations>
<Controls>
<Label name="ZO_DialogButtonNameLabel" font="ZoFontDialogKeybindDescription" virtual="true">
<Anchor point="RIGHT" offsetX="-5"/>
</Label>
<Label name="ZO_DialogButtonColoredNameLabel" inherits="ZO_DialogButtonNameLabel" color="INTERFACE_COLOR_TYPE_TEXT_COLORS:INTERFACE_TEXT_COLOR_NORMAL" virtual="true" />
<Label name="ZO_DialogButtonKeyLabel" font="ZoFontKeybindStripKey" inherits="ZO_LargeKeyMarkupLabel" virtual="true">
<Anchor point="RIGHT" relativeTo="$(parent)NameLabel" relativePoint="LEFT" offsetX="-15"/>
</Label>
<Control name="ZO_DialogButton" inherits="ZO_SharedDialogButton ZO_KeybindButton_ChromaBehavior" virtual="true">
<OnInitialized>
ZO_DialogButton_OnInitialized(self)
</OnInitialized>
<Controls>
<Label name="$(parent)NameLabel" override="true" inherits="ZO_DialogButtonColoredNameLabel" />
<Label name="$(parent)KeyLabel" override="true" inherits="ZO_DialogButtonKeyLabel" />
</Controls>
</Control>
<Label name="ZO_DialogButtonNameLabel_Gamepad" font="ZoFontGamepad34" color="INTERFACE_COLOR_TYPE_TEXT_COLORS:INTERFACE_TEXT_COLOR_SELECTED" modifyTextType="UPPERCASE" virtual="true">
<Anchor point="RIGHT" offsetX="-5"/>
</Label>
<Label name="ZO_DialogButtonKeyLabel_Gamepad" font="ZoFontGamepad22" inherits="ZO_LargeKeyMarkupLabel" virtual="true">
<Anchor point="RIGHT" relativeTo="$(parent)NameLabel" relativePoint="LEFT" offsetX="-15"/>
</Label>
<Control name="ZO_DialogButton_Gamepad" inherits="ZO_SharedDialogButton" virtual="true">
<Controls>
<Label name="$(parent)NameLabel" override="true" inherits="ZO_DialogButtonNameLabel_Gamepad" />
<Label name="$(parent)KeyLabel" override="true" inherits="ZO_DialogButtonKeyLabel_Gamepad" />
</Controls>
</Control>
<Button name="ZO_DialogRadioButton" inherits="ZO_LabeledRadioButton" virtual="true" />
<Control name="ZO_DialogContentAnchors" virtual="true">
<Anchor point="TOPLEFT" relativeTo="$(parent)Title" relativePoint="BOTTOMLEFT" offsetY="30"/>
<Anchor point="TOPRIGHT" relativeTo="$(parent)Title" relativePoint="BOTTOMRIGHT" offsetY="30"/>
</Control>
<Label name="ZO_DialogTitle" font="ZoFontWinH2" horizontalAlignment="CENTER" modifyTextType="UPPERCASE" virtual="true">
<Dimensions x="360" />
<Anchor point="TOP" offsetY="15" />
</Label>
<Texture name="ZO_DialogDivider" textureFile="EsoUI/Art/Miscellaneous/horizontalDivider.dds" excludeFromResizeToFitExtents="true" virtual="true">
<Dimensions x="512" y="8"/>
<Anchor point="TOP" relativeTo="$(parent)Title" relativePoint="BOTTOM" offsetY="5" />
</Texture>
<!--Positioned above windows. Below chat, tooltips and menues-->
<TopLevelControl name="ZO_DialogFrame" tier="MEDIUM" level="1" mouseEnabled="true" hidden="true" allowBringToTop="false" resizeToFitDescendents="true" virtual="true">
<Anchor point="CENTER" relativeTo="GuiRoot" />
<ResizeToFitPadding width="50" height="33" />
<OnEffectivelyShown>
if not self.animation then
self.animation = ANIMATION_MANAGER:CreateTimelineFromVirtual("DialogModalUnderlay", self)
end
self.animation:PlayFromStart()
PushActionLayerByName(GetString(SI_KEYBINDINGS_LAYER_DIALOG))
</OnEffectivelyShown>
<OnEffectivelyHidden>
RemoveActionLayerByName(GetString(SI_KEYBINDINGS_LAYER_DIALOG))
</OnEffectivelyHidden>
<Controls>
<Texture name="$(parent)ModalUnderlay" color="000000" mouseEnabled="true" alpha=".55" excludeFromResizeToFitExtents="true">
<Anchor point="TOPLEFT" relativeTo="GuiRoot" />
<Anchor point="BOTTOMRIGHT" relativeTo="GuiRoot" />
<OnMouseWheel />
</Texture>
<Backdrop name="$(parent)BG" inherits="ZO_DefaultBackdrop" excludeFromResizeToFitExtents="true">
<AnchorFill />
</Backdrop>
</Controls>
</TopLevelControl>
<TopLevelControl name="ZO_DialogBase" inherits="ZO_DialogFrame" virtual="true">
<Controls>
<Label name="$(parent)Title" inherits="ZO_DialogTitle"/>
<Texture name="$(parent)Divider" inherits="ZO_DialogDivider"/>
</Controls>
</TopLevelControl>
<TopLevelControl name="ZO_CustomDialogFrame" inherits="ZO_DialogFrame ZO_SharedCustomDialogSize" virtual="true" />
<TopLevelControl name="ZO_CustomDialogBase" inherits="ZO_DialogBase ZO_SharedCustomDialogSize" virtual="true" />
<Control name="ZO_CustomDialogButton" inherits="ZO_DialogButton ZO_SharedCustomDialogButton" virtual="true" />
<Control name="ZO_CustomDialogButton_Gamepad" inherits="ZO_DialogButton_Gamepad ZO_SharedCustomDialogButton" virtual="true" />
<TopLevelControl name="ZO_TwoButtonDialog" inherits="ZO_DialogBase" virtual="true">
<OnMouseWheel />
<Controls>
<Label name="$(parent)Text" inherits="ZO_SmallKeyMarkupLabel ZO_DialogContentAnchors" font="ZoFontGameMedium" color="INTERFACE_COLOR_TYPE_TEXT_COLORS:INTERFACE_TEXT_COLOR_NORMAL"/>
<Control name="$(parent)Button2" inherits="ZO_DialogButton">
<Anchor point="TOPLEFT"/>
</Control>
<Label name="$(parent)ButtonExtraText2" font="ZoFontGame" horizontalAlignment="CENTER" color="INTERFACE_COLOR_TYPE_TEXT_COLORS:INTERFACE_TEXT_COLOR_SELECTED" hidden="true">
<Anchor point="TOPLEFT" relativeTo="$(parent)Button2" relativePoint="BOTTOMLEFT" offsetY="5" />
<Anchor point="TOPRIGHT" relativeTo="$(parent)Button2" relativePoint="BOTTOMRIGHT" offsetY="5" />
</Label>
<Control name="$(parent)Button1" inherits="ZO_DialogButton">
<Anchor point="TOPLEFT"/>
</Control>
<Label name="$(parent)ButtonExtraText1" font="ZoFontGame" horizontalAlignment="CENTER" color="INTERFACE_COLOR_TYPE_TEXT_COLORS:INTERFACE_TEXT_COLOR_SELECTED" hidden="true">
<Anchor point="TOPLEFT" relativeTo="$(parent)Button1" relativePoint="BOTTOMLEFT" offsetY="5" />
<Anchor point="TOPRIGHT" relativeTo="$(parent)Button1" relativePoint="BOTTOMRIGHT" offsetY="5" />
</Label>
<Control name="$(parent)Loading" inherits="ZO_Loading">
<Anchor point="TOPLEFT" offsetX="5" offsetY="5" />
<OnInitialized>
ZO_Loading_Initialize(self)
</OnInitialized>
</Control>
<Backdrop name="$(parent)Edit" inherits="ZO_SingleLineEditBackdrop_Keyboard" hidden="true">
<Anchor point="TOPLEFT" relativeTo="$(parent)Text" offsetY="5"/>
<Controls>
<EditBox name="$(parent)Box" inherits="ZO_DefaultEditForBackdrop ZO_EditDefaultText">
<OnTextChanged>
ZO_TwoButtonDialogEditBox_OnTextChanged(self)
</OnTextChanged>
</EditBox>
<Control name="$(parent)Instructions" resizeToFitDescendents="true" excludeFromResizeToFitExtents="true" hidden="true">
<Anchor point="RIGHT" relativePoint="LEFT" offsetX="-25" offsetY="-15"/>
<ResizeToFitPadding width="20" height="20" />
<Controls>
<Backdrop name="$(parent)BG" inherits="ZO_DefaultBackdrop" excludeFromResizeToFitExtents="true">
<AnchorFill />
</Backdrop>
</Controls>
</Control>
</Controls>
</Backdrop>
<Label name="$(parent)WarningText" inherits="ZO_SmallKeyMarkupLabel" lineSpacing="0" font="ZoFontGameMedium" color="INTERFACE_COLOR_TYPE_TEXT_COLORS:INTERFACE_TEXT_COLOR_FAILED" />
<Control name="$(parent)RadioButtonContainer" resizeToFitDescendents="true" hidden="true">
<Anchor point="TOPLEFT" relativeTo="$(parent)Text" offsetY="5"/>
</Control>
</Controls>
</TopLevelControl>
<TopLevelControl name="ZO_Dialog1" inherits="ZO_TwoButtonDialog">
<Anchor point="CENTER" offsetY="-55" />
<OnInitialized>
ZO_TwoButtonDialog_OnInitialized(self, 1)
</OnInitialized>
</TopLevelControl>
</Controls>
</GuiXml>