-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMsgDlg.cs
More file actions
122 lines (111 loc) · 2.84 KB
/
Copy pathMsgDlg.cs
File metadata and controls
122 lines (111 loc) · 2.84 KB
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
using System;
// Token: 0x020000A9 RID: 169
public class MsgDlg : Dialog
{
// Token: 0x06000769 RID: 1897 RVA: 0x00006A92 File Offset: 0x00004C92
public MsgDlg()
{
this.padLeft = 35;
if (GameCanvas.w <= 176)
{
this.padLeft = 10;
}
if (GameCanvas.w > 320)
{
this.padLeft = 80;
}
}
// Token: 0x0600076A RID: 1898 RVA: 0x00006AD0 File Offset: 0x00004CD0
public void pleasewait()
{
this.setInfo(mResources.PLEASEWAIT, null, null, null);
GameCanvas.currentDialog = this;
}
// Token: 0x0600076B RID: 1899 RVA: 0x00006815 File Offset: 0x00004A15
public override void show()
{
GameCanvas.currentDialog = this;
}
// Token: 0x0600076C RID: 1900 RVA: 0x000632E0 File Offset: 0x000614E0
public void setInfo(string info)
{
this.info = mFont.tahoma_8b.splitFontArray(info, GameCanvas.w - (this.padLeft * 2 + 20));
this.h = 80;
if (this.info.Length >= 5)
{
this.h = this.info.Length * mFont.tahoma_8b.getHeight() + 20;
}
}
// Token: 0x0600076D RID: 1901 RVA: 0x00063344 File Offset: 0x00061544
public void setInfo(string info, Command left, Command center, Command right)
{
this.info = mFont.tahoma_8b.splitFontArray(info, GameCanvas.w - (this.padLeft * 2 + 20));
this.left = left;
this.center = center;
this.right = right;
this.h = 80;
if (this.info.Length >= 5)
{
this.h = this.info.Length * mFont.tahoma_8b.getHeight() + 20;
}
if (GameCanvas.isTouch)
{
if (left != null)
{
this.left.x = GameCanvas.w / 2 - 68 - 5;
this.left.y = GameCanvas.h - 50;
}
if (right != null)
{
this.right.x = GameCanvas.w / 2 + 5;
this.right.y = GameCanvas.h - 50;
}
if (center != null)
{
this.center.x = GameCanvas.w / 2 - 35;
this.center.y = GameCanvas.h - 50;
}
}
this.isWait = false;
}
// Token: 0x0600076E RID: 1902 RVA: 0x00063458 File Offset: 0x00061658
public override void paint(mGraphics g)
{
g.setClip(0, 0, GameCanvas.w, GameCanvas.h);
if (LoginScr.isContinueToLogin)
{
return;
}
int num = GameCanvas.h - this.h - 38;
int w = GameCanvas.w - this.padLeft * 2;
GameCanvas.paintz.paintPopUp(this.padLeft, num, w, this.h, g);
int num2 = num + (this.h - this.info.Length * mFont.tahoma_8b.getHeight()) / 2 - 2;
if (this.isWait)
{
num2 += 8;
GameCanvas.paintShukiren(GameCanvas.hw, num2 - 12, g);
}
int i = 0;
int num3 = num2;
while (i < this.info.Length)
{
mFont.tahoma_7b_dark.drawString(g, this.info[i], GameCanvas.hw, num3, 2);
i++;
num3 += mFont.tahoma_8b.getHeight();
}
base.paint(g);
}
// Token: 0x0600076F RID: 1903 RVA: 0x00006AE6 File Offset: 0x00004CE6
public override void update()
{
base.update();
}
// Token: 0x04000E0E RID: 3598
public string[] info;
// Token: 0x04000E0F RID: 3599
public bool isWait;
// Token: 0x04000E10 RID: 3600
private int h;
// Token: 0x04000E11 RID: 3601
private int padLeft;
}