📄 n.java
字号:
package com.hoya.games.sp;
import com.hoya.util.b;
import java.applet.AudioClip;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Frame;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.PrintStream;
import javax.swing.BorderFactory;
import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JRootPane;
import javax.swing.border.Border;
import javax.swing.border.LineBorder;
import javax.swing.border.TitledBorder;
public final class n extends JDialog
implements ActionListener
{
private Color ac;
public static int a;
public static int b;
public static int c;
public static int d;
public static int V;
public static int e;
JPanel f;
JPanel g;
JPanel h;
GridBagLayout i;
JButton j;
JButton k;
JPanel l;
JPanel q;
JPanel r;
JPanel s;
JPanel G;
JPanel I;
JPanel W;
GridLayout t;
JRadioButton u;
JRadioButton v;
BorderLayout w;
JRadioButton z;
JRadioButton A;
BorderLayout B;
JRadioButton C;
JRadioButton D;
JRadioButton E;
BorderLayout F;
BorderLayout H;
BorderLayout J;
BorderLayout K;
BorderLayout X;
JRadioButton L;
JRadioButton M;
JRadioButton N;
JRadioButton Y;
JRadioButton Z;
ButtonGroup O;
ButtonGroup P;
ButtonGroup Q;
ButtonGroup R;
ButtonGroup aa;
Border S;
TitledBorder m;
TitledBorder n;
TitledBorder o;
TitledBorder p;
TitledBorder ab;
GridBagLayout T;
JLabel U;
public n(Frame paramFrame)
{
super(paramFrame, "Options", true);
this.ac = Color.white;
this.f = new JPanel();
this.g = new JPanel();
this.h = new JPanel();
this.i = new GridBagLayout();
this.j = new JButton("Ok");
this.k = new JButton("Cancel");
this.l = new JPanel();
this.q = new JPanel();
this.r = new JPanel();
this.s = new JPanel();
this.G = new JPanel();
this.I = new JPanel();
this.W = new JPanel();
this.t = new GridLayout();
this.u = new JRadioButton();
this.v = new JRadioButton();
this.w = new BorderLayout();
this.z = new JRadioButton();
this.A = new JRadioButton();
this.B = new BorderLayout();
this.C = new JRadioButton();
this.D = new JRadioButton();
this.E = new JRadioButton();
this.F = new BorderLayout();
this.H = new BorderLayout();
this.J = new BorderLayout();
this.K = new BorderLayout();
this.X = new BorderLayout();
this.L = new JRadioButton();
this.M = new JRadioButton();
this.N = new JRadioButton();
this.Y = new JRadioButton("On");
this.Z = new JRadioButton("Off");
this.O = new ButtonGroup();
this.P = new ButtonGroup();
this.Q = new ButtonGroup();
this.R = new ButtonGroup();
this.aa = new ButtonGroup();
this.S = BorderFactory.createCompoundBorder(BorderFactory.createEtchedBorder(Color.white, new Color(148, 145, 140)), BorderFactory.createEmptyBorder(5, 5, 5, 5));
this.m = new TitledBorder(new LineBorder(Color.white, 1), " Auto Pop-up Chat Windows ");
this.n = new TitledBorder(new LineBorder(Color.white, 1), " Left Click Button ");
this.o = new TitledBorder(new LineBorder(Color.white, 1), " Character ");
this.p = new TitledBorder(new LineBorder(Color.white, 1), " Card Delay ");
this.ab = new TitledBorder(new LineBorder(Color.white, 1), " Sound ");
this.T = new GridBagLayout();
this.U = new JLabel();
try
{
b();
}
catch (Exception localException2)
{
Exception localException1;
(localException1 = localException2).printStackTrace();
}
a();
}
public n()
{
this(null);
}
public final void a()
{
a = lx.ad.a("au");
b = lx.ad.a("le");
c = lx.ad.a("ch");
d = lx.ad.a("cd");
V = lx.ad.a("so", 0);
e = lx.ad.a("si");
if ((a < 0) || (a > 1))
a = 0;
if ((b < 0) || (b > 1))
b = 1;
if ((c < 0) || (c > 2))
c = 1;
if ((d < 0) || (d > 2))
d = 0;
if ((V < 0) || (d > 1))
d = 0;
if (lx.aS == 4);
if ((e < 0) || (e > 3))
e = ((e < 1) || (e > 2)) ? 1 : 1;
a(a);
b(b);
c(c);
d(d);
if (lx.aS == 1)
e(V);
x.a();
}
private void a(int paramInt)
{
a = paramInt;
switch (paramInt)
{
case 0:
case 1:
this.v.setSelected(true);
}
lx.ad.a("au", "" + paramInt);
}
private void b(int paramInt)
{
b = paramInt;
switch (paramInt)
{
case 0:
case 1:
this.A.setSelected(true);
}
lx.ad.a("le", "" + paramInt);
}
private void c(int paramInt)
{
c = paramInt;
switch (paramInt)
{
case 0:
break;
case 1:
this.D.setSelected(true);
break;
case 2:
this.E.setSelected(true);
x.a(2);
}
lx.ad.a("ch", "" + paramInt);
}
public final void e(int paramInt)
{
V = paramInt;
switch (paramInt)
{
case 0:
this.Z.setSelected(true);
lx.aa = false;
if ((lx.aS == 1) && (lx.i != null))
for (int i1 = 0; i1 < lx.i.length; ++i1)
if (lx.i[i1] != null)
lx.i[i1].stop();
break;
case 1:
this.Y.setSelected(true);
lx.aa = true;
}
lx.ad.a("so", "" + paramInt);
}
private void d(int paramInt)
{
d = paramInt;
switch (paramInt)
{
case 0:
break;
case 1:
case 2:
this.N.setSelected(true);
}
lx.ad.a("cd", "" + paramInt);
u.j = h.ac[paramInt];
}
public final void actionPerformed(ActionEvent paramActionEvent)
{
if (paramActionEvent.getSource() == this.k)
{
a(a);
b(b);
c(c);
d(d);
e(V);
}
else
{
if (paramActionEvent.getSource() != this.j)
return;
if (this.v.isSelected())
a(1);
if (this.A.isSelected())
b(1);
if (this.E.isSelected())
c(2);
x.a();
if (this.N.isSelected())
d(2);
if (this.Z.isSelected())
e(0);
lx.ad.a("si", "" + e);
lx.ad.a();
a("CONFIG STORE() 1");
}
dispose();
}
private void b()
throws Exception
{
if (lx.aS != 3)
{
this.j.setMnemonic('O');
this.k.setMnemonic('C');
this.u.setMnemonic('E');
this.v.setMnemonic('D');
this.z.setMnemonic('1');
this.A.setMnemonic('5');
this.C.setMnemonic('U');
this.D.setMnemonic('R');
this.E.setMnemonic('P');
this.L.setMnemonic('F');
this.M.setMnemonic('M');
this.N.setMnemonic('S');
this.j.setPreferredSize(new Dimension(75, 20));
this.k.setPreferredSize(new Dimension(75, 20));
}
else
{
this.m = new TitledBorder(this.S, " Auto Pop-up Chat Windows ");
this.n = new TitledBorder(this.S, " Left Click Button ");
this.o = new TitledBorder(this.S, " Character ");
this.p = new TitledBorder(this.S, " Card Delay ");
}
getRootPane().setDefaultButton(this.j);
this.g.setLayout(this.i);
this.h.setBorder(this.S);
this.h.setLayout(this.t);
this.f.setLayout(this.T);
this.l.setBorder(this.m);
this.l.setPreferredSize(new Dimension(240, 50));
this.l.setLayout(this.w);
this.q.setBorder(this.n);
this.q.setLayout(this.B);
this.r.setBorder(this.o);
this.r.setLayout(this.F);
this.s.setBorder(this.p);
this.s.setLayout(this.J);
this.t.setColumns(1);
this.t.setRows(0);
this.u.setText(" Enable ");
this.v.setText(" Disable ");
this.z.setText(" 10c ");
this.A.setText(" 50c ");
this.C.setText(" Default ");
this.D.setText(" Cards ");
this.E.setText(" Sports ");
this.G.setLayout(this.H);
this.I.setLayout(this.K);
this.L.setText(" Fast ");
this.M.setText(" Medium ");
this.N.setText(" Slow ");
this.U.setText(" ");
getContentPane().add(this.f, "South");
getContentPane().add(this.g, "Center");
this.g.add(this.h, new GridBagConstraints(0, 0, 1, 1, 1D, 1D, 10, 1, new Insets(5, 5, 0, 5), 0, 0));
if (lx.aS != 2)
{
this.h.add(this.l);
this.h.add(this.q);
}
this.h.add(this.r);
this.h.add(this.s);
if (lx.aS == 1)
{
this.W.setBorder(this.ab);
this.W.setLayout(this.X);
this.h.add(this.W);
}
this.l.add(this.v, "Center");
this.l.add(this.u, "West");
this.q.add(this.A, "Center");
this.q.add(this.z, "West");
this.r.add(this.C, "West");
this.r.add(this.G, "Center");
this.G.add(this.D, "West");
this.G.add(this.E, "Center");
this.s.add(this.I, "Center");
this.s.add(this.L, "West");
this.I.add(this.M, "West");
this.I.add(this.N, "Center");
this.W.add(this.Y, "West");
this.W.add(this.Z, "Center");
this.O.add(this.u);
this.O.add(this.v);
this.P.add(this.A);
this.P.add(this.z);
this.Q.add(this.C);
this.Q.add(this.D);
this.Q.add(this.E);
this.R.add(this.L);
this.R.add(this.M);
this.R.add(this.N);
this.aa.add(this.Y);
this.aa.add(this.Z);
this.f.add(this.k, new GridBagConstraints(2, 0, 1, 1, 0D, 0D, 13, 0, new Insets(5, 0, 5, 5), 0, 0));
this.f.add(this.j, new GridBagConstraints(1, 0, 1, 1, 0D, 0D, 13, 0, new Insets(5, 0, 5, 5), 0, 0));
this.f.add(this.U, new GridBagConstraints(0, 0, 1, 1, 1D, 0D, 10, 2, new Insets(0, 0, 0, 0), 0, 0));
this.j.addActionListener(this);
this.k.addActionListener(this);
if (lx.aS == 2)
{
this.g.setBackground(Color.black);
this.h.setBackground(Color.black);
this.l.setBackground(Color.black);
this.q.setBackground(Color.black);
this.r.setBackground(Color.black);
this.s.setBackground(Color.black);
this.G.setBackground(Color.black);
this.I.setBackground(Color.black);
this.f.setBackground(Color.black);
this.u.setBackground(Color.black);
this.u.setForeground(this.ac);
this.v.setBackground(Color.black);
this.v.setForeground(this.ac);
this.A.setBackground(Color.black);
this.A.setForeground(this.ac);
this.z.setBackground(Color.black);
this.z.setForeground(this.ac);
this.C.setBackground(Color.black);
this.C.setForeground(this.ac);
this.D.setBackground(Color.black);
this.D.setForeground(this.ac);
this.E.setBackground(Color.black);
this.E.setForeground(this.ac);
this.L.setBackground(Color.black);
this.L.setForeground(this.ac);
this.M.setBackground(Color.black);
this.M.setForeground(this.ac);
this.N.setBackground(Color.black);
this.N.setForeground(this.ac);
this.m.setTitleColor(Color.white);
this.n.setTitleColor(Color.white);
this.o.setTitleColor(Color.white);
this.p.setTitleColor(Color.white);
return;
}
if (lx.aS == 3)
{
this.g.setBackground(lx.bf);
this.h.setBackground(lx.bf);
this.l.setBackground(lx.bf);
this.q.setBackground(lx.bf);
this.r.setBackground(lx.bf);
this.s.setBackground(lx.bf);
this.G.setBackground(lx.bf);
this.I.setBackground(lx.bf);
this.f.setBackground(lx.bf);
this.u.setBackground(lx.bf);
this.v.setBackground(lx.bf);
this.A.setBackground(lx.bf);
this.z.setBackground(lx.bf);
this.C.setBackground(lx.bf);
this.D.setBackground(lx.bf);
this.E.setBackground(lx.bf);
this.L.setBackground(lx.bf);
this.M.setBackground(lx.bf);
this.N.setBackground(lx.bf);
}
}
private static void a(String paramString)
{
if (lx.aJ)
System.out.println(paramString);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -