import com.creativemobile.DragRacing.menus.MainMenu; import java.util.Vector; public class v implements bv, en { private bx a_bx; private String[] a_Strings; private Vector a_Vector; private int a_int; private int b_int; private int c_int; private int d_int; private int e_int; private int f_int; private ad a_ad; private int g_int; private int h_int; private int i_int; private ds[][] a_dsss; private int j_int; private int[] a_ints; private ds a_ds; private ds b_ds; private ds c_ds; private ds d_ds; private ds e_ds; private static Class a_Class; public v() { new Vector(); a_Vector = new Vector(); g_int = 0; h_int = 1; i_int = 2; j_int = 1; a_Strings = new String[5]; a_Strings[0] = co.a_String("TXT_RACE"); a_Strings[1] = co.a_String("TXT_GARAGE"); a_Strings[2] = co.a_String("TXT_CAR_DEALER"); a_Strings[3] = co.a_String("TXT_PROFILE"); a_Strings[4] = co.a_String("TXT_INFO"); } public final void a_void(ai ai_1, bx bx_1) { a_bx = bx_1; a_dsss = new ds[3][]; a_ints = new int[3]; j_int = 2; a_ints[0] = 0; a_ints[h_int] = 0; a_ints[i_int] = 0; a_ad = new ad(ai_1, bx_1, getClass()); a_ad.a_void(bx_1.a_int(), bx_1.b_int()); a_ad.a_void(); u u_1 = ai_1.a_u("graphics/menu/main_bg.png"); ai_1.a_ej(u_1, 0, a_ad.a_int(), 2); (u_1 = ai_1.a_u("graphics/menu/main_helmet.png")).b_u(); u u_2; (u_2 = ai_1.a_u("graphics/menu/main_buttons.png")).b_u(); a_int = a_Strings.length; c_int = ai_1.a_int() / 15; e_int = u_2.b_int(); d_int = e_int; b_int = ai_1.b_int() - e_int - ab.c_int() - 5; f_int = (ai_1.a_int() - (c_int << 1) - d_int * a_int) / (a_int - 1); ab.c_int(); a_dsss[i_int] = new ds[a_Strings.length]; int int_1 = 0; for (; int_1 < a_Strings.length; int_1++) { int int_2 = c_int + d_int * int_1 + f_int * int_1; int int_3 = b_int; ej ej_1; (ej_1 = ai_1.a_ej(u_2, 0, 0, 6)).c_void(a_Strings.length, 1); ej_1.d_void(int_1); a_dsss[i_int][int_1] = new ds(ej_1, a_Strings[int_1], 33, ai_1, bx_1, this); a_dsss[i_int][int_1].a_void(int_2, int_3); } a_dsss[h_int] = new ds[1]; (int_1 = ai_1.a_u("graphics/menu/main_new.png")).b_u(); ej ej_2 = ai_1.a_ej(int_1, 0, 0, 6); b_ds = new ds(ej_2, dn.b_String(), 10, ai_1, bx_1, this); b_ds.a_void(ai_1.a_int() - b_ds.a_ch().a_int() - b_ds.a_int() - ai_1.a_int() / 32, a_ad.a_int() + 5); b_ds.e_void(); a_dsss[0] = new ds[1]; a_dsss[0][0] = b_ds; ch ch_1 = new ch(bx_1.b_String() + " ").a_ch(0xffeedaab).b_ch(8); ej ej_3 = ai_1.a_ej(u_1, 0, 0, 6); a_ds = new ds(ej_3, bx_1.b_String() + " ", 10, ai_1, bx_1, this); a_ds.a_void(ai_1.a_int() - ch_1.a_int() - a_ds.a_int() - ai_1.a_int() / 32, a_ad.a_int() + 5); a_ds.e_void(); a_dsss[h_int][0] = a_ds; if (bx_1.a_boolean()) { a_ds.d_void(); a_Vector.addElement(ch_1); } a_dsss[j_int][a_ints[j_int]].b_void(); } public final void a_void(ai ai_1, Object object_1) { if (object_1 == b_ds) { ci ci_1 = new ci(ai_1, a_bx, co.a_String("STARTER_DLG_HEADER"), co.a_String("STARTER_DLG_MESSAGE"), 0, true); d_ds = new ds(dn.a_String(), ai_1, a_bx, this); ci_1.a_void(d_ds); ai_1.a_void(ci_1); return; } if (object_1 == d_ds) { ai_1.e_void(); if (!dn.b_boolean()) { ci ci_2 = new ci(ai_1, MainMenu.instance.getMainView(), co.a_String("STARTER_DLG_HEADER"), co.a_String("TXT_SELL_ERR"), false); e_ds = new ds(co.a_String("TXT_OK"), ai_1, MainMenu.instance.getMainView(), this); ci_2.a_void(e_ds); ai_1.a_void(ci_2); return; } } if (object_1 == e_ds) { ai_1.e_void(); return; } if (object_1 == a_ds) { MainMenu.instance.showDialog(100); return; } if (object_1 == c_ds) { ai_1.e_void(); return; } int int_1 = 0; for (; int_1 < a_dsss[i_int].length; int_1++) { if (!(a_dsss[i_int][int_1] != object_1)) { break; } } switch (int_1) { case 0: if (a_bx.a_de() == null) { a_void(); return; } a_bx.a_void(new bu(), false); return; case 1: a_void(); return; case 2: a_bx.a_void(new dj(false).a_dj(a_Class == null ? a_Class = a_Class("v") : a_Class), false); return; case 3: a_bx.a_void(new cz(), false); return; case 4: object_1 = new ci(ai_1, MainMenu.instance.getMainView(), co.a_String("TXT_INFO"), c.a_c().b_c(co.a_String("TXT_INFO_MESSAGE")).c_c(MainMenu.getVersion()).toString(), false); c_ds = new ds(co.a_String("TXT_OK"), ai_1, MainMenu.instance.getMainView(), this); object_1.a_void(c_ds); ai_1.a_void(object_1); } } public final void a_void(ai ai_1, long long_1) { Object object_1 = this; ai ai_2 = cg.a_ai; if (dn.a_int() == 1) { if (!object_1.b_ds.b_boolean()) { object_1.b_ds.d_void(); if (object_1.a_ds.b_boolean()) { object_1.a_ds.a_void(ai_2.a_int() - object_1.a_ds.a_ch().a_int() - object_1.a_ds.a_int() - ai_2.a_int() / 32, object_1.a_ad.a_int() + object_1.b_ds.b_int() + 10); } } else { object_1.b_ds.a_void(dn.b_String()); } } else if (object_1.b_ds.b_boolean()) { if (object_1.b_ds.a_boolean()) { object_1.b_ds.c_void(); object_1.j_int = object_1.a_ds.b_boolean() ? object_1.h_int : object_1.i_int; object_1.a_dsss[object_1.j_int][object_1.a_ints[object_1.j_int]].b_void(); } object_1.b_ds.e_void(); if (object_1.a_ds.b_boolean()) { object_1.a_ds.a_void(ai_2.a_int() - object_1.a_ds.a_ch().a_int() - object_1.a_ds.a_int() - ai_2.a_int() / 32, object_1.a_ad.a_int() + 10); } } a_ad.a_void(a_bx.a_int(), a_bx.b_int()); a_ad.a_void(ai_1, long_1); ai_2 = ai_1; if ((object_1 = this).a_bx.a_boolean() && !(ai_1 = object_1.a_ds.a_ch()).a_String().equals(object_1.a_bx.b_String() + " ")) { ai_1.a_void(object_1.a_bx.b_String() + " "); object_1.a_ds.f_void(); object_1.a_ds.a_void(ai_2.a_int() - ai_1.a_int() - object_1.a_ds.a_int() - ai_2.a_int() / 32, object_1.a_ad.a_int() + (object_1.b_ds.b_boolean() ? object_1.b_ds.b_int() + 5 : 0) + 5); } } public final void a_void(ai ai_1, float float_1, float float_2) { int int_1 = 0; int int_2 = 0; for (; int_2 < a_dsss.length; int_2++) { int int_3 = 0; for (; int_3 < a_dsss[int_2].length; int_3++) { if (a_dsss[int_2][int_3] != null) { if (int_1 == 0) { boolean boolean_1 = a_dsss[int_2][int_3].a_boolean(float_1, float_2); } else { a_dsss[int_2][int_3].c_void(); } } } } if (int_1 == 0) { a_ad.a_boolean(ai_1, float_1, float_2); } } public final void b_void(ai ai_1, float float_1, float float_2) { int int_1 = 0; for (; int_1 < a_dsss.length; int_1++) { int int_2 = 0; for (; int_2 < a_dsss[int_1].length; int_2++) { if (a_dsss[int_1][int_2] != null && a_dsss[int_1][int_2].a_boolean(ai_1, float_1, float_2)) { return; } } } a_ad.b_boolean(ai_1, float_1, float_2); } private void a_void() { if (a_bx.a_Vector().isEmpty()) { cr.a_void("event_tutorial_start", true); cr.a_void("SELECTED_CAR_IDX_SHOP", 9); a_bx.a_void(new bi(null, a_bx).a_bi(a_Class == null ? a_Class = a_Class("v") : a_Class), false); return; } a_bx.a_void(new bq(), false); } public final boolean a_boolean(ai ai_1) { return false; } public final void a_void(ai ai_1, int int_1) { } public final void b_void(ai ai_1, int int_1) { if (int_1 == 1 || int_1 == 6) { ai_1 = j_int; int int_2 = 0; while (int_2 == 0) { if (int_1 == 1) { if (--ai_1 < -1) { ai_1 = a_dsss.length - 1; } } else if (++ai_1 >= a_dsss.length) { ai_1 = -1; } if (ai_1 == -1) { int_2 = 1; continue; } int int_3 = 0; for (; int_3 < a_dsss[ai_1].length; int_3++) { if (a_dsss[ai_1][int_3] != null && a_dsss[ai_1][int_3].b_boolean()) { int_2 = 1; continue; } } } if (j_int >= 0) { a_dsss[j_int][a_ints[j_int]].c_void(); } else { a_ad.a_void(false); } if (ai_1 < 0) { a_ad.a_void(true); } else { a_dsss[ai_1][a_ints[ai_1]].b_void(); } j_int = ai_1; return; } if (j_int == -1) { a_ad.a_void(ai_1, int_1); return; } if (int_1 == 5 || int_1 == 2) { ai_1 = a_ints[j_int]; do { if (int_1 == 5) { if (++ai_1 >= a_dsss[j_int].length) { ai_1 = 0; } } else if (--ai_1 < 0) { ai_1 = a_dsss[j_int].length - 1; } ds ds_1; if (!((ds_1 = a_dsss[j_int][ai_1]) != null)) { break; } } while (!ds_1.b_boolean()); if (ai_1 != a_ints[j_int]) { a_dsss[j_int][a_ints[j_int]].c_void(); Object object_1.b_void(); a_ints[j_int] = ai_1; } return; } if (int_1 == 8 || int_1 == -6) { a_dsss[j_int][a_ints[j_int]].a_void(ai_1); a_dsss[j_int][a_ints[j_int]].b_void(); } } private static Class a_Class(String string_1) { try { return Class.forName(string_1); } catch (ClassNotFoundException string_1) { throw new NoClassDefFoundError(string_1.getMessage()); } } }