This repository has been archived by the owner on Nov 27, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MenuCredits.cs
84 lines (66 loc) · 2.37 KB
/
MenuCredits.cs
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
/*
Copyright (C) 2010 Tom Postma
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
namespace Frogger
{
using System.Drawing;
using System.Windows.Forms;
class MenuCredits : MenuScreen
{
private FrmMenu frmmenu;
private Label[] lblcredits;
public MenuCredits(FrmMenu frmmenu)
: base(frmmenu)
{
this.frmmenu = frmmenu;
lblcredits = new Label[6];
lblcredits[0] = new Label();
lblcredits[0].Text = "Developed By:";
lblcredits[1] = new Label();
lblcredits[1].Text = "Tom";
lblcredits[2] = new Label();
lblcredits[2].Text = "Gertjan";
lblcredits[3] = new Label();
lblcredits[3].Text = "Tested by:";
lblcredits[4] = new Label();
lblcredits[4].Text = "Bert";
lblcredits[5] = new Label();
lblcredits[5].Text = "Lucas";
int locy = 250;
for (int i = 0; i < lblcredits.Length; i++)
{
lblcredits[i].Location = new Point(frmmenu.Size.Width / 2 - lblcredits[i].Size.Width/2, locy);
if (i < 3)
{
lblcredits[i].Font = new Font("Flubber", 18);
}
else
{
lblcredits[i].Font = new Font("Flubber", 14);
}
lblcredits[i].AutoSize = true;
if (i == 2) locy += 36;
else locy += 28;
}
frmmenu.Controls.AddRange(lblcredits);
}
override public void ClearScreen()
{
foreach (Label lbl in lblcredits)
{
lbl.Dispose();
}
}
}
}