-
Notifications
You must be signed in to change notification settings - Fork 4
/
CharInfoScreen.mdl
248 lines (183 loc) · 9.47 KB
/
CharInfoScreen.mdl
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
use "effect";
use "font";
use "charinfoscreendata";
use "gamepanes";
/////////////////////////////////////////////////////////////////////////////
//
// Zone Club Screen
//
/////////////////////////////////////////////////////////////////////////////
//
// Normal buttons
//
leaderboardButtonPane = ButtonPane(ImportImage("btnzone2leaderbmp", true), ButtonNormal, false);
squadsButtonPane = ButtonPane(ImportImage("btnzone2squadsbmp", true), ButtonNormal, false);
squads2ButtonPane = ButtonPane(ImportImage("btnzone2squads2bmp", false), ButtonNormal, false);
zoneclubButtonPane = ButtonPane(ImportImage("btneventsplayzonebmp", true), ButtonNormal, false);
// gamesButtonPane = ButtonPane(ImportImage("btnzone2gamesbmp", false), ButtonNormal, false);
webButtonPane = ButtonPane(ImportImage("btnzone2webbmp", true), ButtonNormal, false);
//
// Character Name
//
characterNameEditPane = EditPane(Point(170, 25), largeFont);
//
// Description
//
descriptionEditPane = EditPane(Point(200, 20), largeFont);
descriptionStrImage = StringImage(JustifyLeft, 325, smallFont, Color(1, 1, 1), descriptionStr);
descriptionPane = AnimatedImagePane(PaneImage(BlackPane(AnimatedImagePaneRect(descriptionStrImage, Rect(0, -75, 330, 0))), false, true));
editButtonPane = ButtonPane(ImportImage("btnsquadeditsquadbmp", false), ButtonNormal, false);
applyButtonPane = ButtonPane(ImportImage("btnsquadapplybmp", false), ButtonNormal, false);
memberSinceImage = StringImage(JustifyLeft, 50, smallFont, Color(1, 1, 1), memberSinceStr);
size = Point(180, 21);
civComboPane = StringComboPane(size, Point(150, 21), smallFont, Color(1, 1, 1));
CivNames = ["All", "Bios", "Gigacorp", "Iron Coalition", "Belters", "Rixian Unity"];
CivIDs = [ -1, 35, 18, 25, 101, 201]; // keep in sync with database and with CivNames; -1 means All
//
// Stats
//
statsTextColor = Color(1, 1, 1);
rankImage = StringImage(JustifyLeft, 150, smallFont, statsTextColor, rankStr);
baseCapturesImage = StringImage(JustifyLeft, 50, smallFont, statsTextColor, baseCapturesStr);
scoreImage = StringImage(JustifyLeft, 50, smallFont, statsTextColor, scoreStr);
baseKillsImage = StringImage(JustifyLeft, 50, smallFont, statsTextColor, baseKillsStr);
killsImage = StringImage(JustifyLeft, 50, smallFont, statsTextColor, killsStr);
deathsImage = StringImage(JustifyLeft, 50, smallFont, statsTextColor, deathsStr);
winsImage = StringImage(JustifyLeft, 50, smallFont, statsTextColor, winsStr);
lossesImage = StringImage(JustifyLeft, 50, smallFont, statsTextColor, lossesStr);
promotionAtImage = StringImage(JustifyLeft, 50, smallFont, statsTextColor, promotionAtStr);
minutesPlayedImage = StringImage(JustifyLeft, 50, smallFont, statsTextColor, minutesPlayedStr);
lastPlayedImage = StringImage(JustifyLeft, 75, smallFont, statsTextColor, lastPlayedStr);
combatRatingImage = StringImage(JustifyLeft, 50, smallFont, statsTextColor, combatRatingStr);
//squadsComboPane = StringComboPane(size, size, smallFont, Color(1, 1, 1));
squadsScrollBar = ScrollBarPane(Point(20, 40));
squadsListPane = StringListWithScrollBarPane(Point(110, 42), squadsScrollBar, smallFont, Color(1, 0, 0));
statsPane =
AnimatedImagePane
(
GroupImage([
TranslateImage(rankImage, Point(135,-13)),
TranslateImage(scoreImage, Point(135,-38)),
TranslateImage(combatRatingImage, Point(135,-60)),
TranslateImage(lastPlayedImage, Point(135,-84)),
TranslateImage(baseCapturesImage, Point(345,-13)),
TranslateImage(baseKillsImage, Point(345,-38)),
TranslateImage(promotionAtImage, Point(345,-60)),
TranslateImage(minutesPlayedImage, Point(345,-84)),
TranslateImage(killsImage, Point(525,-13)),
TranslateImage(deathsImage, Point(525,-38)),
TranslateImage(winsImage, Point(525,-60)),
TranslateImage(lossesImage, Point(525,-84))
])
);
waterMarkPane =
ImagePane(
civImage,
[ (statsPane, Point(0, 0))
]
);
//
// Medals window
//
maxMedalBitmapSize = Point(80, 130); // (x, y) where x is width, y is height
// This commented out code show an example of a custom horizontal scroll bar
//
//sbImage = ImportImage("scrollthumbbmp", false);
//sbPane1 = ButtonPane(ImportImage("btncharinfo2zonebmp", false), ButtonNormal, false);
//sbPane2 = ButtonPane(ImportImage("btncharinfo2zonebmp", false), ButtonNormal, false);
//scrollBar = CustomScrollBarHorizontalPane(Point(295, 50), sbPane1, sbPane2, sbImage);
scrollBar = ScrollBarHorizontalPane(Point(295, 10));
medalsListPane = ListHorizontalWithScrollBarPane(Point(295, 130), scrollBar);
medalNameImage = StringImage(JustifyCenter, 230, medBoldVerdana, Color(1, 1, 1), medalNameStr);
medalDescriptionImage = StringImage(JustifyLeft, 230, medVerdana, Color(1, 1, 1), medalDescriptionStr);
medalNamePane = AnimatedImagePaneRect(medalNameImage, Rect(0, -25, 230, 0));
medalDescriptionPane = AnimatedImagePaneRect(medalDescriptionImage, Rect(0, -100, 230, 0));
//
// Rollover tips
//
hoverSite = HoverSite(0);
hoverString =
SwitchString(
HoverSiteGetID(hoverSite),
emptyString,
[
( 1, "Takes you to the Allegiance Zone Main Menu"),
( 2, "Takes you to the Squadrons Screen"),
( 3, "Takes you to the Leaderboard"),
( 4, "The current player's callsign. "),
( 5, "Edit your character description"),
( 6, "Edit your character description"),
( 7, "Your Medals Earned"),
( 8, "Filter statistics by factions."),
( 9, "Information about the current player."),
(10, "Message10"),
(11, "Message11"),
(12, "Message12"),
(13, "Message13"),
(14, "Message14"),
(15, "Message15"),
(16, "Message16"),
(17, "Message17"),
(18, "Message18"),
(19, "Message19"),
(20, "Message20"),
(21, "Message21"),
(22, "Message22"),
(23, "Takes you to the Zone Games List."),
(24, "Takes you to the Allegiance Zone webpage."),
(25, "When you became a pilot."),
(26, "Message26")
]
);
hoverImage = StringImage(JustifyLeft, 230, smallFont, white, hoverString);
hoverPane = AnimatedImagePaneRect(hoverImage, Rect(0, -35, 230, 0));
//
// Titles
//
yellowText = Color(0.878, 0.573, 0);
whiteText = Color(1, 1, 1);
titlePane = StringPane("PLAYER PROFILE:", yellowText, Point(400, 30), JustifyLeft, titleFont);
captionPane = StringPane("THE FOLLOWING INFORMATION DETAILS THE PILOT YOU HAVE SELECTED.", whiteText, Point(800, 30), JustifyLeft, promptFont);
//
// The background and control positions
//
screen =
ScreenPane(
ImportImageFromFile("charinfoscreenbmp.png", false),
[
(titlePane, Point(15, 15)),
(captionPane, Point(75, 50)),
(HoverPane(hoverSite, 25, AnimatedImagePaneRect(memberSinceImage, Rect(0, -25, 50, 0))), Point(24, 100)),
(HoverPane(hoverSite, 1, zoneclubButtonPane), Point(24, 523)),
(HoverPane(hoverSite, 2, squadsButtonPane), Point(104, 523)),
(HoverPane(hoverSite, 2, squads2ButtonPane), Point(281, 114)),
(HoverPane(hoverSite, 3, leaderboardButtonPane),Point(184, 523)),
(HoverPane(hoverSite, 24, webButtonPane), Point(264, 523)),
(HoverPane(hoverSite, 4, characterNameEditPane),Point(181, 70)),
(editButtonPane, Point(698, 109)),
(applyButtonPane, Point(698, 109)),
(HoverPane(hoverSite, 6, descriptionEditPane), Point(358, 88)),
(descriptionPane, Point(358, 88)),
(HoverPane(hoverSite, 7, medalsListPane), Point(133, 340)),
(HoverPane(hoverSite, 8, civComboPane), Point(242, 189)),
(HoverPane(hoverSite, 9, waterMarkPane), Point(115, 208)),
(squadsListPane, Point(141, 114)),
(squadsScrollBar, Point(255, 115)),
// (HoverPane(hoverSite, 10, rankPane), Point(320, 185)),
// (HoverPane(hoverSite, 11, rankPane), Point(320, 215)),
// (HoverPane(hoverSite, 12, baseCapturesPane), Point(320, 245)),
// (HoverPane(hoverSite, 13, scorePane), Point(320, 277)),
// (HoverPane(hoverSite, 14, baseKillsPane), Point(320, 308)),
// (HoverPane(hoverSite, 15, gamesPlayedPane), Point(320, 340)),
// (HoverPane(hoverSite, 16, killsPane), Point(550, 185)),
// (HoverPane(hoverSite, 17, deathsPane), Point(550, 215)),
// (HoverPane(hoverSite, 18, winsPane), Point(550, 245)),
// (HoverPane(hoverSite, 19, lossesPane), Point(550, 277)),
// (HoverPane(hoverSite, 20, promotionAtPane), Point(550, 308)),
// (HoverPane(hoverSite, 21, squadsComboPane), Point(550, 340)),
(medalNamePane, Point(453, 357)),
(medalDescriptionPane, Point(453, 380)),
(scrollBar, Point(139, 475)),
(hoverPane, Point( 555, 550)) // place the text
]
);