-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathBoatMail.cs
48 lines (42 loc) · 1.97 KB
/
BoatMail.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
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace Hacknet
{
internal class BoatMail : MailServer
{
public static string JunkEmail =
"HOr$e Exp@nding R0Lexxxx corp\n\nHello Mister Mott,\nI am but a humble nigerian prince who is crippled by the instability in my country, and require a transfer of 5000 united states dollar in order to rid my country of the scourge of the musclebeasts which roam our plains and ravage our villages\nPlease send these funds to [email protected]\nYours in jegus,\nNigerian Prince";
public Texture2D logo;
public BoatMail(Computer c, string name, OS os)
: base(c, name, os)
{
oddLine = Color.White;
evenLine = Color.White;
setThemeColor(new Color(155, 155, 230));
seperatorLineColor = new Color(22, 22, 22, 150);
panel = TextureBank.load("BoatmailHeader", os.content);
logo = TextureBank.load("BoatmailLogo", os.content);
textColor = Color.Black;
}
public override void drawBackingGradient(Rectangle boundsTo, SpriteBatch sb)
{
}
public override void doInboxHeader(Rectangle bounds, SpriteBatch sb)
{
}
public override void drawTopBar(Rectangle bounds, SpriteBatch sb)
{
os.postFXDrawActions += () =>
{
var destinationRectangle = new Rectangle(bounds.X, bounds.Y, bounds.Width, bounds.Height);
sb.Draw(Utils.white, destinationRectangle, Color.White);
destinationRectangle.Height = panel.Height;
sb.Draw(panel, destinationRectangle, Color.White);
destinationRectangle.Width = destinationRectangle.Height = 36;
destinationRectangle.X += 30;
destinationRectangle.Y += 10;
sb.Draw(logo, destinationRectangle, Color.White);
};
}
}
}