⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 r.txt

📁 手机QQ原代码,有喜欢的朋友可以大量的下载,我不要钱的哦
💻 TXT
字号:
import javax.microedition.lcdui.*;

public class r extends Canvas
{

    public String a_java_lang_String_array1d_fld[] = {
        "/:O", "/:~", "/:*", "/:|", "/8-)", "/:<", "/:$", "/:X", "/:Z", "/:'(", 
        "/:-|", "/:@", "/:P", "/:D", "/:)", "/:(", "/:+", "/:#", "/:Q", "/:T", 
        "/;P", "/;-D", "/;d", "/;o", "/:g", "/|-)", "/:!", "/:L", "/:>", "/:;", 
        "/;f", "/:-S", "/?", "/:x", "/;@", "/:8", "/;!", "/!!!", "/xx", "/bye", 
        "/go", "/shake", "/love", "/jump", "/find", "/&&", "/pig", "/cat", "/dog", "/hug", 
        "/$", "/(!)", "/cup", "/cake", "/li", "/bome", "/kn", "/footb", "/music", "/shit", 
        "/coffee", "/eat", "/pill", "/rose", "/fade", "/kiss", "/heart", "/break", "/meeting", "/gift", 
        "/phone", "/time", "/email", "/TV", "/sun", "/moon", "/strong", "/weak", "/share", "/v", 
        "/<D>", "/<J>", "/<H>", "/<M>", "/<QQ>", "/<L>", "/<O>", "/<B>", "/<U>", "/<W>", 
        "/<!!>", "/<~>", "/<Z>", "/<*>", "/<00>", "/<11>"
    };
    public short a_short_array1d_fld[];
    public int f;
    public int e;
    public int a_int_array2d_fld[][] = {
        {
            8, 12
        }, {
            8, 12
        }, {
            10, 10
        }
    };
    public int s;
    public int k;
    public int c;
    public int r;
    public int p;
    public int q;
    public int j;
    public int t;
    public int d;
    public int a_int_fld;
    public int o;
    public int l;
    public int h;
    public int u;
    public int i;
    public int n;
    public int b;
    public int g;
    public final int m;
    private final n a_n_fld;

    public r(n n1)
    {
        a_n_fld = n1;
        a_short_array1d_fld = new short[c.c_short_static_fld];
        f = 1;
        e = c.c_int_static_fld + f;
        s = 0;
        k = 1;
        c = 2;
        r = 0;
        h = 0;
        u = 0;
        m = c.a_short_static_fld + 1;
        boolean flag = false;
        for(int i1 = 0; i1 < c.a_short_static_fld; i1++)
        {
            short word0 = c.a_short_array1d_static_fld[i1];
            if(word0 < c.c_short_static_fld)
            {
                a_short_array1d_fld[word0] = (short)i1;
            }
        }

        i = getWidth();
        n = getHeight();
        if(i >= a_int_array2d_fld[c][0] * e)
        {
            r = c;
            j = a_int_array2d_fld[r][0];
            t = n / e;
        } else
        if(i >= a_int_array2d_fld[k][0] * e)
        {
            r = k;
            j = a_int_array2d_fld[r][0];
            t = n / e;
        } else
        {
            r = s;
            j = i / e;
            t = n / e;
        }
        d = a_int_array2d_fld[r][0];
        a_int_fld = a_int_array2d_fld[r][1];
        p = d * e;
        q = a_int_fld * e;
        o = i <= p ? 0 : (i - p) / 2 - 0;
        l = n <= q ? 0 : (n - q) / 2 - 0;
    }

