import Main.PPM; import Main.c; import Main.d; import javax.microedition.lcdui.Canvas; import javax.microedition.lcdui.Displayable; import javax.microedition.lcdui.Graphics; import javax.microedition.midlet.MIDletStateChangeException; public final class s extends Canvas { private int __int; private int ___int; private byte ___; private byte ____; private Displayable _____; private static final String[] _l_; private static final String[] _l__; private static final String[] __l_; public s() { this.setFullScreenMode(true); this.__int = this.getWidth(); this.___int = this.getHeight(); this.____ = 0; this.___ = 0; } public s(Displayable displayable_1) { this(); this.____ = 1; this._____ = displayable_1; } protected final void sizeChanged(int int_1, int int_2) { this.__int = this.getWidth(); this.___int = this.getHeight(); super.sizeChanged(int_1, int_2); } public final void paint(Graphics graphics_1) { this.setFullScreenMode(true); graphics_1.setColor(c.ttII); graphics_1.fillRect(0, 0, this.__int, this.___int); bf.__void(graphics_1, _l__[this.___]); graphics_1.setColor(c.IttI); int int_1 = graphics_1.getFont().getHeight(); int int_2 = 0; for (; int_2 < _l_.length; int_2++) { if (int_2 == this.___) { int int_3 = graphics_1.getFont().stringWidth(_l_[int_2]); bf.__void(graphics_1, c.tIII, c.tIIt, this.__int / 2 - int_3 / 2 - int_3 / 10, this.___int / 2 - int_1 * (_l_.length / 2) + int_2 * int_1, int_3 + int_3 / 5, int_1); } graphics_1.setColor(c.ttIt); graphics_1.drawString(_l_[int_2], this.__int / 2, this.___int / 2 - int_1 * (_l_.length / 2) + int_2 * int_1, 17); } } public final void keyPressed(int int_1) { if ((int_1 = this.getGameAction(int_1)) == 6 || int_1 == 5) { this.___ = (byte) (this.___ + 1); if (this.___ >= _l_.length) { this.___ = 0; } } if (int_1 == 2 || int_1 == 1) { this.___ = (byte) (this.___ - 1); if (this.___ < 0) { this.___ = (byte) (_l_.length - 1); } } if (int_1 == 8) { if (this.____ == 0) { try { PPM.___._____ = __l_[this.___]; PPM.___.__void(); } catch (MIDletStateChangeException midletstatechangeexception) { null.printStackTrace(); } } else if (this.____ == 1) { PPM.___._____ = __l_[this.___]; d.____ = __l_[this.___]; PPM.___Display.setCurrent(this._____); } } this.repaint(); } static { _l_ = new String[]{"Uzbekcha", "Русский", "Українська", "English"}; _l__ = new String[]{"Til", "Язык", "Мова", "Language"}; __l_ = new String[]{"uz", "ru", "ua", "en"}; } }