forked from Azurency/Civ6-UIFiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
DiplomacyActionView.xml
506 lines (451 loc) · 26.9 KB
/
DiplomacyActionView.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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
<?xml version="1.0" encoding="utf-8" ?>
<Context xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="..\..\..\..\..\CivTech\Libs\ForgeUI\ForgeUI_Assets\Controls.xsd" Style="FontNormal16" FontStyle="Shadow">
<Include File="CivilizationIcon" />
<Include File="LeaderIcon"/>
<Include File="PopupDialog" />
<!-- Button to intercept right mouse clicka and skip cutscenes -->
<Button ID="ScreenClickRegion" Size="parent,parent" Color="0,0,0,0"/>
<!-- Containers for caching instances -->
<Container ID="IconAndTextContainer" Hidden="1"/>
<Container ID="TextContainer" Hidden="1"/>
<Container ID="LeftRightListContainer" Hidden="1"/>
<Container ID="TopDownListContainer" Hidden="1"/>
<Container ID="ActionListContainer" Hidden="1"/>
<Container ID="ActionButtonContainer" Hidden="1"/>
<!--
...:::{ MAIN PLAYER PANEL }:::...
An instance of a panel that displays what actions and reports a player can see.
-->
<Instance Name="PlayerPanel">
<!-- The background of the panel, enclosing all contents -->
<Container ID="Root" Size="514,parent">
<Image Texture="Controls_GradientSmall" Size="22,parent" AnchorSide="O,I" Anchor="R,T" Color="0,0,0,255" Rotate="270" Offset="-2,0"/>
<Image Texture="Controls_GradientSmall" Size="22,parent" AnchorSide="O,I" Anchor="L,T" Color="0,0,0,255" Rotate="90" Offset="-2,0"/>
<Image Texture="Controls_Gradient" Size="parent,150" Anchor="L,T" Color="0,0,0,255" Offset="0,-20"/>
<Image Texture="Controls_Gradient" Size="parent,100" Anchor="L,B" Color="0,0,0,255" Offset="0,0" FlipY="1"/>
<Image ID="PlayerPanelWindow" Size="parent,parent" Offset="0,0" Texture="Controls_BannerWide" StretchMode="TileY">
<!-- The leader icon and title -->
<Container Anchor="C,T" Size="auto,88">
<Container Anchor="L,C" Size="62,62" Offset="-62,0">
<MakeInstance ID="CivIcon" Name="CivilizationIconShaded44"/>
<Image Texture="Controls_CircleRim50" Size="50,50" Anchor="C,C" Offset="-1,-1" Color="255,255,255,50"/>
</Container>
<Label ID="PlayerNameText" Anchor="C,C" Offset="0,-11" Align="C" Style="DiplomacyCivHeader"/>
<Label ID="CivNameText" Anchor="C,C" Offset="0,13" Align="C" Style="DiplomacyCivHeader"/>
</Container>
<!-- The container for all the content below the header -->
<Container ID="ContentContainer" Size="parent, parent-108" Offset="0,88">
<Container ID="IntelContainer" Size="parent,100"/>
<Stack ID="RootOptionStack" Anchor="C,B" StackGrowth="Bottom">
<Stack ID="OptionStack" StackGrowth="Bottom"/>
<Stack ID="SubOptionStack" StackGrowth="Bottom"/>
</Stack>
</Container>
<Grid Texture="Controls_BannerBottom" Anchor="L,B" Offset="0,-4" Size="514,32" SliceSize="1,30" SliceCorner="18,2" SliceTextureSize="37,32"/>
</Image>
</Container>
</Instance>
<!-- An instance of a text label that can be added to make a list -->
<Instance Name="IconOnly">
<Image ID="Icon" Anchor="L,C" Size="22,22" Texture="Agreements22" Color="255,255,255,255"/>
</Instance>
<!-- An instance of a text label that can be added to make a list -->
<Instance Name="TextOnly">
<Label ID="Text" Anchor="L,C" Style="FontNormal14" String="???" WrapWidth="135"/>
</Instance>
<!-- An instance of an Icon, with optional Amount Text that overlaps the icon and description text on the right side of the icon. -->
<Instance Name="IconAndText">
<GridButton ID="SelectButton" Style="ButtonDraggableGrid" Size="200,72">
<Stack StackGrowth="Right" Offset="5, 0">
<Container Size="64, parent">
<Image ID="Icon" StretchMode="None" Size="64,64" Anchor="C,C"/>
<Label ID="AmountText" Anchor="R,B" Style="FontNormal16" Align="R" Offset="10,8"/>
</Container>
<Label ID="IconText" Anchor="L,C" Offset="4, 0" Size="parent,64"/>
</Stack>
</GridButton>
</Instance>
<!-- USED FOR TRADE SCREEN - not used here : Instance container for a list of icons that grows from left to right. -->
<Instance Name="LeftRightList">
<Stack ID="List">
<Grid ID="Title" Style="ButtonLightWeightSquareGrid" Size="parent,26">
<Label ID="TitleText" Anchor="L,C" Offset="4,0" Style="FontNormal24" Hidden="false" String="Resources"/>
<CheckBox ID="TitleExpand" Style="CheckBoxExpand" Anchor="R,C" Offset="24,0"/>
</Grid>
<Stack ID="ListStack" StackGrowth="Right" WrapWidth="parent">
</Stack>
</Stack>
</Instance>
<!-- USED FOR TRADE SCREEN - not used here Instance container for a list of icons with descriptions, that grows top down. -->
<Instance Name="TopDownList">
<Stack ID="List">
<Grid ID="Title" Style="ButtonLightWeightSquareGrid" Size="parent,26">
<Label ID="TitleText" Anchor="L,C" Offset="4,0" Style="FontNormal24" Hidden="false" String="Resources"/>
<CheckBox ID="TitleExpand" Style="CheckBoxExpand" Anchor="R,C" Offset="24,0"/>
</Grid>
<Stack ID="ListStack" StackGrowth="Bottom">
</Stack>
</Stack>
</Instance>
<!-- Instance container for an action button. -->
<Instance Name="ActionButton">
<GridButton ID="Button" Size="450, 38" Style="ButtonLightWeightGrid" Anchor="C,T">
<Label ID="ButtonText" Anchor="C,C" Style="ButtonFont16" LeadingOffset="-4"/>
</GridButton>
</Instance>
<!-- Instance container for a list of action buttons. -->
<Instance Name="ActionList">
<Stack ID="List" Offset="6,0">
<Stack ID="ListStack" StackGrowth="Bottom">
</Stack>
<Box Size="6,6" Color="0,0,0,0"/>
</Stack>
</Instance>
<!-- An instance of an Icon, with optional Amount Text that overlaps the icon -->
<Instance Name="RelationshipIcon">
<Container ID="Background" Size="40,40">
<Image ID="Icon" StretchMode="None" Size="32,32" Anchor="R,T">
<Image ID="TeamRibbon" Anchor="C,B" Offset="0,-7" Size="30,30" Texture="TeamRibbon32"/>
</Image>
<Button ID="Status" StretchMode="None" Style="DiplomacyRelationshipPips" Anchor="L,B" Disabled="1"/>
</Container>
</Instance>
<!-- Instance container for the Intel panel -->
<Instance Name="IntelPanel">
<Container ID="Panel" Size="parent,parent">
<!-- The title -->
<Grid Anchor="C,T" Size="parent-8,38" Offset="0,-10" Style="DiplomacyTitleBarGrid">
<Label ID="IntelHeader" Anchor="C,C" String="LOC_DIPLOMACY_INTEL_TITLE" Style="DiplomacyIntelHeader" Offset="0,2"/>
</Grid>
<!-- Tab Buttons -->
<Container Anchor="C,T" Size="parent,40" Offset="0,40">
<Stack ID="IntelTabButtonStack" Anchor="C,C" StackGrowth="Right"/>
</Container>
<!-- Body -->
<ScrollPanel ID="IntelPanelContainer" Anchor="C,B" Size="parent-20,parent-110" Offset="0,10" Style="ScrollPanelWithRightBar">
<ScrollBar Anchor="R,C" AnchorSide="I,I" Offset="0,0" Style="ScrollVerticalBar" />
<UpButton Anchor="R,T" AnchorSide="I,I" Offset="-3,0" Style="ScrollUpButton" />
<DownButton Anchor="R,B" AnchorSide="I,I" Offset="-3,0" Style="ScrollDownButton" />
</ScrollPanel>
</Container>
</Instance>
<Instance Name="IntelOverviewInstance">
<Container ID="Top" Size="auto,auto">
<Stack ID="IntelOverviewStack" StackGrowth="Down" StackPadding="2"/>
</Container>
</Instance>
<Instance Name="IntelOverviewDividerInstance">
<Box ID="TheDivider" Anchor="C,C" Size="parent-20,1" Color="255,255,255,80" />
</Instance>
<Instance Name="IntelOverviewGossipInstance">
<Container ID="Top" Size="parent,38">
<Image Offset="20,10" Size="22,22" IconSize="22" Icon="ICON_GOSSIP"/>
<Label Offset="60,10" Style="FontNormal16" String="LOC_DIPLOMACY_OVERVIEW_GOSSIP"/>
<Image Offset="220,10" Size="16,16" IconSize="16" Icon="ICON_STATS_GENERIC_MODIFIER"/>
<Label ID="GossipText" Offset="250,10" Style="FontNormal16"/>
</Container>
</Instance>
<Instance Name="IntelOverviewAnchorInstance">
<Container ID="Anchor" Size="parent,auto"/>
</Instance>
<Instance Name="IntelTabAnchorInstance">
<Container ID="Anchor" Size="auto,auto"/>
</Instance>
<Instance Name="IntelOverviewAccessLevelInstance">
<Container ID="Top" Size="parent,38">
<Image Offset="20,10" Size="22,22" IconSize="22" Icon="ICON_ACCESS_LEVEL"/>
<Label Offset="60,10" Style="FontNormal16" String="LOC_DIPLOMACY_OVERVIEW_ACCESS_LEVEL"/>
<Button ID="AccessLevelIcon" Offset="215,8" Style="DiplomacyVisibilityIconSmall" Disabled="1"/>
<Label ID="AccessLevelText" Offset="250,10" Style="FontNormal16" String="Limited"/>
</Container>
</Instance>
<Instance Name="IntelOverviewGovernmentInstance">
<Container ID="Top" Size="parent,38">
<Image Offset="20,10" Size="22,22" IconSize="22" Icon="ICON_GOVERNMENT"/>
<Label Offset="60,10" Style="FontNormal16" String="LOC_DIPLOMACY_OVERVIEW_GOVERNMENT"/>
<Image Offset="220,10" Size="16,16" IconSize="16" Icon="ICON_STATS_GENERIC_MODIFIER"/>
<Label ID="GovernmentText" Offset="250,10" Style="FontNormal16" String="Limited"/>
</Container>
</Instance>
<Instance Name="IntelOverviewAgendasInstance">
<Container ID="Top" Size="parent,auto" AutoSizePadding="0,6">
<Image Offset="20,10" Size="22,22" IconSize="22" Icon="ICON_AGENDA"/>
<Label Offset="60,10" Style="FontNormal16" String="LOC_DIPLOMACY_OVERVIEW_AGENDAS"/>
<Stack ID="OverviewAgendasStack" Offset="0,10" StackGrowth="Down" StackPadding="6"/>
</Container>
</Instance>
<Instance Name="IntelOverviewAgendaEntryInstance">
<Container ID="Top" Size="parent,16">
<Image Offset="220,0" Size="16,16" IconSize="16" Icon="ICON_STATS_GENERIC_MODIFIER"/>
<Label ID="Text" Offset="250,0" Style="FontNormal16" String="Limited"/>
</Container>
</Instance>
<Instance Name="IntelOverviewAgreementsInstance">
<Container ID="Top" Size="parent,38">
<Image Offset="20,10" Size="22,22" IconSize="22" Icon="ICON_AGREEMENT"/>
<Label Offset="60,10" Style="FontNormal16" String="LOC_DIPLOMACY_OVERVIEW_AGREEMENTS"/>
<Stack ID="AgreementStack" Offset="214,8" StackGrowth="Right" StackPadding="6"/>
</Container>
</Instance>
<Instance Name="IntelOverviewOurRelationshipInstance">
<Container ID="Top" Size="parent,38">
<Image Offset="20,10" Size="22,22" IconSize="22" Icon="ICON_RELATIONSHIP"/>
<Label Offset="60,10" Style="FontNormal16" String="LOC_DIPLOMACY_OVERVIEW_OUR_RELATIONSHIP"/>
<Button ID="RelationshipIcon" Offset="214,6" Style="DiplomacyRelationshipPips" Disabled="1"/>
<Label ID="RelationshipText" Offset="250,10" Style="FontNormal16" WrapWidth="140"/>
</Container>
</Instance>
<Instance Name="IntelOverviewOtherRelationshipsInstance">
<Container ID="Top" Size="parent,auto">
<Image Offset="20,10" Size="22,22" IconSize="22" Icon="ICON_RELATIONSHIPS"/>
<Label Offset="60,10" Style="FontNormal16" String="LOC_DIPLOMACY_OVERVIEW_OTHER_RELATIONSHIPS"/>
<Stack ID="RelationshipsStack" Anchor="C,T" Offset="0,34" StackGrowth="Right" Padding="-8" WrapGrowth="Bottom" WrapWidth="180"/>
</Container>
</Instance>
<!-- ATTN TRON/KEN: I think we may have a bug here - parent needs to be re-evauluated whenever we GetInstance on the instance manager. -->
<!-- When an instance is passed into a function, it incorrectly evaluates the parent width as the full width of the screen, instead of its current parent. -->
<!-- Until this is addressed, I am going to hard-code the width of the gossip entry as (295) so that I can continue.-->
<Instance Name="IntelGossipHistoryPanelEntry">
<Grid ID="Background" Texture="Controls_GossipBubble" Size="450,37" Anchor="C,T" SliceCorner="18,18" SliceTextureSize="36,37">
<Label ID="GossipText" WrapWidth="parent-30" Offset="17,0" Style="TextButtonStyle" Anchor="L,C"/>
<Label ID="NewIndicator" String="[ICON_New]" Anchor="R,T" Hidden="1"/>
</Grid>
</Instance>
<Instance Name="IntelGossipHistoryPanel">
<Container ID="Top" Size="parent,auto">
<Stack Anchor="C,T" StackGrowth="Bottom">
<Container Anchor="C,T" Size="parent-100,20">
<Grid Style="DividerGrid" Size="parent-8,8" Anchor="C,C" Color="34,48,59,255"/>
<Grid Style="DropShadow4" Size="auto,auto" Anchor="C,C">
<Label String="LOC_DIPLOMACY_INTEL_LAST_TEN_TURNS" Anchor="C,C" Style="DiplomacyGossipHeader"/>
</Grid>
</Container>
<Stack ID="LastTenTurnsStack" Anchor="C,T"/>
<Container ID="OlderHeader" Anchor="C,T" Size="parent-100,20">
<Grid Style="DividerGrid" Size="parent-8,8" Anchor="C,C" Color="34,48,59,255"/>
<Grid Style="DropShadow4" Size="auto,auto" Anchor="C,C">
<Label String="LOC_DIPLOMACY_INTEL_OLDER" Anchor="C,C" Style="DiplomacyGossipHeader"/>
</Grid>
</Container>
<Stack ID="OlderStack" Anchor="C,T"/>
</Stack>
</Container>
</Instance>
<Instance Name="IntelAccessLevelPanel">
<Container ID="Top" Anchor="C,T" Size="parent-40,auto">
<Stack StackGrowth="Bottom">
<Grid ID="AccessContribution" Style="SubContainerCallout" Size="parent-8,auto" Color="DiplomacyPanelFrameColor">
<Label ID="AccessContributionText" Style="FontNormal14" Anchor="L,T" WrapWidth="274" Offset="4,0" />
</Grid>
<Grid Style="SubContainer3" Size="parent,auto" Color="DiplomacyPanelFrameColor">
<Stack StackGrowth="Left" Anchor="R,C">
<Button ID="AccessLevelIcon" Size="44,44" Anchor="C,C" Style="DiplomacyVisibilityIconLarge" Disabled="1"/>
<Stack StackGrowth="Bottom" Size="parent,0" Padding="5">
<Label Style="HeaderSmallCaps" String="{LOC_DIPLOMACY_INTEL_ACCESS_LEVEL:upper}" Anchor="R,T" Color0="150,150,150,255"/>
<Label ID="AccessLevelText" Style="HeaderLargeCaps" Anchor="R,T"/>
</Stack>
</Stack>
</Grid>
<Stack Size="parent-8,auto" Offset="4,0">
<Label Style="FontNormal14" String="LOC_DIPLOMACY_INTEL_INFORMATION_SHARED_HEADER" Anchor="L,T" Color0="150,150,150,255" Align="Center" WrapWidth="parent"/>
<Label ID="InformationSharedText" Style="FontNormal14" WrapWidth="parent"/>
</Stack>
<Stack ID="NextAccessLevelStack" Size="parent-8,auto" Offset="4,0" Hidden="1">
<Label Style="FontNormal14" String="LOC_DIPLOMACY_INTEL_NEXT_ACCESS_LEVEL_HEADER" Color0="150,150,150,255"/>
<Label ID="NextAccessLevelText" Style="FontNormal14" Color0="150,150,150,255" WrapWidth="parent"/>
</Stack>
<Container ID="Advisor" Size="parent,auto" Hidden="1">
<Grid Style="AdvisorWordBubble" Offset="0,4" Size="parent-32,auto" Color="41,51,59,200">
<Stack StackGrowth="Down" Padding="0" Offset="10,10">
<Label Style="FontNormal12" WrapWidth="parent-60" String="LOC_DIPLOMACY_INTEL_GAIN_ACCESS_LEVEL_HEADER" Color0="150,150,150,255"/>
<Label ID="AdvisorText" Offset="20,0" Style="FontNormal12" WrapWidth="parent-60" Color0="150,150,150,255"/>
</Stack>
</Grid>
<Image ID="AdvisorIcon" Offset="0,10" Anchor="R,T" Size="32,32"/>
</Container>
</Stack>
</Container>
</Instance>
<Instance Name="IntelRelationshipPanel">
<Container ID="Top" Anchor="C,T" Size="460,auto">
<Stack StackGrowth="Bottom" Size="parent,0" InnerPadding="8,8" Offset="0,10" Anchor="C,T" Padding="5">
<Container Size="parent,15">
<Grid Size="292, 8" Anchor="C,T" Texture="Controls_RoundedRectH" SliceTextureSize="12,8" SliceCorner="6,4" Color="DiplomacyPanelFrameColor">
<TextureBar ID="RelationshipBar" Size="286,3" Anchor="C,C" Texture="Diplomacy_RelationshipBar" Direction="Right" Percent="0" Speed="10"/>
<AlphaAnim ID="FlashingBar" Cycle="Bounce" Speed=".5" AlphaBegin="0" AlphaEnd="1" Size="292,4" Anchor="C,C" Hidden="1">
<Grid ID="WarBar" Texture="Controls_ScrollHandleH" SliceTextureSize="12,5" SliceCorner="6,3" Size="parent,parent" Color="231,53,52,255" Hidden="1"/>
<Grid ID="AllyBar" Texture="Controls_ScrollHandleH" SliceTextureSize="12,5" SliceCorner="6,3" Size="parent,parent" Color="26,176,206,255" Hidden="1"/>
</AlphaAnim>
<Button ID="RelationshipIcon" Anchor="L,C" Style="DiplomacyRelationshipPipsLarge" Disabled="1"/>
</Grid>
</Container>
<Grid Style="SubContainer3" Size="parent,auto" Color="DiplomacyPanelFrameColor">
<Stack StackGrowth="Bottom" Size="parent,0" Padding="5">
<Label Style="HeaderSmallCaps" String="{LOC_DIPLOMACY_INTEL_RELATIONSHIP:upper}" Anchor="R,T" Color0="150,150,150,255"/>
<Label ID="RelationshipText" Style="HeaderLargeCaps" Anchor="R,T"/>
</Stack>
</Grid>
<Label ID="RelationshipReasonsText" Style="HeaderSmallCaps" String="LOC_DIPLOMACY_INTEL_RELATIONSHIP_REASONS" Anchor="C,T" Color0="150,150,150,255" Align="Center" WrapWidth="350"/>
<Stack ID="RelationshipReasonStack" StackGrowth="Down"/>
<Grid ID="NoReasons" Style="DecoGrid" Size="parent,auto" Hidden="1" Color="DiplomacyPanelFrameColor">
<Label Style="FontNormal14" Anchor="C,C" String="LOC_DIPLOMACY_INTEL_RELATIONSHIP_NOTHING_ABJECT" WrapWidth="220" Align="Center" Color0="DiplomacyPanelFrameColor"/>
</Grid>
<Container ID="Advisor" Size="parent,auto" Hidden="1">
<Grid Style="AdvisorWordBubble" Offset="0,4" Size="parent-32,auto" Color="41,51,59,200">
<Stack StackGrowth="Down" Padding="0" Offset="10,10">
<Label Style="FontNormal12" WrapWidth="340" String="LOC_DIPLOMACY_INTEL_TO_RAISE_RELATIONSHIP" Color0="150,150,150,255"/>
<Label ID="AdvisorTextRaise" Offset="20,0" Style="FontNormal12" WrapWidth="340"/>
<Label Style="FontNormal12" WrapWidth="340" String="LOC_DIPLOMACY_INTEL_TO_LOWER_RELATIONSHIP" Color0="150,150,150,255"/>
<Label ID="AdvisorTextLower" Offset="20,0" Style="FontNormal12" WrapWidth="340"/>
<Box Color="0,0,0,0" Size="10,10"/>
</Stack>
</Grid>
<Image ID="AdvisorIcon" Offset="0,10" Anchor="R,T" Size="32,32"/>
</Container>
</Stack>
</Container>
</Instance>
<Instance Name="IntelRelationshipReasonEntry">
<Container ID="Background" Size="parent,auto">
<Container Size="50,auto">
<Label ID="Score" Style="FontNormal14" Anchor="R,T"/>
</Container>
<Container Size="parent-50,auto" Offset="55,0">
<Label ID="Text" Style="FontNormal14" Anchor="L,T" Size="parent,auto"/>
</Container>
</Container>
</Instance>
<!-- An instance of a diplomacy ribbon leader -->
<Instance Name="DiplomacyRibbonLeader">
<Container ID="Root" Size="parent,64">
<Grid ID="SelectedBackground" Style="DiplomacySelectedLeaderBackgroundGrid" Offset="-5,-2" Size="75,67" />
<MakeInstance Name="LeaderIcon55"/>
</Container>
</Instance>
<!-- An instance of the vertical diplomacy ribbon -->
<Instance Name="DiplomacyRibbonVert">
<Container ID="Root" Size="200,parent">
<!-- The ribbon background -->
<Image Texture="Diplomacy_Ribbon" Offset="8,0" Size="47,parent-32"/>
<Image Texture="Diplomacy_RibbonBottom" Anchor="L,B" Offset="8,0" Size="47,239"/>
<ScrollPanel ID="LeaderRibbonScroll" Vertical="1" AutoScrollBar="1" Size="parent,parent">
<ScrollBar Size="15,parent" SliceTextureSize="11,11" SliceCorner="5,5" Anchor="L,B" Color="111,101,94,250" AnchorSide="O,I" Texture="Controls_ScrollBarBacking" StateOffsetIncrement="0,0" Vertical="1" >
<Thumb Size="13,13" Texture="Controls_ScrollBarHandleV_Brown" StateOffsetIncrement="0,0" SliceCorner="6,6" SliceTextureSize="13,13"/>
</ScrollBar>
<Stack ID="Leaders" Offset="0,20" StackGrowth="Bottom"/>
</ScrollPanel>
</Container>
</Instance>
<!-- An instance of a conversation selection -->
<Instance Name="ConversationSelectionInstance">
<GridButton ID="SelectionButton" Style="DiplomacyButton" Size="390,60" Anchor="C,T">
<Label ID="SelectionText" Align="C,C" Anchor="C,C" WrapWidth="350" Offset="0,-3" Style="DiplomacyDialogText" FontSize="20"/>
</GridButton>
</Instance>
<!-- Set leader screen offsets on LeaderAnchor in lua -->
<Container ID="LeaderAnchor" Anchor="L,B" Size="0,0">
<!-- Fallback texture is set in C++ -->
<AlphaAnim ID="LeaderAlpha" AlphaBegin="0" AlphaEnd="1" Speed="2" Cycle="Once">
<Image ID="FallbackLeaderImage" Anchor="L,C" StretchMode="Fill" Sampler="Linear" Hidden="1"/>
</AlphaAnim>
</Container>
<!-- The gradient to make the leader sit in the scene-->
<Image Texture="Controls_Gradient" Color="0,0,0,255" Size="parent,180" Anchor="L,B"/>
<Image Texture="Controls_Gradient" Color="0,0,0,200" Size="parent,180" Anchor="L,B"/>
<Image Texture="Controls_Gradient" Color="0,0,0,255" Size="parent,180" Anchor="L,B"/>
<!-- Controls for when the local player is overview mode or auction mode. -->
<Container ID="OverviewContainer" Size="parent,parent" ConsumeAllMouse="0">
<AlphaAnim ID="AlphaIn" AlphaBegin="0" AlphaEnd="1" Speed="2" Cycle="Once" Function="Root" Pause="0.2">
<SlideAnim ID="SlideIn" Begin="-200,0" End="0,0" Speed="2" Cycle="Once" Function="Root" Pause="0.2">
<!-- The container for the diplo ribbon instance -->
<Container ID="DiplomacyRibbonContainer" Size="200,parent"/>
<!-- The container for the player panel instance -->
<Container ID="PlayerContainer" Offset="64,0" Size="360,parent"/>
</SlideAnim>
</AlphaAnim>
<AlphaAnim ID="NameFade" AlphaBegin="0" AlphaEnd="1" Speed="3" Cycle="Once" Function="Root" Pause="0.4" Size="parent,parent">
<SlideAnim ID="NameSlide" Begin="-20,0" End="0,0" Speed="3" Cycle="Once" Function="Root" Pause="0.4" Size="parent,parent">
<Stack Padding="3" Offset="30,35">
<Stack StackGrowth="Down" Padding="3">
<Label ID="PlayerNameText" Style="DiplomacyCivHeaderLarge" ColorSet="BodyTextCool"/>
<Label ID="CivNameText" Style="DiplomacyCivHeaderLarge" Color0="Dark_Gray"/>
</Stack>
<Stack ID="UniqueInfoStack" StackGrowth="Down" StackPadding="10">
<Label Anchor="L,T" Offset="10,10" Style="FontFlair14" String="{LOC_LOADING_FEATURES_ABILITIES:upper}" SmallCapsType="EveryWord" SmallCaps="20" />
<Line Start="0,0" End="350,0" Width="2" Color="200,200,200,100" />
<ScrollPanel ID="LeaderInfoScrollPanel" Anchor="L,B" Size="parent-10,parent-200" Vertical="1" AutoScrollBar="1">
<Stack ID="FeaturesStack" Anchor="L,T" Offset="10,8" StackGrowth="Right" WrapWidth="400" WrapGrowth="Down" Padding="10" WrapPadding="14" />
<ScrollBar Anchor="L,T" AnchorSide="O,I" Size="11,parent" Style="Slider_Blue" Vertical="1" Offset="-2,-2"/>
</ScrollPanel>
</Stack>
</Stack>
</SlideAnim>
</AlphaAnim>
<!-- Close button -->
<Button ID="CloseButton" Anchor="R,T" Style="CloseButtonSmall"/>
</Container>
<!-- Controls for when the local player is in a diplomacy conversation, the other controls are hidden when these are visible. -->
<Container ID="ConversationContainer" Size="parent,parent" Hidden="1">
<AlphaAnim ID="LeaderResponse_Alpha" AlphaBegin="0" AlphaEnd="1" Speed="2" Function="Root" Cycle="Once" >
<SlideAnim ID="LeaderResponse_Slide" Begin="-10,0" End="0,0" Speed="2" Function="Root" Cycle="Once" >
<Grid ID="LeaderResponseGrid" Size="650,auto" Offset="50,50" Style="DiplomacyWordBubble" Color="255,255,255,200">
<Stack Anchor="I,O" Offset="0,-22" StackGrowth="Right" StackPadding="4">
<MakeInstance ID="LeaderResponseIcon" Name="CivilizationIcon22"/>
<Label ID="LeaderResponseName" Anchor="L,C" Style="HeaderSmallCaps" Color0="GoldMetalDark"/>
</Stack>
<Stack Anchor="C,C" Size="parent,auto" StackPadding="16">
<Label ID="LeaderResponseText" Anchor="C,C" Align="C,C" String="LOC_DIPLO_GREETING_CLEO" WrapWidth="620" Style="DiplomacyDialogText"/>
<Label ID="LeaderReasonText" Anchor="C,C" Align="C,C" WrapWidth="620" Style="FontNormal18" Color="150,150,150,255"/>
</Stack>
</Grid>
</SlideAnim>
</AlphaAnim>
<AlphaAnim ID="ConversationSelection_Alpha" AlphaBegin="0" AlphaEnd="1" Speed="2" Function="Root" Cycle="Once" Pause="0.6" Size="parent,parent" >
<SlideAnim ID="ConversationSelection_Slide" Begin="10,0" End="0,0" Speed="2" Function="Root" Cycle="Once" Pause="0.6" Size="parent,parent" >
<Grid ID="ConversationSelectionGrid" Anchor="L,B" Offset="50,50" Size="450,auto" Style="DiplomacyWordBubble" Color="255,255,255,200">
<Stack ID="ConversationSelectionStack" StackGrowth="Bottom" Padding="2" Anchor="C,C"/>
</Grid>
</SlideAnim>
</AlphaAnim>
</Container>
<Container ID="VoiceoverTextContainer" Hidden="1">
<AlphaAnim ID="VoiceoverText_Alpha" AlphaBegin="0" AlphaEnd="1" Speed="1.8" Function="Root" Cycle="Once" Pause=".6" Size="parent,parent">
<SlideAnim ID="VoiceoverText_Slide" Begin="0,-20" End="0,0" Speed="1.8" Function="Root" Cycle="Once" Pause=".6" Size="parent,parent">
<Grid ID="VoiceoverGrid" Size="1024,auto" Anchor="C,B" Style="DiplomacyWordBubble" Color="255,255,255,200">
<Label ID="VoiceoverText" Anchor="C,C" Align="Center" String="LOC_DIPLO_GREETING_CLEO" WrapWidth="1000" Style="DiplomacyDialogText" />
</Grid>
</SlideAnim>
</AlphaAnim>
</Container>
<!--The fade-to-black stuff -->
<Container ID="BlackFade" Hidden="1">
<AlphaAnim ID="BlackFadeAnim" Begin="0" End="1" Cycle="Once" Stopped="1" Speed="4">
<Box Color="0,0,0,255" Size="parent,parent" ConsumeMouse="0"/>
</AlphaAnim>
</Container>
<AlphaAnim ID="FadeTimerAnim" Begin="0" End="1" Cycle="Once" Stopped="1" Speed="4"/>
<Instance Name="TextInfoInstance">
<Stack ID="Top" StackGrowth="Bottom" StackPadding="4">
<Label ID="Header" Style="FontFlair14" WrapWidth="350" SmallCapsType="EveryWord" SmallCaps="20" String="$Header$"/>y
<Label ID="Description" Style="DawnText" WrapWidth="350" String="$Description$"/>
</Stack>
</Instance>
<Instance Name="IconInfoInstance">
<Container ID="Top" Size="300,auto">
<Image Texture="Controls_CircleRim40" Size="40,40" Offset="-5,-2" Color="255,255,255,150">
<Image ID="Icon" Size="32,32" Anchor="C,C" />
</Image>
<Stack ID="TextStack" Offset="36,0" StackGrowth="Bottom" StackPadding="4">
<Label ID="Header" WrapWidth="parent" SmallCapsType="EveryWord" SmallCaps="20" Style="FontFlair14" String="$Header$"/>
<Label ID="Description" WrapWidth="parent" Style="DawnText" String="$Description$"/>
</Stack>
</Container>
</Instance>
<Instance Name="IntelTabButtonInstance">
<Button ID="Button" Size="40,40" Texture="LaunchBar_Hook_ButtonSmall.dds" Style="ButtonDisabledText">
<Image ID="ButtonIcon" Anchor="C,C" Size="22,22" IconSize="22" Icon="ICON_GOSSIP"/>
</Button>
</Instance>
<!-- Create Popup Dialog -->
<MakeInstance Name="PopupDialog"/>
</Context>