    public void paint(Graphics g1)
    {
        int i1 = 0;
        int j1 = 0;
        int k1 = 0;
        int l1 = 0;
        g1.setColor(KQQMIDlet.a_m_static_fld.a_int_array2d_fld[KQQMIDlet.a_m_static_fld.R][0]);
        g1.fillRect(i1, j1, i, n);
        g1.setColor(m.q);
        k1 = o + f;
        l1 = l + f;
        int i2 = b + 1;
        int j2 = g + 1;
        int k2 = i2 <= j ? 0 : i2 - j;
        int l2 = j2 <= t ? 0 : j2 - t;
        h = k2;
        u = l2;
        boolean flag = false;
        for(int j3 = l2; j3 < a_int_fld; j3++)
        {
            for(int k3 = k2; k3 < d; k3++)
            {
                i1 = k1 + k3 * e;
                j1 = l1 + (j3 - l2) * e;
                int i3 = j3 * d + k3;
                if(i3 < c.c_short_static_fld)
                {
                    g1.drawImage(KQQMIDlet.a_m_static_fld.a_c_fld.c_javax_microedition_lcdui_Image_array1d_fld[i3], i1, j1, 20);
                }
            }

        }

        if(i2 == j)
        {
            if(j2 >= t)
            {
                g1.drawRect((k1 + (b - k2) * e) - 2 * f, (l1 + (g - l2) * e) - 2 * f, e, e);
            } else
            {
                g1.drawRect((k1 + (b - k2) * e) - 2 * f, (l1 + (g - l2) * e) - f, e, e);
            }
        } else
        if(j2 >= t)
        {
            g1.drawRect((k1 + (b - k2) * e) - f, (l1 + (g - l2) * e) - 2 * f, e, e);
        } else
        {
            g1.drawRect((k1 + (b - k2) * e) - f, (l1 + (g - l2) * e) - f, e, e);
        }
        i1 = k1 + ((b - k2) + 1) * e;
        j1 = l1 + ((g - l2) + 1) * e;
        Font font = g1.getFont();
        String s1 = a_java_lang_String_array1d_fld[g * d + b];
        int l3 = font.stringWidth(s1) + 4;
        int i4 = font.getHeight() + 4;
        if(i1 > i - l3)
        {
            i1 = (k1 + (b - k2) * e) - l3 - 2;
        }
        if(j1 > n - i4)
        {
            j1 = (l1 + (g - l2) * e) - i4 - 2;
        }
        g1.setColor(0xffffe1);
        g1.fillRect(i1, j1, l3, i4);
        g1.setColor(0);
        g1.drawString(s1, i1 + 2, j1 + 2, 20);
        g1.drawRect(i1, j1, l3 - 1, i4 - 1);
    }

    private int a(int i1, int j1)
    {
        if(i1 <= o || j1 <= l || i1 >= p + o || j1 >= q + l)
        {
            i.a("y = " + j1 + "iconAreaH = " + q + "iconStartX = " + h);
            return m;
        } else
        {
            b = h + (i1 - o) / e;
            g = u + (j1 - l) / e;
            return g * d + b;
        }
    }

    public void pointerPressed(int i1, int j1)
    {
        if(a(i1, j1) == m)
        {
            i.a("PT in blank");
            return;
        } else
        {
            i.a("PT in emotion");
            repaint();
            return;
        }
    }

    public void pointerDragged(int i1, int j1)
    {
    }

    public void pointerReleased(int i1, int j1)
    {
        int k1 = a(i1, j1);
        if(k1 < c.c_short_static_fld)
        {
            n.a(a_n_fld, n.a(a_n_fld).getString() + a_java_lang_String_array1d_fld[k1]);
            a_n_fld.a(0L, true);
        }
    }

    public void keyPressed(int i1)
    {
        int j1;
        if(KQQMIDlet.a_int_static_fld == 0 && i1 == -5)
        {
            j1 = 8;
        } else
        {
            j1 = getGameAction(i1);
        }
        switch(j1)
        {
        case 3: // '\003'
        case 4: // '\004'
        case 7: // '\007'
        default:
            break;

        case 1: // '\001'
            if(g > 0)
            {
                g--;
                repaint();
            }
            break;

        case 6: // '\006'
            if(g < a_int_fld - 1 && (g + 1) * d + b < c.c_short_static_fld)
            {
                g++;
                repaint();
            }
            break;

        case 2: // '\002'
            if(b > 0)
            {
                b--;
                repaint();
            }
            break;

        case 5: // '\005'
            if(b < d - 1 && g * d + (b + 1) < c.c_short_static_fld)
            {
                b++;
                repaint();
            }
            break;

        case 8: // '\b'
            n.a(a_n_fld, n.a(a_n_fld).getString() + a_java_lang_String_array1d_fld[g * d + b]);
            a_n_fld.a(0L, true);
            break;
        }
    }

    public String a(String s1)
    {
        char ac[] = new char[2];
        ac[0] = i.a;
        for(int i1 = 0; i1 < c.c_short_static_fld; i1++)
        {
            ac[1] = (char)(a_short_array1d_fld[i1] + c.b);
            String s2 = new String(ac);
            s1 = i.a(s1, 0, a_java_lang_String_array1d_fld[i1], s2);
        }

        return s1;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -