@@ -361,9 +361,22 @@ public static void drawLoadingScreen(int arg0, TypeFace fontBold, TypeFace fontS
361
361
fontBold .drawShadowedStringCenter (Native .loginScreenMessageLineThree , 180 , y1 , 16776960 , true );
362
362
y1 += 15 ;
363
363
y1 += 10 ;
364
- fontBold .drawShadowedString (English .username + Native .username + (MovedStatics .pulseCycle % 40 < 20 & MovedStatics .loginScreenFocus == 0 ? Native .justAnotherYellowBar : "" ), 90 , y1 , true , 16777215 );
364
+ int width = fontBold .getStringWidth (English .username + Native .username + Native .justAnotherYellowBar );
365
+ int offset = 0 ;
366
+ while (width > 250 ) {
367
+ offset ++;
368
+ width = fontBold .getStringWidth (English .username + Native .username .substring (offset ) + Native .justAnotherYellowBar );
369
+ }
370
+ fontBold .drawShadowedString (English .username + Native .username .substring (offset ) + (MovedStatics .pulseCycle % 40 < 20 & MovedStatics .loginScreenFocus == 0 ? Native .justAnotherYellowBar : "" ), 90 , y1 , true , 16777215 );
365
371
y1 += 15 ;
366
- fontBold .drawShadowedString (English .password + Native .password .method61 () + (MovedStatics .pulseCycle % 40 < 20 & MovedStatics .loginScreenFocus == 1 ? Native .justAnotherYellowBar : "" ), 92 , y1 , true , 16777215 );
372
+ String starredPassword = Native .password .method61 ().toString ();
373
+ width = fontBold .getStringWidth (English .password + starredPassword + Native .justAnotherYellowBar );
374
+ offset = 0 ;
375
+ while (width > 250 ) {
376
+ offset ++;
377
+ width = fontBold .getStringWidth (English .password + starredPassword .substring (offset ) + Native .justAnotherYellowBar );
378
+ }
379
+ fontBold .drawShadowedString (English .password + starredPassword .substring (offset ) + (MovedStatics .pulseCycle % 40 < 20 & MovedStatics .loginScreenFocus == 1 ? Native .justAnotherYellowBar : "" ), 92 , y1 , true , 16777215 );
367
380
Class59 .imgLoginScreenButton .drawImage (-73 + drawX , y2 + -20 );
368
381
y1 += 15 ;
369
382
fontBold .drawShadowedStringCenter (English .login , drawX , y2 + 5 , 16777215 , true );
0 commit comments