Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @author Arno <Arno_gerver@hotmail.com>
- FIRST REPLACE YOUR LOGINBOX.PNG IN THE CACHE WITH THE NEW ONE.
- Replace your DrawLoginScreen(boolean flag) with this:
- /**
- * @author Arno <Arno_gerver@hotmail.com>
- * Made for: James Lipor
- */
- private void drawLoginScreen(boolean flag)
- {
- //L++ = Rotates right
- //k1+ = rotates down
- resetImageProducers();
- aRSImageProducer_1109.initDrawingArea();
- aBackground_966.drawBackground(30, 0);
- char c = '\u0168';
- char c1 = '\310';
- if(loginScreenState == 0)
- {
- int l = c / 2 - 80;
- int k1 = c1 / 2 + 20;
- int i = c1 / 2 + 80;
- smallText.method382(0x75a9a9, c / 2, onDemandFetcher.statusString, i, true);
- /** @param X / Y debug
- *chatTextDrawingArea.method382(0xffff00, l +78, "Mouse X: " + super.mouseX + " , Mouse Y: " + super.mouseY, k1 + 50, true);
- */
- chatTextDrawingArea.method389
- (true, l-10/*X*/, 0xffffff, "" + myUsername + ((loginScreenCursorPos == 0) & (loopCycle % 40 < 20) ? "@whi@|" : ""), k1-52/*Y*/);
- chatTextDrawingArea.method389
- (true, l-10/*X*/, 0xffffff, "" + TextClass.passwordAsterisks(myPassword) + ((loginScreenCursorPos == 1) & (loopCycle % 40 < 20) ? "@whi@|" : ""),
- k1-12/*Y*/);
- chatTextDrawingArea.method382(16777215, l+50, loginMessage1, k1+20, true);
- chatTextDrawingArea.method382(16777215, l+50, loginMessage2, k1+30, true);
- }
- aRSImageProducer_1109.drawGraphics(171, super.graphics, 202);
- if(welcomeScreenRaised)
- {
- welcomeScreenRaised = false;
- aRSImageProducer_1107.drawGraphics(0, super.graphics, 128);
- aRSImageProducer_1108.drawGraphics(371, super.graphics, 202);
- aRSImageProducer_1112.drawGraphics(265, super.graphics, 0);
- aRSImageProducer_1113.drawGraphics(265, super.graphics, 562);
- aRSImageProducer_1114.drawGraphics(171, super.graphics, 128);
- aRSImageProducer_1115.drawGraphics(171, super.graphics, 562);
- }
- }
- /*****************************************************************************************************/
- AFTER THAT REPLACE YOUR private void processLoginScreenInput() WITH THIS:
- private void processLoginScreenInput()
- {
- if(loginScreenState == 0)
- {
- int i = super.myWidth / 2 - 80;
- int l = super.myHeight / 2 + 20;
- l += 20;
- if(super.clickMode3 == 1 && super.saveClickX >= 263 && super.saveClickX <= 498 && super.saveClickY >= 217 && super.saveClickY <= 244)
- {
- loginScreenCursorPos = 0; //Account name typing
- }
- i = super.myWidth / 2 + 80;
- if(super.clickMode3 == 1 && super.saveClickX >= 263 && super.saveClickX <= 498 && super.saveClickY >= 262 && super.saveClickY <= 287)
- {
- loginMessage1 = "";
- loginScreenCursorPos = 1; //Password name typing
- }
- if(super.clickMode3 == 1 && super.saveClickX >= 446 && super.saveClickX <= 499
- && super.saveClickY >= 304 && super.saveClickY <= 320)
- { //LOGIN BUTTON
- if (myPassword.length() <= 0) {
- loginMessage1 = "Username or password is missing";
- return;
- }else
- if (myPassword.length() <= 0) {
- loginMessage1 = "Username or password is missing";
- return;
- }
- loginFailures = 0;
- loginMessage1 = "Logging in....";
- login(myUsername, myPassword, false);
- if(loggedIn)
- return;
- }
- do
- {
- int l1 = readChar(-796);
- if(l1 == -1)
- break;
- boolean flag1 = false;
- for(int i2 = 0; i2 < validUserPassChars.length(); i2++)
- {
- if(l1 != validUserPassChars.charAt(i2))
- continue;
- flag1 = true;
- break;
- }
- if(loginScreenCursorPos == 0)
- {
- if(l1 == 8 && myUsername.length() > 0)
- myUsername = myUsername.substring(0, myUsername.length() - 1);
- if(l1 == 9 || l1 == 10 || l1 == 13)
- loginScreenCursorPos = 1;
- if(flag1)
- myUsername += (char)l1;
- if(myUsername.length() > 20)
- myUsername = myUsername.substring(0, 20);
- } else
- if(loginScreenCursorPos == 1)
- {
- if(l1 == 8 && myPassword.length() > 0)
- myPassword = myPassword.substring(0, myPassword.length() - 1);
- if(l1 == 9 || l1 == 10 || l1 == 13)
- loginScreenCursorPos = 0;
- if(flag1)
- myPassword += (char)l1;
- if(myPassword.length() > 20)
- myPassword = myPassword.substring(0, 20);
- }
- } while(true);
- return;
- }
- }
- And you should be good!
- /Arno
Add Comment
Please, Sign In to add comment