static final void method107
	(Widget[] class46s, int i, int i_32_, int i_33_, int i_34_, int i_35_,
	 int i_36_, int i_37_, int i_38_, int i_39_, int i_40_, int i_41_) {
	for (int i_42_ = 0; i_42_ < class46s.length; i_42_++) {
	    Widget widget = class46s[i_42_];
	    if (widget != null && ((Widget) widget).anInt834 == i) {
		int i_43_ = ((Widget) widget).anInt800 + i_36_;
		int i_44_ = ((Widget) widget).anInt750 + i_37_;
		int i_45_;
		int i_46_;
		int i_47_;
		int i_48_;
		if (((Widget) widget).type == 2) {
		    i_45_ = i_32_;
		    i_46_ = i_33_;
		    i_47_ = i_34_;
		    i_48_ = i_35_;
		} else {
		    int i_49_ = i_43_ + ((Widget) widget).anInt709;
		    int i_50_ = i_44_ + ((Widget) widget).anInt789;
		    if (((Widget) widget).type == 9) {
			i_49_++;
			i_50_++;
		    }
		    i_45_ = i_43_ > i_32_ ? i_43_ : i_32_;
		    i_46_ = i_44_ > i_33_ ? i_44_ : i_33_;
		    i_47_ = i_49_ < i_34_ ? i_49_ : i_34_;
		    i_48_ = i_50_ < i_35_ ? i_50_ : i_35_;
		}
		if (((Widget) widget).type != 0
		    && !((Widget) widget).aBoolean682
		    && ((Class348_Sub44) method105(widget)).anInt7098 == 0
		    && widget != Class331.aClass46_4130
		    && ((Widget) widget).anInt765 != Class290.anInt3717
		    && (((Widget) widget).anInt765
			!= BufferedPacket.anInt7125)) {
		    if (i_45_ < i_47_ && i_46_ < i_48_)
			Class18.method273(widget, -2835);
		} else if (!method111(widget)) {
		    int i_51_ = 0;
		    int i_52_ = 0;
		    if (Class59_Sub1.aBoolean5300) {
			i_51_ = s_Sub3.method4008((byte) -128);
			i_52_ = Class16.method260(false);
		    }
		    if (widget == Class289.aClass46_3701
			&& ToolkitException.method141(Class289.aClass46_3701,
						    (byte) 125) != null) {
			Class50_Sub1.aBoolean5221 = true;
			NativeToolkit.anInt8001 = i_43_;
			Class348_Sub40_Sub13.anInt9203 = i_44_;
		    }
		    if (((Widget) widget).aBoolean676
			|| i_45_ < i_47_ && i_46_ < i_48_) {
			if (((Widget) widget).aBoolean776 && i_40_ >= i_45_
			    && i_41_ >= i_46_ && i_40_ < i_47_
			    && i_41_ < i_48_) {
			    for (InterfaceScript class348_sub36
				     = (InterfaceScript) Class348_Sub1_Sub2
							    .aClass262_8810
							    .getFirst(4);
				 class348_sub36 != null;
				 class348_sub36
				     = ((InterfaceScript)
					Class348_Sub1_Sub2.aClass262_8810
					    .nextForward((byte) 71))) {
				if (((InterfaceScript) class348_sub36)
				    .aBoolean6993) {
				    class348_sub36.removeNode();
				    ((Widget)
				     (((InterfaceScript) class348_sub36)
				      .parent)).aBoolean737
					= false;
				}
			    }
			    if (Class318_Sub1.anInt6392 == 0) {
				Class289.aClass46_3701 = null;
				Class331.aClass46_4130 = null;
			    }
			    SubNode.anInt7059 = 0;
			    Class246.aBoolean3174 = false;
			    MapLoader.aBoolean3103 = false;
			    if (!Class5_Sub1.aBoolean8335)
				Class64_Sub2.method661((byte) 111);
			}
			boolean bool;
			if ((Class258_Sub4.mouseMovementListener.method3597(true)
			     + i_51_) >= i_45_
			    && Class258_Sub4.mouseMovementListener
				   .method3594((byte) 89) + i_52_ >= i_46_
			    && (Class258_Sub4.mouseMovementListener.method3597(true)
				+ i_51_) < i_47_
			    && Class258_Sub4.mouseMovementListener
				   .method3594((byte) 74) + i_52_ < i_48_)
			    bool = true;
			else
			    bool = false;
			if (!r.aBoolean9722 && bool) {
			    if (((Widget) widget).anInt719 >= 0)
				Class362.anInt4458
				    = ((Widget) widget).anInt719;
			    else if (((Widget) widget).aBoolean776)
				Class362.anInt4458 = -1;
			}
			if (!Class5_Sub1.aBoolean8335 && i_40_ >= i_45_
			    && i_41_ >= i_46_ && i_40_ < i_47_
			    && i_41_ < i_48_)
			    Class239_Sub17.method1797(i_41_ - i_44_,
						      i_40_ - i_43_, widget,
						      (byte) -95);
			boolean bool_53_ = false;
			if (Class258_Sub4.mouseMovementListener.method3595(-91)
			    && bool)
			    bool_53_ = true;
			boolean bool_54_ = false;
			AbstractMouseEvent class348_sub45
			    = ((AbstractMouseEvent)
			       Entity.aClass262_8744
				   .getFirst(4));
			if (class348_sub45 != null
			    && class348_sub45.getType(109) == 0
			    && (class348_sub45.method3308((byte) -128) + i_51_
				>= i_45_)
			    && class348_sub45.method3311(33) + i_52_ >= i_46_
			    && (class348_sub45.method3308((byte) -127) + i_51_
				< i_47_)
			    && class348_sub45.method3311(8) + i_52_ < i_48_)
			    bool_54_ = true;
			if (((Widget) widget).aByteArray746 != null
			    && !FileIndexRequest.isConsoleActive()) {
			    for (int i_55_ = 0;
				 (i_55_
				  < ((Widget) widget).aByteArray746.length);
				 i_55_++) {
				if (!Class182.keyboardListener.method2696
				     (((Widget) widget).aByteArray746[i_55_],
				      -122)) {
				    if (((Widget) widget).anIntArray801
					!= null)
					((Widget) widget).anIntArray801
					    [i_55_]
					    = 0;
				} else if ((((Widget) widget).anIntArray801
					    == null)
					   || (Class367_Sub11.logicCycle
					       >= (((Widget) widget)
						   .anIntArray801[i_55_]))) {
				    byte i_56_ = (((Widget) widget)
						  .aByteArray832[i_55_]);
				    if (i_56_ == 0
					|| (((i_56_ & 0x8) == 0
					     || (!Class182.keyboardListener
						      .method2696(86, -124)
						 && !Class182
							 .keyboardListener
							 .method2696(82, -123)
						 && !(Class182
							  .keyboardListener
							  .method2696
						      (81, -122))))
					    && ((i_56_ & 0x2) == 0
						|| Class182.keyboardListener
						       .method2696(86, -127))
					    && ((i_56_ & 0x1) == 0
						|| Class182.keyboardListener
						       .method2696(82, -124))
					    && ((i_56_ & 0x4) == 0
						|| (Class182.keyboardListener
							.method2696
						    (81, -126))))) {
					if (i_55_ < 10)
					    Class348_Sub9.method2780
						(-1, "", (byte) 122, i_55_ + 1,
						 ((Widget) widget).anInt830);
					else if (i_55_ == 10) {
					    Class341.method2678(-2049);
					    Class348_Sub44 class348_sub44
						= method105(widget);
					    Class339.method2666
						(((Class348_Sub44)
						  class348_sub44).anInt7093,
						 class348_sub44
						     .method3307(110),
						 widget, (byte) 21);
					    Class28.aString5001
						= Class239_Sub8
						      .method1753(0, widget);
					    if (Class28.aString5001 == null)
						Class28.aString5001 = "Null";
					    Class28.aString5000
						= ((((Widget) widget)
						    .aString752)
						   + "<col=ffffff>");
					}
					int i_57_ = (((Widget) widget)
						     .anIntArray707[i_55_]);
					if (((Widget) widget).anIntArray801
					    == null)
					    ((Widget) widget).anIntArray801
						= (new int
						   [(((Widget) widget)
						     .aByteArray746).length]);
					if (i_57_ != 0)
					    ((Widget) widget)
						.anIntArray801[i_55_]
						= (Class367_Sub11.logicCycle
						   + i_57_);
					else
					    ((Widget) widget)
						.anIntArray801[i_55_]
						= 2147483647;
				    }
				}
			    }
			}
			if (bool_54_)
			    Class100.method887(widget,
					       (i_51_
						+ class348_sub45
						      .method3308((byte) -127)
						- i_43_),
					       (i_52_
						+ class348_sub45
						      .method3311(-114)
						- i_44_),
					       2147483647);
			if (Class289.aClass46_3701 != null
			    && Class289.aClass46_3701 != widget && bool
			    && method105(widget).method3302(17356))
			    Class318_Sub1_Sub3_Sub4.aClass46_10336 = widget;
			if (widget == Class331.aClass46_4130) {
			    Class127_Sub1.aBoolean8386 = true;
			    Class348_Sub40_Sub37.anInt9461 = i_43_;
			    Class40.anInt558 = i_44_;
			}
			if (((Widget) widget).aBoolean682
			    || ((Widget) widget).anInt765 != 0) {
			    if (bool && Class98.anInt1565 != 0
				&& (((Widget) widget).anObjectArray803
				    != null)) {
				InterfaceScript class348_sub36
				    = new InterfaceScript();
				((InterfaceScript) class348_sub36).aBoolean6993
				    = true;
				((InterfaceScript) class348_sub36).parent
				    = widget;
				((InterfaceScript) class348_sub36).anInt6995
				    = Class98.anInt1565;
				((InterfaceScript) class348_sub36)
				    .parameters
				    = ((Widget) widget).anObjectArray803;
				Class348_Sub1_Sub2.aClass262_8810
				    .addToFront(class348_sub36, -20180);
			    }
			    if (Class289.aClass46_3701 != null
				|| Class5_Sub1.aBoolean8335
				|| ((((Widget) widget).anInt765
				     != AbstractMouseEvent.anInt7102)
				    && SubNode.anInt7059 > 0)) {
				bool_54_ = false;
				bool_53_ = false;
				bool = false;
			    }
			    if (((Widget) widget).anInt765 != 0) {
				if ((((Widget) widget).anInt765
				     == Class239_Sub10.anInt5943)
				    || (((Widget) widget).anInt765
					== Class312.anInt3932)) {
				    Class348_Sub1.aClass46_6561 = widget;
				    if (IntegerVarScriptSettingLoader.aClass305_3304 != null)
					IntegerVarScriptSettingLoader.aClass305_3304.method2292
					    (123, Class348_Sub8.currentToolkit,
					     ((Widget) widget).anInt789);
				    if (((Widget) widget).anInt765
					== Class239_Sub10.anInt5943) {
					if (!Class5_Sub1.aBoolean8335
					    && i_40_ >= i_45_ && i_41_ >= i_46_
					    && i_40_ < i_47_
					    && i_41_ < i_48_) {
					    Class239_Sub24.method1823
						(Class348_Sub8.currentToolkit, i_38_,
						 i_39_, (byte) -50);
					    for (Class318_Sub6 class318_sub6
						     = ((Class318_Sub6)
							DummyInputstream
							    .aClass243_83
							    .method1872(8));
						 class318_sub6 != null;
						 class318_sub6
						     = ((Class318_Sub6)
							(DummyInputstream
							     .aClass243_83
							     .method1878
							 ((byte) -67)))) {
						if (i_40_ >= (((Class318_Sub6)
							       class318_sub6)
							      .anInt6429)
						    && (i_40_
							< (((Class318_Sub6)
							    class318_sub6)
							   .anInt6426))
						    && (i_41_
							>= (((Class318_Sub6)
							     class318_sub6)
							    .anInt6427))
						    && (i_41_
							< (((Class318_Sub6)
							    class318_sub6)
							   .anInt6425))) {
						    Class64_Sub2
							.method661((byte) 107);
						    Class239_Sub13.method1777
							(-3,
							 (((Class318_Sub6)
							   class318_sub6)
							  .aClass318_Sub1_Sub3_Sub3_6431));
						}
					    }
					}
					continue;
				    }
				}
				if (((Widget) widget).anInt765
				    == Class290.anInt3717) {
				    if (widget.method425((Class348_Sub8
							   .currentToolkit),
							  (byte) 3) != null
					&& (IntegerVarScriptSettingLoader.anInt3306 == 0
					    || IntegerVarScriptSettingLoader.anInt3306 == 3)
					&& !Class5_Sub1.aBoolean8335
					&& i_40_ >= i_45_ && i_41_ >= i_46_
					&& i_40_ < i_47_ && i_41_ < i_48_) {
					int i_58_ = i_40_ - i_43_;
					int i_59_ = i_41_ - i_44_;
					int i_60_ = (((Widget) widget)
						     .anIntArray677[i_59_]);
					if (i_58_ >= i_60_
					    && (i_58_
						<= i_60_ + (((Widget) widget)
							    .anIntArray772
							    [i_59_]))) {
					    i_58_ -= (((Widget) widget)
						      .anInt709) / 2;
					    i_59_ -= (((Widget) widget)
						      .anInt789) / 2;
					    int i_61_;
					    if (Class348_Sub40_Sub21.anInt9282
						== 4)
						i_61_ = ((int) (AbtractArchiveLoader
								.aFloat3938)
							 & 0x3fff);
					    else
						i_61_ = (((int) (AbtractArchiveLoader
								 .aFloat3938)
							  + r_Sub2.anInt10483)
							 & 0x3fff);
					    int i_62_ = (Class70.sineTable
							 [i_61_]);
					    int i_63_ = (Class70.cosineTable
							 [i_61_]);
					    if (Class348_Sub40_Sub21.anInt9282
						!= 4) {
						i_62_
						    = (i_62_
						       * ((FloatBuffer
							   .anInt9750)
							  + 256)) >> 8;
						i_63_
						    = (i_63_
						       * ((FloatBuffer
							   .anInt9750)
							  + 256)) >> 8;
					    }
					    int i_64_ = ((i_59_ * i_62_
							  + i_58_ * i_63_)
							 >> 14);
					    int i_65_ = ((i_59_ * i_63_
							  - i_58_ * i_62_)
							 >> 14);
					    int i_66_;
					    int i_67_;
					    if (Class348_Sub40_Sub21.anInt9282
						== 4) {
						i_66_
						    = (Class348_Sub6.anInt6633
						       >> 9) + (i_64_ >> 2);
						i_67_
						    = (Class348_Sub7.anInt6652
						       >> 9) - (i_65_ >> 2);
					    } else {
						int i_68_
						    = ((Class132
							    .localPlayer
							    .method2436
							((byte) 51))
						       - 1) * 256;
						i_66_
						    = ((((Class318_Sub1)
							 (Class132
							  .localPlayer))
							.xHash) - i_68_
						       >> 9) + (i_64_ >> 2);
						i_67_
						    = ((((Class318_Sub1)
							 (Class132
							  .localPlayer))
							.anInt6388) - i_68_
						       >> 9) - (i_65_ >> 2);
					    }
					    if (r.aBoolean9722
						&& ((Class38.anInt500 & 0x40)
						    != 0)) {
						Widget class46_69_
						    = (Class348_Sub22
							   .getWidgetChild
						       (Class9.anInt169,
							Class149.anInt2046));
						if (class46_69_ != null)
						    Class50_Sub3.method466
							(false, " ->", i_67_,
							 (byte) -109, true,
							 i_66_,
							 (((Widget) widget)
							  .itemId),
							 true, 15,
							 (long) (((((Widget)
								    widget)
								   .anInt704)
								  << 32)
								 | (((Widget)
								     widget)
								    .anInt830)),
							 Class28.aString5001,
							 1L,
							 (FloatBuffer
							  .anInt9747));
						else
						    Class341.method2678(-2049);
					    } else {
						if ((Class348_Sub42_Sub8_Sub2
						     .gameType)
						    == (Class14_Sub4
							.aClass230_8638))
						    Class50_Sub3.method466
							(false, "", i_67_,
							 (byte) -116, true,
							 i_66_, -1, true, 12,
							 0L,
							 (GameText
							      .aClass274_3510
							      .getLanguageText
							  ((Class348_Sub33
							    .gameLanguage))),
							 1L, -1);
						Class50_Sub3.method466
						    (false, "", i_67_,
						     (byte) -93, true, i_66_,
						     -1, true, 19, 0L,
						     Class239_Sub4.aString5882,
						     1L, Class333.anInt4144);
					    }
					}
				    }
				    continue;
				}
				if (((Widget) widget).anInt765
				    == AbstractMouseEvent.anInt7102) {
				    Class168.aClass46_2249 = widget;
				    if (bool)
					Class246.aBoolean3174 = true;
				    if (bool_54_) {
					int i_70_
					    = (int) ((double) (i_51_
							       + (class348_sub45
								      .method3308
								  ((byte) -127))
							       - i_43_
							       - ((((Widget)
								    widget)
								   .anInt709)
								  / 2))
						     * 2.0
						     / (double) (Class75
								 .aFloat1247));
					int i_71_
					    = (int) -((double) (i_52_
								+ (class348_sub45
								       .method3311
								   (-111))
								- i_44_
								- ((((Widget)
								     widget)
								    .anInt789)
								   / 2))
						      * 2.0
						      / (double) (Class75
								  .aFloat1247));
					int i_72_
					    = (InterfaceScript.anInt6992 + i_70_
					       + Class75.anInt1266);
					int i_73_ = (Class245.anInt3170 + i_71_
						     + Class75.anInt1263);
					Class348_Sub42_Sub14 class348_sub42_sub14
					    = Class163.method1269(-17096);
					if (class348_sub42_sub14 != null) {
					    int[] is = new int[3];
					    class348_sub42_sub14.method3239
						(true, i_73_, i_72_, is);
					    if (is != null) {
						if (Class182.keyboardListener
							.method2696(82, -128)
						    && (Class192.playerRights
							> 0)) {
						    Class361.method3502(is[2],
									2,
									is[0],
									is[1]);
						    continue;
						}
						MapLoader.aBoolean3103 = true;
						Class348_Sub40_Sub26.anInt9349
						    = is[0];
						DummyInputstream.anInt85
						    = is[1];
						NpcDefinition.anInt1404 = is[2];
					    }
					    SubNode.anInt7059 = 1;
					    Class348_Sub17.aBoolean6788
						= false;
					    Class318_Sub4.anInt6411
						= Class258_Sub4
						      .mouseMovementListener
						      .method3597(true);
					    Class219.anInt2872
						= Class258_Sub4
						      .mouseMovementListener
						      .method3594((byte) 72);
					}
				    } else if (bool_53_
					       && (SubNode.anInt7059
						   > 0)) {
					if (SubNode.anInt7059 == 1
					    && ((Class318_Sub4.anInt6411
						 != Class258_Sub4
							.mouseMovementListener
							.method3597(true))
						|| (Class219.anInt2872
						    != (Class258_Sub4
							    .mouseMovementListener
							    .method3594
							((byte) 117))))) {
					    Class183.anInt2464
						= InterfaceScript.anInt6992;
					    s_Sub2.anInt8237
						= Class245.anInt3170;
					    SubNode.anInt7059 = 2;
					}
					if (SubNode.anInt7059 == 2) {
					    Class348_Sub17.aBoolean6788 = true;
					    Class64_Sub3.method689
						((byte) -59,
						 (Class183.anInt2464
						  + (int) ((double) ((Class318_Sub4
								      .anInt6411)
								     - (Class258_Sub4
									    .mouseMovementListener
									    .method3597
									(true)))
							   * 2.0
							   / (double) (Class75
								       .aFloat1249))));
					    Class286_Sub8.method2170
						((s_Sub2.anInt8237
						  - (int) ((double) ((Class219
								      .anInt2872)
								     - (Class258_Sub4
									    .mouseMovementListener
									    .method3594
									((byte) 83)))
							   * 2.0
							   / (double) (Class75
								       .aFloat1249))),
						 (byte) 3);
					}
				    } else {
					if (SubNode.anInt7059 > 0
					    && !Class348_Sub17.aBoolean6788) {
					    if (((Class318_Sub1_Sub5.anInt8770
						  == 1)
						 || Class318_Sub1_Sub5
							.method2485(-124))
						&& FileArchiveTracker.anInt4776 > 2)
						Class5_Sub2.method191
						    (true,
						     Class318_Sub4.anInt6411,
						     Class219.anInt2872);
					    else if (Class101_Sub1.method913
						     ((byte) 117))
						Class5_Sub2.method191
						    (true,
						     Class318_Sub4.anInt6411,
						     Class219.anInt2872);
					}
					SubNode.anInt7059 = 0;
				    }
				    continue;
				}
				if (((Widget) widget).anInt765
				    == Class218.anInt2861) {
				    if (bool_53_)
					Class341.method2676
					    (((Widget) widget).anInt709,
					     ((Widget) widget).anInt789,
					     (i_51_
					      + Class258_Sub4
						    .mouseMovementListener
						    .method3597(true)
					      - i_43_),
					     (byte) 58,
					     (i_52_
					      + Class258_Sub4
						    .mouseMovementListener
						    .method3594((byte) 111)
					      - i_44_));
				    continue;
				}
				if (((Widget) widget).anInt765
				    == BufferedPacket.anInt7125) {
				    Class175.method1343(i_44_, widget, 1,
							i_43_);
				    continue;
				}
			    }
			    if (!((Widget) widget).aBoolean793 && bool_54_) {
				((Widget) widget).aBoolean793 = true;
				if (((Widget) widget).anObjectArray763
				    != null) {
				    InterfaceScript class348_sub36
					= new InterfaceScript();
				    ((InterfaceScript) class348_sub36)
					.aBoolean6993
					= true;
				    ((InterfaceScript) class348_sub36)
					.parent
					= widget;
				    ((InterfaceScript) class348_sub36).anInt6984
					= (i_51_
					   + class348_sub45
						 .method3308((byte) -128)
					   - i_43_);
				    ((InterfaceScript) class348_sub36).anInt6995
					= (i_52_
					   + class348_sub45.method3311(-123)
					   - i_44_);
				    ((InterfaceScript) class348_sub36)
					.parameters
					= ((Widget) widget).anObjectArray763;
				    Class348_Sub1_Sub2.aClass262_8810
					.addToFront(class348_sub36, -20180);
				}
			    }
			    if (((Widget) widget).aBoolean793 && bool_53_
				&& (((Widget) widget).anObjectArray785
				    != null)) {
				InterfaceScript class348_sub36
				    = new InterfaceScript();
				((InterfaceScript) class348_sub36).aBoolean6993
				    = true;
				((InterfaceScript) class348_sub36).parent
				    = widget;
				((InterfaceScript) class348_sub36).anInt6984
				    = i_51_ + Class258_Sub4.mouseMovementListener
						  .method3597(true) - i_43_;
				((InterfaceScript) class348_sub36).anInt6995
				    = (i_52_
				       + Class258_Sub4.mouseMovementListener
					     .method3594((byte) 98)
				       - i_44_);
				((InterfaceScript) class348_sub36)
				    .parameters
				    = ((Widget) widget).anObjectArray785;
				Class348_Sub1_Sub2.aClass262_8810
				    .addToFront(class348_sub36, -20180);
			    }
			    if (((Widget) widget).aBoolean793 && !bool_53_) {
				((Widget) widget).aBoolean793 = false;
				if (((Widget) widget).anObjectArray742
				    != null) {
				    InterfaceScript class348_sub36
					= new InterfaceScript();
				    ((InterfaceScript) class348_sub36)
					.aBoolean6993
					= true;
				    ((InterfaceScript) class348_sub36)
					.parent
					= widget;
				    ((InterfaceScript) class348_sub36).anInt6984
					= (i_51_
					   + Class258_Sub4.mouseMovementListener
						 .method3597(true)
					   - i_43_);
				    ((InterfaceScript) class348_sub36).anInt6995
					= (i_52_
					   + Class258_Sub4.mouseMovementListener
						 .method3594((byte) 75)
					   - i_44_);
				    ((InterfaceScript) class348_sub36)
					.parameters
					= ((Widget) widget).anObjectArray742;
				    ToolkitInfo.aClass262_4473
					.addToFront(class348_sub36, -20180);
				}
			    }
			    if (bool_53_
				&& (((Widget) widget).anObjectArray805
				    != null)) {
				InterfaceScript class348_sub36
				    = new InterfaceScript();
				((InterfaceScript) class348_sub36).aBoolean6993
				    = true;
				((InterfaceScript) class348_sub36).parent
				    = widget;
				((InterfaceScript) class348_sub36).anInt6984
				    = i_51_ + Class258_Sub4.mouseMovementListener
						  .method3597(true) - i_43_;
				((InterfaceScript) class348_sub36).anInt6995
				    = (i_52_
				       + Class258_Sub4.mouseMovementListener
					     .method3594((byte) 80)
				       - i_44_);
				((InterfaceScript) class348_sub36)
				    .parameters
				    = ((Widget) widget).anObjectArray805;
				Class348_Sub1_Sub2.aClass262_8810
				    .addToFront(class348_sub36, -20180);
			    }
			    if (!((Widget) widget).aBoolean737 && bool) {
				((Widget) widget).aBoolean737 = true;
				if (((Widget) widget).anObjectArray811
				    != null) {
				    InterfaceScript class348_sub36
					= new InterfaceScript();
				    ((InterfaceScript) class348_sub36)
					.aBoolean6993
					= true;
				    ((InterfaceScript) class348_sub36)
					.parent
					= widget;
				    ((InterfaceScript) class348_sub36).anInt6984
					= (i_51_
					   + Class258_Sub4.mouseMovementListener
						 .method3597(true)
					   - i_43_);
				    ((InterfaceScript) class348_sub36).anInt6995
					= (i_52_
					   + Class258_Sub4.mouseMovementListener
						 .method3594((byte) 112)
					   - i_44_);
				    ((InterfaceScript) class348_sub36)
					.parameters
					= ((Widget) widget).anObjectArray811;
				    Class348_Sub1_Sub2.aClass262_8810
					.addToFront(class348_sub36, -20180);
				}
			    }
			    if (((Widget) widget).aBoolean737 && bool
				&& (((Widget) widget).anObjectArray839
				    != null)) {
				InterfaceScript class348_sub36
				    = new InterfaceScript();
				((InterfaceScript) class348_sub36).aBoolean6993
				    = true;
				((InterfaceScript) class348_sub36).parent
				    = widget;
				((InterfaceScript) class348_sub36).anInt6984
				    = i_51_ + Class258_Sub4.mouseMovementListener
						  .method3597(true) - i_43_;
				((InterfaceScript) class348_sub36).anInt6995
				    = (i_52_
				       + Class258_Sub4.mouseMovementListener
					     .method3594((byte) 95)
				       - i_44_);
				((InterfaceScript) class348_sub36)
				    .parameters
				    = ((Widget) widget).anObjectArray839;
				Class348_Sub1_Sub2.aClass262_8810
				    .addToFront(class348_sub36, -20180);
			    }
			    if (((Widget) widget).aBoolean737 && !bool) {
				((Widget) widget).aBoolean737 = false;
				if (((Widget) widget).anObjectArray683
				    != null) {
				    InterfaceScript class348_sub36
					= new InterfaceScript();
				    ((InterfaceScript) class348_sub36)
					.aBoolean6993
					= true;
				    ((InterfaceScript) class348_sub36)
					.parent
					= widget;
				    ((InterfaceScript) class348_sub36).anInt6984
					= (i_51_
					   + Class258_Sub4.mouseMovementListener
						 .method3597(true)
					   - i_43_);
				    ((InterfaceScript) class348_sub36).anInt6995 = (i_52_+ Class258_Sub4.mouseMovementListener
						 .method3594((byte) 90)
					   - i_44_);
				    ((InterfaceScript) class348_sub36)
					.parameters
					= ((Widget) widget).anObjectArray683;
				    ToolkitInfo.aClass262_4473
					.addToFront(class348_sub36, -20180);
				}
			    }
			    if (((Widget) widget).logicCycleScriptParameters != null) {
				InterfaceScript interfaceScript = new InterfaceScript();
				((InterfaceScript) interfaceScript).parent = widget;
				((InterfaceScript) interfaceScript).parameters = ((Widget) widget).logicCycleScriptParameters;
				OutputstreamWorker.aClass262_2707.addToFront(interfaceScript, -20180);
			    }
			    if (((Widget) widget).anObjectArray685 != null && (Class5_Sub1.anInt8352 > ((Widget) widget).anInt738)) {
				if (((Widget) widget).anIntArray818 == null || (Class5_Sub1.anInt8352 - ((Widget) widget).anInt738) > 32) {
				    InterfaceScript class348_sub36 = new InterfaceScript();
				    ((InterfaceScript) class348_sub36).parent = widget;
				    ((InterfaceScript) class348_sub36).parameters = ((Widget) widget).anObjectArray685;
				    Class348_Sub1_Sub2.aClass262_8810
					.addToFront(class348_sub36, -20180);
				} else {
				while_224_:
				    for (int i_74_
					     = ((Widget) widget).anInt738;
					 i_74_ < Class5_Sub1.anInt8352;
					 i_74_++) {
					int i_75_
					    = (Class348_Sub26.anIntArray6890
					       [i_74_ & 0x1f]);
					for (int i_76_ = 0;
					     i_76_ < (((Widget) widget)
						      .anIntArray818).length;
					     i_76_++) {
					    if ((((Widget) widget)
						 .anIntArray818[i_76_])
						== i_75_) {
						InterfaceScript class348_sub36
						    = new InterfaceScript();
						((InterfaceScript)
						 class348_sub36).parent
						    = widget;
						((InterfaceScript)
						 class348_sub36)
						    .parameters
						    = (((Widget) widget)
						       .anObjectArray685);
						Class348_Sub1_Sub2
						    .aClass262_8810.addToFront
						    (class348_sub36, -20180);
						break while_224_;
					    }
					}
				    }
				}
				((Widget) widget).anInt738
				    = Class5_Sub1.anInt8352;
			    }
			    if (((Widget) widget).anObjectArray708 != null
				&& (Class348_Sub40_Sub30.anInt9385
				    > ((Widget) widget).anInt814)) {
				if (((Widget) widget).anIntArray831 == null
				    || (Class348_Sub40_Sub30.anInt9385
					- ((Widget) widget).anInt814) > 32) {
				    InterfaceScript class348_sub36
					= new InterfaceScript();
				    ((InterfaceScript) class348_sub36)
					.parent
					= widget;
				    ((InterfaceScript) class348_sub36)
					.parameters
					= ((Widget) widget).anObjectArray708;
				    Class348_Sub1_Sub2.aClass262_8810
					.addToFront(class348_sub36, -20180);
				} else {
				while_225_:
				    for (int i_77_
					     = ((Widget) widget).anInt814;
					 (i_77_
					  < Class348_Sub40_Sub30.anInt9385);
					 i_77_++) {
					int i_78_
					    = (Class239_Sub21.anIntArray6061
					       [i_77_ & 0x1f]);
					for (int i_79_ = 0;
					     i_79_ < (((Widget) widget)
						      .anIntArray831).length;
					     i_79_++) {
					    if ((((Widget) widget)
						 .anIntArray831[i_79_])
						== i_78_) {
						InterfaceScript class348_sub36
						    = new InterfaceScript();
						((InterfaceScript)
						 class348_sub36).parent
						    = widget;
						((InterfaceScript)
						 class348_sub36)
						    .parameters
						    = (((Widget) widget)
						       .anObjectArray708);
						Class348_Sub1_Sub2
						    .aClass262_8810.addToFront
						    (class348_sub36, -20180);
						break while_225_;
					    }
					}
				    }
				}
				((Widget) widget).anInt814
				    = Class348_Sub40_Sub30.anInt9385;
			    }
			    if (((Widget) widget).configTriggeredScriptParameters != null && (GametipDefinition.anInt3695 > ((Widget) widget).anInt725)) {
				if (((Widget) widget).configScriptTriggers == null || (GametipDefinition.anInt3695 - ((Widget) widget).anInt725) > 32) {
				    InterfaceScript class348_sub36 = new InterfaceScript();
				    ((InterfaceScript) class348_sub36).parent = widget;
				    ((InterfaceScript) class348_sub36).parameters = ((Widget) widget).configTriggeredScriptParameters;
				    Class348_Sub1_Sub2.aClass262_8810.addToFront(class348_sub36, -20180);
				} else {
                                    while_226_:
				    for (int i_80_= ((Widget) widget).anInt725; i_80_ < GametipDefinition.anInt3695; i_80_++) {
					int configId = (Class327.anIntArray4096[i_80_ & 0x1f]);
					for (int j = 0; j < (((Widget) widget).configScriptTriggers).length; j++) {
					    if ((((Widget) widget).configScriptTriggers[j]) == configId) {
						InterfaceScript script = new InterfaceScript();
						((InterfaceScript) script).parent = widget;
						((InterfaceScript) script).parameters = (((Widget) widget).configTriggeredScriptParameters);
						Class348_Sub1_Sub2.aClass262_8810.addToFront(script, -20180);
						break while_226_;
					    }
					}
				    }
				}
				((Widget) widget).anInt725 = GametipDefinition.anInt3695;
			    }
			    if (((Widget) widget).anObjectArray751 != null
				&& (AlternativeFontLoader.anInt1631
				    > ((Widget) widget).anInt723)) {
				if (((Widget) widget).anIntArray771 == null
				    || (AlternativeFontLoader.anInt1631
					- ((Widget) widget).anInt723) > 32) {
				    InterfaceScript class348_sub36
					= new InterfaceScript();
				    ((InterfaceScript) class348_sub36)
					.parent
					= widget;
				    ((InterfaceScript) class348_sub36)
					.parameters
					= ((Widget) widget).anObjectArray751;
				    Class348_Sub1_Sub2.aClass262_8810
					.addToFront(class348_sub36, -20180);
				} else {
				while_227_:
				    for (int i_83_
					     = ((Widget) widget).anInt723;
					 i_83_ < AlternativeFontLoader.anInt1631; i_83_++) {
					int i_84_ = (Class199.anIntArray2633
						     [i_83_ & 0x1f]);
					for (int i_85_ = 0;
					     i_85_ < (((Widget) widget)
						      .anIntArray771).length;
					     i_85_++) {
					    if ((((Widget) widget)
						 .anIntArray771[i_85_])
						== i_84_) {
						InterfaceScript class348_sub36
						    = new InterfaceScript();
						((InterfaceScript)
						 class348_sub36).parent
						    = widget;
						((InterfaceScript)
						 class348_sub36)
						    .parameters
						    = (((Widget) widget)
						       .anObjectArray751);
						Class348_Sub1_Sub2
						    .aClass262_8810.addToFront
						    (class348_sub36, -20180);
						break while_227_;
					    }
					}
				    }
				}
				((Widget) widget).anInt723
				    = AlternativeFontLoader.anInt1631;
			    }
			    if (((Widget) widget).anObjectArray671 != null
				&& (Class326.anInt4086
				    > ((Widget) widget).anInt715)) {
				if (((Widget) widget).anIntArray731 == null
				    || (Class326.anInt4086
					- ((Widget) widget).anInt715) > 32) {
				    InterfaceScript class348_sub36
					= new InterfaceScript();
				    ((InterfaceScript) class348_sub36)
					.parent
					= widget;
				    ((InterfaceScript) class348_sub36)
					.parameters
					= ((Widget) widget).anObjectArray671;
				    Class348_Sub1_Sub2.aClass262_8810
					.addToFront(class348_sub36, -20180);
				} else {
				while_228_:
				    for (int i_86_
					     = ((Widget) widget).anInt715;
					 i_86_ < Class326.anInt4086; i_86_++) {
					int i_87_ = (Class199.anIntArray2632
						     [i_86_ & 0x1f]);
					for (int i_88_ = 0;
					     i_88_ < (((Widget) widget)
						      .anIntArray731).length;
					     i_88_++) {
					    if ((((Widget) widget)
						 .anIntArray731[i_88_])
						== i_87_) {
						InterfaceScript class348_sub36
						    = new InterfaceScript();
						((InterfaceScript)
						 class348_sub36).parent
						    = widget;
						((InterfaceScript)
						 class348_sub36)
						    .parameters
						    = (((Widget) widget)
						       .anObjectArray671);
						Class348_Sub1_Sub2
						    .aClass262_8810.addToFront
						    (class348_sub36, -20180);
						break while_228_;
					    }
					}
				    }
				}
				((Widget) widget).anInt715
				    = Class326.anInt4086;
			    }
			    if ((Class348_Sub42_Sub3.anInt9501
				 > ((Widget) widget).anInt726)
				&& (((Widget) widget).anObjectArray820
				    != null)) {
				InterfaceScript class348_sub36
				    = new InterfaceScript();
				((InterfaceScript) class348_sub36).parent
				    = widget;
				((InterfaceScript) class348_sub36)
				    .parameters
				    = ((Widget) widget).anObjectArray820;
				Class348_Sub1_Sub2.aClass262_8810
				    .addToFront(class348_sub36, -20180);
			    }
			    if ((Class126.anInt4985
				 > ((Widget) widget).anInt726)
				&& (((Widget) widget).anObjectArray734
				    != null)) {
				InterfaceScript class348_sub36
				    = new InterfaceScript();
				((InterfaceScript) class348_sub36).parent
				    = widget;
				((InterfaceScript) class348_sub36)
				    .parameters
				    = ((Widget) widget).anObjectArray734;
				Class348_Sub1_Sub2.aClass262_8810
				    .addToFront(class348_sub36, -20180);
			    }
			    if ((GameMode.anInt2986
				 > ((Widget) widget).anInt726)
				&& (((Widget) widget).anObjectArray761
				    != null)) {
				InterfaceScript class348_sub36
				    = new InterfaceScript();
				((InterfaceScript) class348_sub36).parent
				    = widget;
				((InterfaceScript) class348_sub36)
				    .parameters
				    = ((Widget) widget).anObjectArray761;
				Class348_Sub1_Sub2.aClass262_8810
				    .addToFront(class348_sub36, -20180);
			    }
			    if ((Class189.anInt2523
				 > ((Widget) widget).anInt726)
				&& (((Widget) widget).anObjectArray807
				    != null)) {
				InterfaceScript class348_sub36
				    = new InterfaceScript();
				((InterfaceScript) class348_sub36).parent
				    = widget;
				((InterfaceScript) class348_sub36)
				    .parameters
				    = ((Widget) widget).anObjectArray807;
				Class348_Sub1_Sub2.aClass262_8810
				    .addToFront(class348_sub36, -20180);
			    }
			    if ((Class348_Sub40_Sub23.anInt9313
				 > ((Widget) widget).anInt726)
				&& (((Widget) widget).anObjectArray836
				    != null)) {
				InterfaceScript class348_sub36
				    = new InterfaceScript();
				((InterfaceScript) class348_sub36).parent
				    = widget;
				((InterfaceScript) class348_sub36)
				    .parameters
				    = ((Widget) widget).anObjectArray836;
				Class348_Sub1_Sub2.aClass262_8810
				    .addToFront(class348_sub36, -20180);
			    }
			    ((Widget) widget).anInt726 = LoadingHandler.anInt3918;
			    if (((Widget) widget).anObjectArray822 != null) {
				for (int i_89_ = 0;
				     i_89_ < ClientScript.anInt9699;
				     i_89_++) {
				    InterfaceScript class348_sub36
					= new InterfaceScript();
				    ((InterfaceScript) class348_sub36)
					.parent
					= widget;
				    ((InterfaceScript) class348_sub36).anInt6991
					= Class348_Sub42_Sub5
					      .anInterface6Array9534[i_89_]
					      .method30(false);
				    ((InterfaceScript) class348_sub36).anInt6982
					= Class348_Sub42_Sub5
					      .anInterface6Array9534[i_89_]
					      .getCharacter((byte) 39);
				    ((InterfaceScript) class348_sub36)
					.parameters
					= ((Widget) widget).anObjectArray822;
				    Class348_Sub1_Sub2.aClass262_8810
					.addToFront(class348_sub36, -20180);
				}
			    }
			    if (Class347.aBoolean4284
				&& (((Widget) widget).anObjectArray687
				    != null)) {
				InterfaceScript class348_sub36
				    = new InterfaceScript();
				((InterfaceScript) class348_sub36).parent
				    = widget;
				((InterfaceScript) class348_sub36)
				    .parameters
				    = ((Widget) widget).anObjectArray687;
				Class348_Sub1_Sub2.aClass262_8810
				    .addToFront(class348_sub36, -20180);
			    }
			}
			if (((Widget) widget).type == 5
			    && ((Widget) widget).anInt705 != -1)
			    widget.method444(false, Class123.aClass25_1813,
					      Class30.aClass84_413).method2292
				(84, Class348_Sub8.currentToolkit,
				 ((Widget) widget).anInt789);
			Class18.method273(widget, -2835);
			if (((Widget) widget).type == 0) {
			    method107(class46s, ((Widget) widget).anInt830,
				      i_45_, i_46_, i_47_, i_48_,
				      i_43_ - ((Widget) widget).anInt747,
				      i_44_ - ((Widget) widget).anInt755,
				      i_38_, i_39_, i_40_, i_41_);
			    if (((Widget) widget).children != null)
				method107(((Widget) widget).children,
					  ((Widget) widget).anInt830, i_45_,
					  i_46_, i_47_, i_48_,
					  i_43_ - ((Widget) widget).anInt747,
					  i_44_ - ((Widget) widget).anInt755,
					  i_38_, i_39_, i_40_, i_41_);
			    Class348_Sub41 class348_sub41
				= ((Class348_Sub41)
				   (Class125.aClass356_4915.get
				    ((long) ((Widget) widget).anInt830)));
			    if (class348_sub41 != null) {
				if ((Class348_Sub42_Sub8_Sub2.gameType
				     == Class10.aClass230_186)
				    && (((Class348_Sub41) class348_sub41)
					.anInt7053) == 0
				    && !Class5_Sub1.aBoolean8335 && bool
				    && !Class299_Sub2.aBoolean6327)
				    Class64_Sub2.method661((byte) 105);
				Class182.method1373(((Class348_Sub41)
						     class348_sub41).anInt7050,
						    i_43_, i_45_, i_47_, i_39_,
						    i_38_, -1391, i_40_, i_48_,
						    i_44_, i_41_, i_46_);
			    }
			}
		    }
		}
	    }
	}
    }