88 lines
2.6 KiB
Java
88 lines
2.6 KiB
Java
package p000;
|
|
|
|
import com.m3gworks.engine.GameAppMidlet;
|
|
import javax.microedition.lcdui.Canvas;
|
|
import javax.microedition.lcdui.Graphics;
|
|
import javax.microedition.lcdui.Image;
|
|
|
|
/* renamed from: e */
|
|
/* loaded from: microcounterstrike.jar:e.class */
|
|
public final class SplashScreen extends Canvas implements Runnable {
|
|
|
|
/* renamed from: b */
|
|
private int value173 = getWidth();
|
|
|
|
/* renamed from: e */
|
|
private int value176 = 0;
|
|
|
|
/* renamed from: a */
|
|
private static Image image172 = null;
|
|
|
|
/* renamed from: c */
|
|
private static int value174 = 10;
|
|
|
|
/* renamed from: d */
|
|
private static int value175 = 1000;
|
|
|
|
private SplashScreen() {
|
|
setFullScreenMode(true);
|
|
}
|
|
|
|
public final void paint(Graphics graphics) {
|
|
graphics.setColor(0, 0, 0);
|
|
graphics.fillRect(0, 0, getWidth(), getHeight());
|
|
graphics.drawImage(image172, this.value173, getHeight() / 2, 6);
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Type inference failed for: r0v16 */
|
|
/* JADX WARN: Type inference failed for: r0v17 */
|
|
/* JADX WARN: Type inference failed for: r0v2 */
|
|
/* JADX WARN: Type inference failed for: r0v3, types: [java.lang.Throwable] */
|
|
/* JADX WARN: Type inference failed for: r0v9, types: [long] */
|
|
@Override // java.lang.Runnable
|
|
public final void run() throws InterruptedException {
|
|
while (true) {
|
|
int i = this.value173;
|
|
?? r0 = i;
|
|
if (i <= (getWidth() - image172.getWidth()) / 2) {
|
|
this.value176 += value174;
|
|
int i2 = this.value176;
|
|
r0 = i2;
|
|
if (i2 > value175) {
|
|
execute225();
|
|
GameAppMidlet.getInstance().display.setCurrent(MainUiCanvasBase.getInstance());
|
|
MainUiCanvasBase.getInstance().execute37();
|
|
return;
|
|
}
|
|
}
|
|
try {
|
|
r0 = value174;
|
|
Thread.sleep(r0);
|
|
} catch (InterruptedException e) {
|
|
r0.printStackTrace();
|
|
}
|
|
if (this.value173 > (getWidth() - image172.getWidth()) / 2) {
|
|
this.value173 -= 2;
|
|
}
|
|
repaint();
|
|
}
|
|
}
|
|
|
|
/* renamed from: c */
|
|
private static void execute224() {
|
|
image172 = null;
|
|
}
|
|
|
|
/* renamed from: a */
|
|
public static void execute225() {
|
|
MainUiCanvasBase.loadMenuResources();
|
|
}
|
|
|
|
/* renamed from: b */
|
|
public static void execute226() {
|
|
execute224();
|
|
MainUiCanvasBase.unloadMenuResources();
|
|
}
|
|
}
|