@@ -2584,14 +2584,14 @@ else if(i < Player.localPlayerCount)
2584
2584
Point2d screenPos = getProjectedScreenPosition (actor .anInt3117 , actor .worldY , actor .worldX );
2585
2585
2586
2586
if (screenPos != null && 50 > SceneCluster .anInt770 ) {
2587
- PlayerAppearance . anIntArray680 [SceneCluster .anInt770 ] = TypeFace .fontBold .getStringWidth (actor .forcedChatMessage ) / 2 ;
2588
- PlayerAppearance . anIntArray688 [SceneCluster .anInt770 ] = TypeFace .fontBold .characterDefaultHeight ;
2589
- PlayerAppearance . anIntArray715 [SceneCluster .anInt770 ] = screenPos .x ;
2590
- PlayerAppearance . anIntArray685 [SceneCluster .anInt770 ] = screenPos .y ;
2591
- PlayerAppearance .overheadChatColor [SceneCluster .anInt770 ] = actor .chatcolor ;
2592
- PlayerAppearance .overheadChatShape [SceneCluster .anInt770 ] = actor .chatEffects ;
2593
- PlayerAppearance . anIntArray684 [SceneCluster .anInt770 ] = actor .chatTimer ;
2594
- PlayerAppearance .overheadChatMessage [SceneCluster .anInt770 ] = actor .forcedChatMessage ;
2587
+ Actor . overheadChatHalfWidth [SceneCluster .anInt770 ] = TypeFace .fontBold .getStringWidth (actor .forcedChatMessage ) / 2 ;
2588
+ Actor . overheadChatLetterHeight [SceneCluster .anInt770 ] = TypeFace .fontBold .characterDefaultHeight ;
2589
+ Actor . overheadChatX [SceneCluster .anInt770 ] = screenPos .x ;
2590
+ Actor . overheadChatY [SceneCluster .anInt770 ] = screenPos .y ;
2591
+ Actor .overheadChatColor [SceneCluster .anInt770 ] = actor .chatcolor ;
2592
+ Actor .overheadChatShape [SceneCluster .anInt770 ] = actor .chatEffects ;
2593
+ Actor . overheadChatTimer [SceneCluster .anInt770 ] = actor .chatTimer ;
2594
+ Actor .overheadChatMessage [SceneCluster .anInt770 ] = actor .forcedChatMessage ;
2595
2595
SceneCluster .anInt770 ++;
2596
2596
}
2597
2597
}
@@ -2628,38 +2628,38 @@ else if(i < Player.localPlayerCount)
2628
2628
}
2629
2629
}
2630
2630
for (int i = 0 ; SceneCluster .anInt770 > i ; i ++) {
2631
- int i_3_ = PlayerAppearance . anIntArray715 [i ];
2632
- int i_4_ = PlayerAppearance . anIntArray685 [i ];
2633
- int i_5_ = PlayerAppearance . anIntArray680 [i ];
2634
- int i_6_ = PlayerAppearance . anIntArray688 [i ];
2631
+ int i_3_ = Actor . overheadChatX [i ];
2632
+ int i_4_ = Actor . overheadChatY [i ];
2633
+ int i_5_ = Actor . overheadChatHalfWidth [i ];
2634
+ int i_6_ = Actor . overheadChatLetterHeight [i ];
2635
2635
boolean bool = true ;
2636
2636
while (bool ) {
2637
2637
bool = false ;
2638
2638
for (int i_7_ = 0 ; i > i_7_ ; i_7_ ++) {
2639
- if (-PlayerAppearance . anIntArray688 [i_7_ ] + PlayerAppearance . anIntArray685 [i_7_ ] < i_4_ + 2 && -i_6_ + i_4_ < 2 + PlayerAppearance . anIntArray685 [i_7_ ] && PlayerAppearance . anIntArray715 [i_7_ ] + PlayerAppearance . anIntArray680 [i_7_ ] > -i_5_ + i_3_ && i_5_ + i_3_ > -PlayerAppearance . anIntArray680 [i_7_ ] + PlayerAppearance . anIntArray715 [i_7_ ] && -PlayerAppearance . anIntArray688 [i_7_ ] + PlayerAppearance . anIntArray685 [i_7_ ] < i_4_ ) {
2639
+ if (-Actor . overheadChatLetterHeight [i_7_ ] + Actor . overheadChatY [i_7_ ] < i_4_ + 2 && -i_6_ + i_4_ < 2 + Actor . overheadChatY [i_7_ ] && Actor . overheadChatX [i_7_ ] + Actor . overheadChatHalfWidth [i_7_ ] > -i_5_ + i_3_ && i_5_ + i_3_ > -Actor . overheadChatHalfWidth [i_7_ ] + Actor . overheadChatX [i_7_ ] && -Actor . overheadChatLetterHeight [i_7_ ] + Actor . overheadChatY [i_7_ ] < i_4_ ) {
2640
2640
bool = true ;
2641
- i_4_ = -PlayerAppearance . anIntArray688 [i_7_ ] + PlayerAppearance . anIntArray685 [i_7_ ];
2641
+ i_4_ = -Actor . overheadChatLetterHeight [i_7_ ] + Actor . overheadChatY [i_7_ ];
2642
2642
}
2643
2643
}
2644
2644
}
2645
- PlayerAppearance . anIntArray685 [i ] = i_4_ ;
2645
+ Actor . overheadChatY [i ] = i_4_ ;
2646
2646
2647
- Point2d screenPos = new Point2d (PlayerAppearance . anIntArray715 [i ], PlayerAppearance . anIntArray685 [i ]);
2648
- String message = PlayerAppearance .overheadChatMessage [i ];
2647
+ Point2d screenPos = new Point2d (Actor . overheadChatX [i ], Actor . overheadChatY [i ]);
2648
+ String message = Actor .overheadChatMessage [i ];
2649
2649
if (chatEffectsDisabled == 0 ) {
2650
2650
int textColor = OVERHEAD_CHAT_COLORS [0 ];
2651
2651
// standard 6 colors (yellow, red, green, cyan, purple, white)
2652
2652
// TODO (James) tie this into the ChatColorEffect enum
2653
- if (PlayerAppearance .overheadChatColor [i ] < 6 )
2654
- textColor = OVERHEAD_CHAT_COLORS [PlayerAppearance .overheadChatColor [i ]];
2655
- if (PlayerAppearance .overheadChatColor [i ] == ChatColorEffect .FLASH1 .getNetworkCode ())
2653
+ if (Actor .overheadChatColor [i ] < 6 )
2654
+ textColor = OVERHEAD_CHAT_COLORS [Actor .overheadChatColor [i ]];
2655
+ if (Actor .overheadChatColor [i ] == ChatColorEffect .FLASH1 .getNetworkCode ())
2656
2656
textColor = anInt2628 % 20 >= 10 ? OVERHEAD_CHAT_COLORS [0 ] : OVERHEAD_CHAT_COLORS [1 ];
2657
- if (PlayerAppearance .overheadChatColor [i ] == ChatColorEffect .FLASH2 .getNetworkCode ())
2657
+ if (Actor .overheadChatColor [i ] == ChatColorEffect .FLASH2 .getNetworkCode ())
2658
2658
textColor = anInt2628 % 20 < 10 ? 255 : OVERHEAD_CHAT_COLORS [3 ];
2659
- if (PlayerAppearance .overheadChatColor [i ] == ChatColorEffect .FLASH3 .getNetworkCode ())
2659
+ if (Actor .overheadChatColor [i ] == ChatColorEffect .FLASH3 .getNetworkCode ())
2660
2660
textColor = anInt2628 % 20 >= 10 ? 8454016 : 45056 ;
2661
- if (PlayerAppearance .overheadChatColor [i ] == ChatColorEffect .GLOW1 .getNetworkCode ()) {
2662
- int i_9_ = 150 - PlayerAppearance . anIntArray684 [i ];
2661
+ if (Actor .overheadChatColor [i ] == ChatColorEffect .GLOW1 .getNetworkCode ()) {
2662
+ int i_9_ = 150 - Actor . overheadChatTimer [i ];
2663
2663
if (i_9_ >= 50 ) {
2664
2664
if (i_9_ < 100 )
2665
2665
textColor = -((-50 + i_9_ ) * 327680 ) + OVERHEAD_CHAT_COLORS [0 ];
@@ -2668,8 +2668,8 @@ else if(i_9_ < 150)
2668
2668
} else
2669
2669
textColor = OVERHEAD_CHAT_COLORS [1 ] + 1280 * i_9_ ;
2670
2670
}
2671
- if (PlayerAppearance .overheadChatColor [i ] == ChatColorEffect .GLOW2 .getNetworkCode ()) {
2672
- int i_10_ = 150 + -PlayerAppearance . anIntArray684 [i ];
2671
+ if (Actor .overheadChatColor [i ] == ChatColorEffect .GLOW2 .getNetworkCode ()) {
2672
+ int i_10_ = 150 + -Actor . overheadChatTimer [i ];
2673
2673
if (i_10_ >= 50 ) {
2674
2674
if (i_10_ >= 100 ) {
2675
2675
if (i_10_ < 150 )
@@ -2679,8 +2679,8 @@ else if(i_9_ < 150)
2679
2679
} else
2680
2680
textColor = 5 * i_10_ + OVERHEAD_CHAT_COLORS [1 ];
2681
2681
}
2682
- if (PlayerAppearance .overheadChatColor [i ] == ChatColorEffect .GLOW3 .getNetworkCode ()) {
2683
- int i_11_ = -PlayerAppearance . anIntArray684 [i ] + 150 ;
2682
+ if (Actor .overheadChatColor [i ] == ChatColorEffect .GLOW3 .getNetworkCode ()) {
2683
+ int i_11_ = -Actor . overheadChatTimer [i ] + 150 ;
2684
2684
if (i_11_ >= 50 ) {
2685
2685
if (i_11_ < 100 )
2686
2686
textColor = 327685 * (i_11_ - 50 ) + OVERHEAD_CHAT_COLORS [2 ];
@@ -2689,33 +2689,33 @@ else if(i_11_ < 150)
2689
2689
} else
2690
2690
textColor = -(327685 * i_11_ ) + OVERHEAD_CHAT_COLORS [5 ];
2691
2691
}
2692
- if (PlayerAppearance .overheadChatShape [i ] == ChatShapeEffect .NONE .getNetworkCode ()) {
2692
+ if (Actor .overheadChatShape [i ] == ChatShapeEffect .NONE .getNetworkCode ()) {
2693
2693
TypeFace .fontBold .drawStringLeft (message , screenPos .x , screenPos .y + 1 , 0 );
2694
2694
TypeFace .fontBold .drawStringLeft (message , screenPos .x , screenPos .y , textColor );
2695
2695
}
2696
- if (PlayerAppearance .overheadChatShape [i ] == ChatShapeEffect .WAVE .getNetworkCode ()) {
2696
+ if (Actor .overheadChatShape [i ] == ChatShapeEffect .WAVE .getNetworkCode ()) {
2697
2697
TypeFace .fontBold .drawCenteredStringWaveY (message , screenPos .x , screenPos .y + 1 , anInt2628 , 0 );
2698
2698
TypeFace .fontBold .drawCenteredStringWaveY (message , screenPos .x , screenPos .y , anInt2628 , textColor );
2699
2699
}
2700
- if (PlayerAppearance .overheadChatShape [i ] == ChatShapeEffect .WAVE2 .getNetworkCode ()) {
2700
+ if (Actor .overheadChatShape [i ] == ChatShapeEffect .WAVE2 .getNetworkCode ()) {
2701
2701
TypeFace .fontBold .drawCenteredStringWaveXY (message , screenPos .x , 1 + screenPos .y , anInt2628 , 0 );
2702
2702
TypeFace .fontBold .drawCenteredStringWaveXY (message , screenPos .x , screenPos .y , anInt2628 , textColor );
2703
2703
}
2704
- if (PlayerAppearance .overheadChatShape [i ] == ChatShapeEffect .SHAKE .getNetworkCode ()) {
2705
- TypeFace .fontBold .drawCenteredStringWaveXYMove (message , screenPos .x , screenPos .y + 1 , anInt2628 , -PlayerAppearance . anIntArray684 [i ] + 150 , 0 );
2706
- TypeFace .fontBold .drawCenteredStringWaveXYMove (message , screenPos .x , screenPos .y , anInt2628 , -PlayerAppearance . anIntArray684 [i ] + 150 , textColor );
2704
+ if (Actor .overheadChatShape [i ] == ChatShapeEffect .SHAKE .getNetworkCode ()) {
2705
+ TypeFace .fontBold .drawCenteredStringWaveXYMove (message , screenPos .x , screenPos .y + 1 , anInt2628 , -Actor . overheadChatTimer [i ] + 150 , 0 );
2706
+ TypeFace .fontBold .drawCenteredStringWaveXYMove (message , screenPos .x , screenPos .y , anInt2628 , -Actor . overheadChatTimer [i ] + 150 , textColor );
2707
2707
}
2708
- if (PlayerAppearance .overheadChatShape [i ] == ChatShapeEffect .SCROLL .getNetworkCode ()) {
2708
+ if (Actor .overheadChatShape [i ] == ChatShapeEffect .SCROLL .getNetworkCode ()) {
2709
2709
int i_12_ = TypeFace .fontBold .getStringWidth (message );
2710
- int i_13_ = (i_12_ + 100 ) * (150 + -PlayerAppearance . anIntArray684 [i ]) / 150 ;
2710
+ int i_13_ = (i_12_ + 100 ) * (150 + -Actor . overheadChatTimer [i ]) / 150 ;
2711
2711
Rasterizer .setBounds (screenPos .x + -50 , 0 , 50 + screenPos .x , 334 );
2712
2712
TypeFace .fontBold .drawString (message , -i_13_ + screenPos .x + 50 , screenPos .y + 1 , 0 );
2713
2713
TypeFace .fontBold .drawString (message , 50 + screenPos .x + -i_13_ , screenPos .y , textColor );
2714
2714
Rasterizer .resetBounds ();
2715
2715
}
2716
- if (PlayerAppearance .overheadChatShape [i ] == ChatShapeEffect .SLIDE .getNetworkCode ()) {
2716
+ if (Actor .overheadChatShape [i ] == ChatShapeEffect .SLIDE .getNetworkCode ()) {
2717
2717
int i_14_ = 0 ;
2718
- int i_15_ = 150 + -PlayerAppearance . anIntArray684 [i ];
2718
+ int i_15_ = 150 + -Actor . overheadChatTimer [i ];
2719
2719
Rasterizer .setBounds (0 , -1 + -TypeFace .fontBold .characterDefaultHeight + screenPos .y , 512 , 5 + screenPos .y );
2720
2720
if (i_15_ >= 25 ) {
2721
2721
if (i_15_ > 125 )
0 commit comments