📄 lx.java
字号:
this.ai.add(this.an, new GridBagConstraints(1, 2, 1, 1, 0D, 0D, 17, 0, new Insets(0, 0, 0, 0), 0, 0));
JLabel localJLabel1 = new JLabel(" ");
if (aS == 2)
localJLabel1 = new JLabel(" ");
this.ai.add(localJLabel1, new GridBagConstraints(2, 2, 1, 1, 0D, 0D, 10, 0, new Insets(0, 0, 0, 0), 0, 0));
this.ai.add(this.am, new GridBagConstraints(0, 3, 1, 1, 0D, 0D, 13, 0, new Insets(5, 0, 0, 5), 0, 0));
this.ai.add(this.ao, new GridBagConstraints(1, 3, 1, 1, 0D, 0D, 17, 0, new Insets(5, 0, 0, 0), 0, 0));
if (aS != 2);
JLabel localJLabel2 = new JLabel(" ");
this.ai.add(localJLabel2, new GridBagConstraints(0, 4, 3, 1, 0D, 0D, 10, 0, new Insets(5, 0, 0, 5), 0, 0));
this.ai.add(this.bn, new GridBagConstraints(0, 5, 3, 1, 0D, 0D, 10, 0, new Insets(5, 0, 0, 5), 0, 0));
this.ai.add(this.bm, new GridBagConstraints(0, 6, 3, 1, 0D, 0D, 10, 0, new Insets(5, 0, 0, 5), 0, 0));
this.aw.add(this.ax, new GridBagConstraints(0, 0, 1, 1, 1D, 1D, 17, 1, new Insets(5, 5, 5, 5), 1, 1));
this.aw.add(this.aE, new GridBagConstraints(0, 1, 1, 1, 1D, 1D, 17, 1, new Insets(0, 5, 5, 5), 1, 1));
this.ax.add(this.av);
}
private void f()
{
this.av.setText("Try to connect server...");
k = this.an.getText().trim();
l = new String(this.ao.getPassword());
if (k.length() > 10)
k = k.substring(0, 10);
if (l.length() > 10)
l = l.substring(0, 10);
if (aJ)
System.out.println("VERSION:" + aH);
if (aD)
{
aA = new com.hoya.client.f(bu, 5168, k, l, "7");
h("##### connect to [" + bu + ":" + 5168 + "] #####");
}
else
{
aA = new com.hoya.client.f(bp, br, k, l, "7");
}
this.an.setEnabled(false);
this.ao.setEnabled(false);
this.an.setBackground(Color.gray);
this.ao.setBackground(Color.gray);
this.aG.start();
}
public void actionPerformed(ActionEvent paramActionEvent)
{
Object localObject;
if (paramActionEvent.getSource() == this.an)
{
as = System.currentTimeMillis();
h("set lastActionTime");
if (this.an.getText().trim().length() == 0)
return;
if (this.ao.getPassword().length != 0)
{
f();
return;
}
this.ao.requestFocus();
return;
}
if (paramActionEvent.getSource() == this.ao)
{
as = System.currentTimeMillis();
h("set lastActionTime");
if (this.ao.getPassword().length == 0)
return;
if (this.an.getText().trim().length() != 0)
{
f();
return;
}
this.an.requestFocus();
return;
}
if (paramActionEvent.getSource() == this.bn)
{
if (this.an.getText().trim().length() != 0)
{
if (this.ao.getPassword().length != 0)
{
f();
return;
}
this.ao.requestFocus();
return;
}
this.an.requestFocus();
return;
}
if (paramActionEvent.getSource() == this.bm)
{
if (aS != 2)
return;
if (this.bo == null)
this.bo = new D(this);
this.bo.pack();
xl.a(this.bo, this);
this.bo.show();
return;
}
if ((P) || (Q))
{
if (System.currentTimeMillis() - R > 2500L)
{
System.exit(0);
return;
}
if (System.currentTimeMillis() - R > 2000L)
{
i("sgcc.shutdown(), 1");
g();
return;
}
if ((System.currentTimeMillis() - R <= 500L) || (this.bo == null) || (this.bo.f == null))
return;
i("sgccSponsor.shutdown(), 1");
this.bo.f.a();
return;
}
if ((isShowing()) && (aA.d()))
{
this.av.setText("Connected.");
}
else if ((!(C)) && (!(aA.e())) && (!(aA.t)) && (aA.f() > 10000L))
{
this.av.setText("Can't find server.");
i("sgcc.shutdown(), 2,inGame:" + C + ",sgcc.isLogined():" + aA.e() + ",sgcc.getTryTime():" + aA.f());
g();
this.aG.stop();
}
if ((C) && (!(aA.d())) && (aA.f() > 20000L))
{
i("sgcc.shutdown(), 3");
g();
}
while (aA.b() != 0)
{
localObject = aA.c();
a((com.hoya.games.common.a)localObject);
}
if ((aS == 2) || (aS == 3))
{
h();
}
else
{
k();
if (!(aQ))
j();
i();
}
if (aA.h())
{
i("connection broken......");
g();
if (!(P))
JOptionPane.showMessageDialog(j, "Connection lost.", "Connection lost.", 0);
System.exit(0);
}
if ((aB > 0L) && (System.currentTimeMillis() - aB > aI))
{
h("time dif:" + (System.currentTimeMillis() - aB));
g();
JOptionPane.showMessageDialog(j, "Connection lost.", "Connection lost.", 0);
System.exit(0);
}
if ((m.size() > 0) && (j.isShowing()))
{
JTextArea localJTextArea;
localObject = (String)m.remove(0);
(localJTextArea = new JTextArea((String)localObject)).setEditable(false);
localJTextArea.setEnabled(false);
localJTextArea.setDisabledTextColor(Color.red);
localJTextArea.setBackground(UIManager.getColor("JDialog.background"));
localJTextArea.setForeground(Color.red);
localJTextArea.setFont(bv);
JOptionPane localJOptionPane = new JOptionPane(localJTextArea, -1, -1);
JOptionPane.setRootFrame(j);
JDialog localJDialog = localJOptionPane.createDialog(j, bq);
if (!(c))
localJDialog.setTitle("");
localJDialog.show();
}
if ((a.F.getText().length() > 0) && (System.currentTimeMillis() - ae > 20000L))
{
aA.a(2171, "");
ae = System.currentTimeMillis();
}
if ((C) && (i.a <= 0) && (System.currentTimeMillis() - ag > af))
{
aA.a(1241, "");
ag = System.currentTimeMillis();
if (af < 70000)
af += 5000;
}
if ((C) && (System.currentTimeMillis() - ag > af))
{
aA.a(1241, "");
ag = System.currentTimeMillis();
if (af < 60000)
af += 5000;
h(((new StringBuffer()) ? "############## 1 ############next check time:" : "############## 2 ############next check time:") + (af / 1000) + " sec.");
}
}
public final void g()
{
h("in shutdownClient()");
if (aA != null)
aA.a();
if (this.bo != null)
this.bo.a();
}
public final void h()
{
String str1 = com.hoya.common.a.a("", 60);
for (int i1 = 0; i1 < bc.size(); ++i1)
{
String str2 = (String)bc.get(i1);
str1 = str1 + str2;
if ((aS == 2) && (aY.length() > 0))
str1 = str1 + " " + aY;
if (i1 != bc.size() - 1)
str1 = str1 + " ";
}
if (str1.trim().length() > 0)
{
this.by += 1;
if (this.by % 8 != 0)
return;
if ((i1 = this.by / 8) < str1.length())
if ((str1 = str1.substring(i1)).length() > 60)
str1 = str1.substring(0, 60);
this.by = 0;
int i2 = 0;
while (i2 < bc.size())
{
int i3;
String str3 = (String)bc.get(i2);
if ((i3 = ((Integer)bd.get(str3)).intValue()) < 3)
{
++i3;
bd.put(str3, new Integer(i3));
}
bc.remove(i2);
bd.remove(str3);
}
if (bc.size() == 0)
j.setTitle("");
return;
}
this.by = 0;
}
public static void i()
{
if (be.size() > 0)
{
Integer localInteger = (Integer)be.remove(0);
if (i != null)
for (int i1 = 0; i1 < i.length; ++i1)
if (i[i1] != null)
i[i1].stop();
if ((aa) && (i[localInteger.intValue()] != null))
i[localInteger.intValue()].play();
}
}
public final void j()
{
String str1 = com.hoya.common.a.a("", 60);
for (int i1 = 0; i1 < bc.size(); ++i1)
{
String str2 = (String)bc.get(i1);
str1 = str1 + str2;
if (i1 != bc.size() - 1)
str1 = str1 + " ";
}
if (str1.trim().length() > 0)
{
ba = str1.trim();
this.bw.a();
return;
}
ba = "";
}
public final void k()
{
String str = com.hoya.common.a.a("", 60);
if (str += bb.trim().length() > 0)
{
int i1;
this.bx += 1;
if (this.bx % 8 != 0)
return;
if ((i1 = this.bx / 8) < str.length())
if ((str = str.substring(i1)).length() > 60)
str = str.substring(0, 60);
this.bx = 0;
j.setTitle("");
return;
}
this.bx = 0;
}
public static boolean c(String paramString)
{
if ((paramString == null) || (paramString.length() < 6))
return true;
if (("123456".equals(paramString)) || ("1234567".equals(paramString)) || ("12345678".equals(paramString)) || ("654321".equals(paramString)) || ("7654321".equals(paramString)) || ("8654321".equals(paramString)))
return true;
int i1 = 1;
int i2 = 0;
for (int i3 = 0; i3 < paramString.length(); ++i3)
{
int i4 = paramString.charAt(i3);
if (i3 == 0)
break label114:
if (i2 != i4)
{
++i1;
label114: i2 = i4;
}
}
if (i1 < 2)
return true;
return (paramString.equals(k));
}
public static boolean k(String paramString)
{
Hashtable localHashtable = new Hashtable();
for (int i1 = 0; i1 < paramString.length(); ++i1)
{
char c1 = paramString.charAt(i1);
localHashtable.put("" + c1, "" + c1);
}
return (localHashtable.size() < 3);
}
public static boolean l(String paramString)
{
Hashtable localHashtable1 = new Hashtable();
Hashtable localHashtable2 = new Hashtable();
int i1 = 0;
for (int i2 = 0; i2 < paramString.length(); ++i2)
{
char c1;
if (((c1 = paramString.charAt(i2)) <= '9') && (c1 >= '0'))
{
localHashtable1.put("" + c1, "" + c1);
h("put '" + c1 + "' into htNumber");
++i1;
}
else
{
localHashtable2.put("" + c1, "" + c1);
h("put '" + c1 + "' into htChar");
}
}
if (localHashtable1.size() < 3)
{
h("htNumber.size:" + localHashtable1.size());
return true;
}
if (localHashtable2.size() < 2)
{
h("htChar.size:" + localHashtable2.size());
return true;
}
if (i1 < 4)
{
h("numberCount:" + i1);
return true;
}
return false;
}
public static boolean m(String paramString)
{
int i1;
if ((i1 = k.length()) < 3)
return true;
for (int i2 = 0; i2 <= i1 - 3; ++i2)
{
String str = k.substring(i2, i2 + 3);
if (paramString.indexOf(str) != -1)
return true;
}
return false;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -