forked from AllegianceZone/Artwork
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathZoneClubScreen.mdl
113 lines (98 loc) · 4.03 KB
/
ZoneClubScreen.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
use "effect";
use "zoneclubdata";
use "font";
use "gamepanes";
/////////////////////////////////////////////////////////////////////////////
//
// Zone Club Screen
//
/////////////////////////////////////////////////////////////////////////////
paneSizeY = 238;
paneSizeX = 523;
messageImage = MDLFileImage("messageofthedaydefault");
imageSize = Max(PointY(ImageSize(messageImage)), paneSizeY);
delta = Subtract(imageSize, paneSizeY);
y =
Subtract(
Mod(
Multiply(10, Subtract(time, timeStart)),
delta
),
delta
);
messagePane =
AnimatedImagePaneRect(
PaneImage(
BlackPane(
AnimatedImagePaneRect(
TranslateImage(
messageImage,
PointV(0, y)
),
Rect(0, 0, paneSizeX, paneSizeY)
)
),
false,
true
),
Rect(0, 0, paneSizeX, paneSizeY)
);
//
// Normal buttons
//
gamesButtonPane = ButtonPane(ImportImage("btnzone2gamesbmp", true), ButtonNormal, false);
gamesBigButtonPane = ButtonPane(ImportImage("btnzone2games2bmp", true), ButtonNormal, false);
zoneEventsButtonPane = ButtonPane(ImportImage("btnzoneeventsbmp", true), ButtonNormal, false);
squadsButtonPane = ButtonPane(ImportImage("btnzone2squadsbmp", true), ButtonNormal, false);
mainmenuButtonPane = SoundButtonPane(ImportImage("btnzone2mainmenubmp", true), ButtonNormal, false, negativeButtonClickSoundId);
playerProfileButtonPane = ButtonPane(ImportImage("btnzone2playerprofilebmp", true), ButtonNormal, false);
webButtonPane = ButtonPane(ImportImage("btnzone2webbmp", true), ButtonNormal, false);
leaderboardButtonPane = ButtonPane(ImportImage("btnzone2leaderbmp", true), ButtonNormal, false);
//
// Titles
//
yellowText = Color(0.878, 0.573, 0);
whiteText = Color(1, 1, 1);
titlePane = StringPane("ALLEGIANCE ZONE", yellowText, Point(200, 30), JustifyLeft, titleFont);
captionPane = StringPane("ACCESS THE ALLEGIANCE ZONE GAMES LIST, OR EXAMINE COMPLETE STATISTICS ON ALL SQUADS AND PLAYERS", whiteText, Point(800, 30), JustifyLeft, promptFont);
//
// Rollover tips
//
hoverSite = HoverSite(0);
hoverString =
SwitchString(
HoverSiteGetID(hoverSite),
emptyString,
[
( 1, "Return to the Allegiance main menu."),
( 2, "See a list of games currently available at Allegiance Zone."),
( 3, "Access your own player statistics."),
( 4, "Access the statistics of all Allegiance squads, create and manage your own."),
( 5, "Connect to the Allegiance Zone website."),
( 6, "Access the statistics of all Allegiance Zone players."),
( 7, "See the current schedule of Allegiance Zone events.")
]
);
hoverImage = StringImage(JustifyLeft, 215, smallFont, white, hoverString);
hoverPane = AnimatedImagePaneRect(hoverImage, Rect(0, -35, 215, 0));
//
// The background and control positions
//
screen =
ScreenPane(
ImportImageFromFile("zoneauscreenbmp.png", false),
[
(titlePane, Point(15, 15)),
(captionPane, Point(75, 50)),
(HoverPane(hoverSite, 1, mainmenuButtonPane ), Point(24, 523)),
(HoverPane(hoverSite, 2, gamesButtonPane ), Point(104, 523)),
(HoverPane(hoverSite, 7, zoneEventsButtonPane ), Point(184, 523)),
(HoverPane(hoverSite, 2, gamesBigButtonPane ), Point(200, 382)),
(HoverPane(hoverSite, 4, squadsButtonPane ), Point(264, 523)),
(HoverPane(hoverSite, 6, leaderboardButtonPane ), Point(344, 523)),
(HoverPane(hoverSite, 3, playerProfileButtonPane ), Point(424, 523)),
(HoverPane(hoverSite, 5, webButtonPane ), Point(504, 523)),
(messagePane, Point(136, 139)),
(hoverPane, Point( 580, 550))// place the text
]
);