@@ -238,7 +238,6 @@ public class MovedStatics {
238
238
*/
239
239
public static IndexedImage tabHighlightImageBottomRight ;
240
240
public static ProducingGraphicsBuffer chatboxTop ;
241
- public static Font helveticaBold ;
242
241
public static int deregisterActorCount = 0 ;
243
242
public static int [] anIntArray456 ;
244
243
public static int regionY ;
@@ -888,7 +887,7 @@ public static void method1013() {
888
887
public static void processGameStatus (int statusCode ) {
889
888
if (statusCode != Game .gameStatusCode ) {
890
889
if (Game .gameStatusCode == 0 )
891
- method144 ( 12433 );
890
+ Game . renderer . disposeLoadingText ( );
892
891
if (statusCode == 20 || statusCode == 40 ) {
893
892
Game .anInt1756 = 0 ;
894
893
anInt2321 = 0 ;
@@ -1225,7 +1224,6 @@ public static void animateNpcs() {
1225
1224
1226
1225
}
1227
1226
1228
- public static FontMetrics fontMetrics ;
1229
1227
1230
1228
public static void drawMenu (int xOffSet , int yOffSet ) {
1231
1229
int height = menuHeight ;
@@ -3087,51 +3085,6 @@ public static IndexedImage method769(int arg0, CacheArchive imageArchive, int ar
3087
3085
return method538 ();
3088
3086
}
3089
3087
3090
- public static void drawLoadingText (int percent , Color color , String desc ) {
3091
- try {
3092
- Graphics graphics = Game .gameCanvas .getGraphics ();
3093
- if (helveticaBold == null ) {
3094
- helveticaBold = new Font ("Helvetica" , Font .BOLD , 13 );
3095
- fontMetrics = Game .gameCanvas .getFontMetrics (helveticaBold );
3096
- }
3097
- if (clearScreen ) {
3098
- clearScreen = false ;
3099
- graphics .setColor (Color .black );
3100
- graphics .fillRect (0 , 0 , width , height );
3101
- }
3102
- if (color == null )
3103
- color = new Color (140 , 17 , 17 );
3104
- try {
3105
- if (loadingBoxImage == null )
3106
- loadingBoxImage = Game .gameCanvas .createImage (304 , 34 );
3107
- Graphics loadingBoxGraphics = loadingBoxImage .getGraphics ();
3108
- loadingBoxGraphics .setColor (color );
3109
- loadingBoxGraphics .drawRect (0 , 0 , 303 , 33 );
3110
- loadingBoxGraphics .fillRect (2 , 2 , percent * 3 , 30 );
3111
- loadingBoxGraphics .setColor (Color .black );
3112
- loadingBoxGraphics .drawRect (1 , 1 , 301 , 31 );
3113
- loadingBoxGraphics .fillRect (2 + 3 * percent , 2 , 300 - 3 * percent , 30 );
3114
- loadingBoxGraphics .setFont (helveticaBold );
3115
- loadingBoxGraphics .setColor (Color .white );
3116
- loadingBoxGraphics .drawString (desc , (304 - (fontMetrics .stringWidth (desc ))) / 2 , 22 );
3117
- graphics .drawImage (loadingBoxImage , width / 2 - 152 , height / 2 - 18 , null );
3118
- } catch (Exception exception ) {
3119
- int centerWidth = width / 2 - 152 ;
3120
- int centerHeight = height / 2 - 18 ;
3121
- graphics .setColor (color );
3122
- graphics .drawRect (centerWidth , centerHeight , 303 , 33 );
3123
- graphics .fillRect (2 + centerWidth , centerHeight + 2 , 3 * percent , 30 );
3124
- graphics .setColor (Color .black );
3125
- graphics .drawRect (centerWidth + 1 , 1 + centerHeight , 301 , 31 );
3126
- graphics .fillRect (percent * 3 + 2 + centerWidth , 2 + centerHeight , 300 + -(3 * percent ), 30 );
3127
- graphics .setFont (helveticaBold );
3128
- graphics .setColor (Color .white );
3129
- graphics .drawString (desc , (304 - (fontMetrics .stringWidth (desc ))) / 2 + centerWidth , 22 + centerHeight );
3130
- }
3131
- } catch (Exception exception ) {
3132
- Game .gameCanvas .repaint ();
3133
- }
3134
- }
3135
3088
3136
3089
public static void method778 (HuffmanEncoding arg1 ) {
3137
3090
aHuffmanEncoding_2590 = arg1 ;
@@ -3317,14 +3270,7 @@ public static void method1057() {
3317
3270
ticksPerLoop = 0 ;
3318
3271
}
3319
3272
3320
- public static void method144 (int arg0 ) {
3321
-
3322
- fontMetrics = null ;
3323
- helveticaBold = null ;
3324
- if (arg0 == 12433 )
3325
- loadingBoxImage = null ;
3326
3273
3327
- }
3328
3274
3329
3275
public static ImageRGB method578 () {
3330
3276
ImageRGB class40_sub5_sub14_sub4 = new ImageRGB ();
0 commit comments