-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbu.java
153 lines (130 loc) · 3.77 KB
/
bu.java
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
import javax.microedition.lcdui.Image;
public final class bu {
private int c;
private int d;
private int e;
private int f;
int a;
private String[] a;
private int g;
private boolean a;
private int h;
private String a;
private byte[] a;
private int i;
private boolean b;
int b;
private Image[] a;
private int j;
public bu(int var1, int var2, int var3, int var4, String var5) {
this.c = var1;
this.d = var2;
this.e = var3;
this.f = var4;
this.j = var4;
this.a = 0;
if (var5 != null) {
this.a(var5);
}
this.b = false;
this.b = 0;
}
public final void a() {
this.a = 0;
}
public final void a(boolean var1) {
this.b = true;
}
public final void a(int var1) {
this.b = var1;
}
public final void a(String var1) {
this.a = var1;
if (this.a == null) {
this.i = 0;
}
if (var1 != null) {
if (this.a == null) {
this.a = q.a(var1, this.e + 3);
} else {
this.a = q.a((String)var1, this.e + 3, 1, e.c + 3, e.d);
}
this.g = q.a(this.a) + this.i;
this.f = g.c(this.j, q.a(this.a) + 13);
if (this.a != null) {
this.f = g.b(this.f, e.d + 10);
}
this.a = this.g > this.f;
if (this.a) {
if (this.a == null) {
this.a = q.a(var1, this.e + 3);
} else {
this.a = q.a((String)var1, this.e - 3, 1, e.c + 3, e.d);
}
this.g = q.a(this.a) + this.i;
this.h = (int)((float)this.f / (float)this.g * (float)this.f) - 1;
}
}
}
public final int a() {
return this.f + q.a() + (this.a ? 6 : 0);
}
public final int b() {
if (this.a == null) {
return 0;
} else {
return this.a == null ? this.a.length : g.b(this.a.length, e.d / this.a.length + 1);
}
}
public final void a(byte[] var1, String var2, boolean var3) {
this.a = var1;
q.a(var2, this.e - e.c - 2);
this.a = e.a(var1);
this.i = 3;
this.a(this.a);
}
public final void b(int var1) {
if (this.g > this.f) {
this.a -= var1 / 10;
if (this.a < -(this.g - this.f)) {
this.a = -(this.g - this.f);
}
}
}
public final void c(int var1) {
this.a += var1 / 10;
if (this.a > 0) {
this.a = 0;
}
}
public final void b() {
at.a.setColor(a.a);
at.a.setClip(this.c - 2, this.d, this.e + 5, this.f);
if (this.a != null) {
e.a(this.a, this.c, this.d + this.a + 2, 0);
}
if (this.a != null) {
if (this.b) {
q.a((String[])this.a, this.c + this.e - 3, this.d + this.a + this.i, this.b, 2);
} else if (this.a == null) {
q.a(this.a, this.c + 2, this.d + this.a + this.i, this.b);
} else {
q.a(this.a, this.c + 2, this.d + this.a + this.i, this.b, e.c + 3, e.d);
}
}
at.a.setClip(0, 0, at.f, at.g);
if (this.a) {
int var1 = this.d + 2 - (int)((float)this.a / (float)this.g * (float)(this.f - 7));
at.a.setColor(a.a);
at.a.drawLine(this.c + this.e, this.d + 2, this.c + this.e, this.d + this.f - 4);
at.a.setColor(-35072);
at.a.fillRect(this.c + this.e - 1, var1, 3, this.h);
at.a.setColor(-4827904);
at.a.drawLine(this.c + this.e - 1, var1 + 1, this.c + this.e - 1, var1 + this.h - 2);
at.a.drawLine(this.c + this.e - 1, var1 + this.h - 1, this.c + this.e - 1, var1 + this.h - 1);
at.a.setColor(-11520);
at.a.drawLine(this.c + this.e, var1 + 1, this.c + this.e, var1 + this.h - 2);
at.a.setColor(a.a);
}
}
}