-
Notifications
You must be signed in to change notification settings - Fork 0
/
Retry.cs
84 lines (76 loc) · 2.85 KB
/
Retry.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
84
//Copyright 2019 Iris Technologies, All Rights Reserved
using System;
using System.Drawing;
using System.Windows.Forms;
namespace AuraEngine
{
internal static class Retry
{
private static bool RetryLoaded = false;
private static void RetryEnter(object s, EventArgs e)
{
Asset.FindByName("Retry").GetEntity().ForeColor = Color.Red;
}
private static void RetryLeave(object s, EventArgs e)
{
Asset.FindByName("Retry").GetEntity().ForeColor = Color.White;
}
private static void CRetry(object s, EventArgs e)
{
Scene.Hide("Retry");
Installation.Draw();
}
private static void SelectionEnter(object s, EventArgs e)
{
Asset.FindByName("RSelection").GetEntity().ForeColor = Color.Blue;
}
private static void SelectionLeave(object s, EventArgs e)
{
Asset.FindByName("RSelection").GetEntity().ForeColor = Color.White;
}
private static void CSelection(object s, EventArgs e)
{
Scene.Hide("Retry");
Selection.Draw();
}
internal static void Draw()
{
Installation.InfoLoaded = false;
Database.ActualScene = "Retry";
if (!RetryLoaded)
{
RetryLoaded = true;
Scene s = new Scene("Retry");
Label l = new Label();
l.Size = new Size(100, 25);
l.Location = new Point(200, 125);
l.ForeColor = Color.White;
l.BackColor = Color.Black;
l.Font = new Font(FontFamily.GenericSerif, 13, FontStyle.Bold | FontStyle.Italic);
l.TextAlign = ContentAlignment.MiddleCenter;
l.Text = "Retry";
l.MouseEnter += RetryEnter;
l.MouseLeave += RetryLeave;
l.Click += CRetry;
Asset la = new Asset(l, "Retry");
s.AddAsset("Retry");
Label ll = new Label();
ll.Size = new Size(100, 25);
ll.Location = new Point(200, 175);
ll.ForeColor = Color.White;
ll.BackColor = Color.Black;
ll.Font = new Font(FontFamily.GenericSerif, 13, FontStyle.Bold | FontStyle.Italic);
ll.TextAlign = ContentAlignment.MiddleCenter;
ll.Text = "Selection";
ll.MouseEnter += SelectionEnter;
ll.MouseLeave += SelectionLeave;
ll.Click += CSelection;
Asset lla = new Asset(ll, "RSelection");
s.AddAsset("RSelection");
Scene.Register(s);
}
else
Scene.Show("Retry");
}
}
}