-
Notifications
You must be signed in to change notification settings - Fork 1
/
FarmingPartyTemplates.xml
124 lines (124 loc) · 6.56 KB
/
FarmingPartyTemplates.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
<GuiXml>
<Controls>
<TopLevelControl name="FarmingPartyListWindow" virtual="true" movable="true" mouseEnabled="true" clampedToScreen="true" hidden="true" resizeHandleSize="8" tier="MEDIUM">
<OnUpdate>
local w, h = self:GetDimensions()
if ((self.currentWidth ~= w) or (self.currentHeight ~= h)) then
self.currentWidth = w
self.currentHeight = h
end
</OnUpdate>
<Anchor point="TOPLEFT" relativeTo="GuiRoot" relativePoint="TOPLEFT" />
<Controls>
<Backdrop name="$(parent)BG" inherits="ZO_DefaultBackdrop" />
<Button name="$(parent)CloseButton" inheritAlpha="true" verticalAlignment="CENTER" horizontalAlignment="CENTER">
<Anchor point="CENTER" relativeTo="$(parent)" relativePoint="TOPRIGHT" offsetX="-20" offsetY="20" />
<Dimensions x="48" y="48" />
<Textures normal="/esoui/art/hud/radialicon_cancel_up.dds" mouseOver="/esoui/art/hud/radialicon_cancel_over.dds" />
<OnClicked>
self:SetHidden(true)
</OnClicked>
</Button>
<Label name="$(parent)Title" font="ZoFontHeader3" height="25" inheritAlpha="true" color="INTERFACE_COLOR_TYPE_TEXT_COLORS:INTERFACE_TEXT_COLOR_NORMAL" verticalAlignment="TOP" horizontalAlignment="CENTER" text="Farming Party Members">
<Anchor point="TOP" relativeTo="$(parent)" relativePoint="TOP" offsetX="-10" offsetY="5" />
</Label>
<Control name="$(parent)Headers">
<Anchor point="TOPLEFT" relativeTo="$(parent)" relativePoint="TOPLEFT" offsetX="10" offsetY="51" />
<Dimensions y="32" />
<Controls>
<Button name="$(parent)Farmer" mouseEnabled="true">
<Anchor point="TOPLEFT" offsetX="15"/>
<Dimensions x="200" y="32" />
<Controls>
<Label name="$(parent)Name" font="ZoFontGame" color="3689EF" modifyTextType="NONE" horizontalAlignment="LEFT" verticalAlignment="CENTER" text="Farmer">
<Anchor point="TOPLEFT" relativePoint="TOPLEFT"/>
<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT"/>
</Label>
</Controls>
<OnMouseEnter>
<!-- FarmingParty:HeaderToolTip(self, GetString(SK_BUYER_TOOLTIP)) -->
</OnMouseEnter>
<OnMouseExit>
<!-- ClearTooltip(InformationTooltip) -->
</OnMouseExit>
</Button>
<Control name="$(parent)BestItemName" mouseEnabled="true">
<Anchor point="TOPLEFT" relativeTo="$(parent)Farmer" relativePoint="TOPRIGHT" offsetX="60" />
<Anchor point="BOTTOMLEFT" relativeTo="$(parent)Farmer" relativePoint="BOTTOMRIGHT" offsetX="60" />
<Dimensions x="200" y="32" />
<Controls>
<Label name="$(parent)Name" font="ZoFontGame" color="INTERFACE_COLOR_TYPE_TEXT_COLORS:INTERFACE_TEXT_COLOR_NORMAL" modifyTextType="NONE" horizontalAlignment="LEFT" verticalAlignment="CENTER" text="Best Item">
<Anchor point="TOPLEFT" relativePoint="TOPLEFT"/>
<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT"/>
</Label>
</Controls>
<OnMouseEnter>
<!-- FarmingParty:HeaderToolTip(self, GetString(SK_ITEM_TOOLTIP)) -->
</OnMouseEnter>
<OnMouseExit>
<!-- ClearTooltip(InformationTooltip) -->
</OnMouseExit>
</Control>
<Control name="$(parent)TotalValue">
<Anchor point="TOPLEFT" relativeTo="$(parent)BestItemName" relativePoint="TOPRIGHT" offsetX="60" />
<Dimensions x="100" y="32" />
<Controls>
<Label name="$(parent)TotalValue" font="ZoFontGame" color="INTERFACE_COLOR_TYPE_TEXT_COLORS:INTERFACE_TEXT_COLOR_NORMAL" modifyTextType="NONE" horizontalAlignment="LEFT" verticalAlignment="CENTER" text="Total Value">
<Anchor point="TOPLEFT" relativePoint="TOPLEFT"/>
<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT"/>
</Label>
</Controls>
</Control>
</Controls>
</Control>
<Control name="$(parent)List" inherits="ZO_ScrollList">
<Anchor point="TOPLEFT" relativeTo="$(parent)Headers" relativePoint="BOTTOMLEFT" offsetX="0" offsetY="5"/>
<Anchor point="BOTTOMRIGHT" relativeTo="$(parent)" relativePoint="BOTTOMRIGHT" offsetX="0" offsetY="-5"/>
</Control>
</Controls>
</TopLevelControl>
<!-- Full-size Data Row (virtual) -->
<Control name="FarmingPartyListRow" virtual="true">
<Dimensions y="32" />
<Controls>
<Label name="$(parent)Index" inheritAlpha="true" verticalAlignment="TOP" horizontalAlignment="LEFT" font="EsoUI/Common/Fonts/ProseAntiquePSMT.otf|12">
<Anchor point="TOPLEFT" relativeTo="$(parent)" relativePoint="TOPLEFT" offsetX="0" offsetY="-4"/>
</Label>
</Controls>
</Control>
<Control name="FarmingPartyItemColumn" virtual="true" inheritAlpha="true" mouseEnabled="true">
<Dimensions y="32" />
<!-- <Anchor point="TOPLEFT" relativeTo="$(parent)Farmer" relativePoint="TOPRIGHT" offsetX="60" offsetY="0"/><Anchor point="BOTTOMLEFT" relativeTo="$(parent)Farmer" relativePoint="BOTTOMRIGHT" offsetX="60" offsetY="0"/> -->
<OnInitialized>
self.GetText = function(control)
return control:GetNamedChild("Link"):GetText()
end
self.SetText = function(control, text)
control:GetNamedChild("Link"):SetText(text)
end
</OnInitialized>
<OnMouseEnter>
if(string.len(self:GetText()) > 0) then
InitializeTooltip(ItemTooltip, self)
ItemTooltip:SetLink(self:GetText())
end
</OnMouseEnter>
<OnMouseExit>
if(string.len(self:GetText()) > 0) then
ClearTooltip(ItemTooltip)
end
</OnMouseExit>
<OnMouseUp>
if upInside then
ZO_LinkHandler_OnLinkClicked(self:GetText(), button, self)
end
</OnMouseUp>
<Controls>
<Label name="$(parent)Link" inheritAlpha="true" verticalAlignment="CENTER" horizontalAlignment="LEFT" wrapMode="ELLIPSIS" font="EsoUI/Common/Fonts/ProseAntiquePSMT.otf|15">
<Dimensions x="200" y="32" />
<Anchor point="LEFT" relativeTo="$(parent)" relativePoint="LEFT" offsetX="0" offsetY="0"/>
</Label>
</Controls>
</Control>
</Controls>
</GuiXml>