MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / SplashScreen

Class SplashScreen

src/main/java/ui/SplashScreen.java:49–237  ·  view source on GitHub ↗

@author Eugene Stahov

Source from the content-addressed store, hash-verified

47 * @author Eugene Stahov
48 */
49public final class SplashScreen extends DefForm implements VirtualElement {
50
51 private String capt;
52 private int pos = -1;
53 // private int width;
54 // private int height;
55 public Image splashimg;
56 private ComplexString status;
57 private static SplashScreen instance;
58 public int keypressed = 0;
59 private Font clockFont = FontCache.getFont(true, FontCache.bigSize);
60 private Progress pb;
61 private int exitKey;
62
63 public static SplashScreen getInstance() {
64 if (instance == null) {
65 instance = new SplashScreen();
66 }
67 return instance;
68 }
69
70 /** Creates a new instance of SplashScreen */
71 private SplashScreen() {
72 super(null, false);
73 infobar = null;
74 mainbar = null;
75 try {
76 splashimg = BombusMod.splash;
77 if (splashimg == null) {
78 splashimg = Image.createImage("/images/splash.png");
79 }
80 } catch (Exception e) {
81 }
82
83 show();
84 }
85
86 public SplashScreen(ComplexString status, int exitKey) {
87 super(null, false);
88 this.status = status;
89 this.exitKey = exitKey;
90 infobar = null;
91 mainbar = null;
92 status.setElementAt(new Integer(RosterIcons.ICON_KEYBLOCK_INDEX), 6);
93 try {
94 splashimg = BombusMod.splash;
95 if (splashimg == null) {
96 splashimg = Image.createImage("/images/splash.png");
97 }
98 } catch (Exception e) {
99 }
100 show();
101 }
102
103 protected void drawTraffic(final Graphics g, boolean up) { }
104 protected void drawEnvelop(final Graphics g) { }
105
106 public void commandState() {

Callers

nothing calls this directly

Calls 1

getFontMethod · 0.95

Tested by

no test coverage detected