Thread: [PI]New login Screen

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 40
  1. #1 [PI]New login Screen 
    Ready for Battle


    Join Date
    Aug 2009
    Age
    25
    Posts
    368
    Thanks given
    87
    Thanks received
    34
    Rep Power
    99
    Purpose: To add the new login screen
    Difficulty: 3 / 10
    Assumed Knowledge: JAVA!!
    Classes Modified: Client.java
    Refactored/Non-Refactored?: Refactored


    Download the [Only registered and activated users can see links. ] and pack them into your title cache (Assuming you know how to do this)

    Time to add the sprites,

    background -> titlebox 0
    login -> titlebutton 0
    login_hover -> titlebutton 1
    box -> box 0
    box_hover -> box 1

    Okay, time to add the code now

    find "Background aBackground_967" and add these under it

    Code:
    	private Background loginHover;
    	private Background box;
    	private Background boxHover;
    Under "aBackground_967 = new Background(titleStreamLoader, "titlebutton", 0);" in "private void loadTitleScreen()" add these

    Code:
    		loginHover = new Background(titleStreamLoader, "titlebutton", 1);
    		box = new Background(titleStreamLoader, "box", 0);
    		boxHover = new Background(titleStreamLoader, "box", 1);
    Replace your "drawLoginScreen(boolean flag)" with

    Code:
    	private void drawLoginScreen(boolean flag) {
    		resetImageProducers();
    		aRSImageProducer_1109.initDrawingArea();
    		aBackground_966.drawBackground(0, 0);
    		char c = '\u0168';
    		char c1 = '\310';
    		if (loginScreenState == 0) {
    			int i = c1 / 2 + 80;
    			aTextDrawingArea_1271.method382(0x75a9a9, c / 2,
    					onDemandFetcher.statusString, i, true);
    			int l = c / 2 - 80;
    			int k1 = c1 / 2 + 20;
    			((super.mouseX >= 293 && super.mouseX <= 472 && super.mouseY >= 296 && super.mouseY <= 321) ? loginHover
    					: aBackground_967).drawBackground(l - 57, k1 + 41);
    			((super.mouseX >= 273 && super.mouseX <= 490 && super.mouseY >= 194 && super.mouseY <= 219) ? boxHover
    					: box).drawBackground(l - 78, k1 - 62);
    			((super.mouseX >= 273 && super.mouseX <= 490 && super.mouseY >= 240 && super.mouseY <= 265) ? boxHover
    					: box).drawBackground(l - 78, k1 - 16);
    			int j = c1 / 2 - 23;
    			if (loginScreenCursorPos != 0 && loginScreenCursorPos != 1)
    				loginScreenCursorPos = 0;
    			aTextDrawingArea_1271
    					.method389(true, c / 2 - 154, 0xffffff, ""
    							+ myUsername
    							+ ((loginScreenCursorPos == 0)
    									& (loopCycle % 40 < 20) ? "@[email protected]|" : ""), j);
    			j += 47;
    			aTextDrawingArea_1271
    					.method389(true, c / 2 - 154, 0xffffff,
    							""
    									+ TextClass.passwordAsterisks(myPassword)
    									+ ((loginScreenCursorPos == 1)
    											& (loopCycle % 40 < 20) ? "@[email protected]|"
    											: ""), j);
    
    		}
    		aRSImageProducer_1109.drawGraphics(135, super.graphics, 251);
    		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);
    		}
    	}
    repalce

    Code:
    		aRSImageProducer_1109 = new RSImageProducer(320, 200,
    				getGameComponent());
    with

    Code:
    		aRSImageProducer_1109 = new RSImageProducer(263, 233,
    				getGameComponent());
    Replace your "processLoginScreenInput()" with this:
    Code:
    private void processLoginScreenInput() {
    		if (loginScreenState == 0) {
    			int l = super.myHeight / 2 + 20;
    			l += 20;
    			if (super.clickMode3 == 1 && super.saveClickX >= 273
    					&& super.saveClickX <= 490 && super.saveClickY >= 194
    					&& super.saveClickY <= 219)
    				loginScreenCursorPos = 0;
    			if (super.clickMode3 == 1 && super.mouseX >= 273
    					&& super.mouseX <= 490 && super.mouseY >= 240
    					&& super.mouseY <= 265)
    				loginScreenCursorPos = 1;
    			if (super.clickMode3 == 1 && super.saveClickX >= 293
    					&& super.saveClickX <= 472 && super.saveClickY >= 296
    					&& super.saveClickY <= 321) {
    				loginFailures = 0;
    				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() > 12)
    						myUsername = myUsername.substring(0, 12);
    				} 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;
    		}
    		if (loginScreenState == 3) {
    			int k = super.myWidth / 2;
    			int j1 = super.myHeight / 2 + 50;
    			j1 += 20;
    			if (super.clickMode3 == 1 && super.saveClickX >= k - 75
    					&& super.saveClickX <= k + 75
    					&& super.saveClickY >= j1 - 20
    					&& super.saveClickY <= j1 + 20)
    				loginScreenState = 0;
    		}
    	}
    And your done! If i forgot something, please let me know

    Picture:
    Last edited by Zuyi; 04-13-2011 at 12:46 AM. Reason: Added processLoginScreenInput() forgot it ;)
    Reply With Quote  
     

  2. #2  
    Member
    Join Date
    May 2010
    Posts
    401
    Thanks given
    29
    Thanks received
    11
    Rep Power
    0
    dosent work i try logging in and it wont let me type and there is a problem a black spot of old loading bar loading and my new loading bar stays in background and dosent leave :/
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Feb 2008
    Posts
    592
    Thanks given
    0
    Thanks received
    21
    Rep Power
    0
    yeh not working lol
    Reply With Quote  
     

  4. #4  
    Donator

    Kickyamom's Avatar
    Join Date
    Jul 2010
    Posts
    1,606
    Thanks given
    208
    Thanks received
    156
    Rep Power
    835
    Not adding till that white is removed.
    [Only registered and activated users can see links. ]

    Spoiler for Respect for the Truest:

    [Only registered and activated users can see links. ] GANG 4 LYFE
    Reply With Quote  
     

  5. #5  
    Donator Market Banned Market Banned

    Usaclub's Avatar
    Join Date
    Aug 2010
    Age
    25
    Posts
    512
    Thanks given
    119
    Thanks received
    37
    Rep Power
    29
    Needs more work, but still nice.

    My Vouches..
    Spoiler for Vouches:

    Quote Originally Posted by Benes View Post
    Very good!
    Quote Originally Posted by Jesper_ View Post
    Big vouch for you!!! Thanks for your auto donation system.
    Quote Originally Posted by Light View Post
    vouch, Bought summoning & extra. Went first and was done smoothly. Rep++
    Quote Originally Posted by Grim Line View Post
    Brought all of it. Very good trade very good guy
    Quote Originally Posted by HyBriDPvP View Post
    Vouch for this guy (I bought scripts and now i got my domain up and running with the WC maker (Rsps-HQ.com)) Ty!!!
    Quote Originally Posted by chri55w View Post
    vouch bought vote4cash, was done very quickly and payment went smooth
    Rep++ too
    thanks
    Quote Originally Posted by muporz View Post
    Vouch, bought vote4points $5, he even went first.
    Thanks .

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  6. #6  
    Super Donator

    Benji's Avatar
    Join Date
    Feb 2010
    Age
    26
    Posts
    1,526
    Thanks given
    920
    Thanks received
    501
    Discord
    View profile
    Rep Power
    555
    Quote Originally Posted by frostie18 View Post
    dosent work i try logging in and it wont let me type and there is a problem a black spot of old loading bar loading and my new loading bar stays in background and dosent leave :/
    resetimageproducers / resetimageproducers2

    Quote Originally Posted by Kickyamom View Post
    Not adding till that white is removed.
    resetimageproducers / resetimageproducers2

    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Oct 2010
    Posts
    1,312
    Thanks given
    63
    Thanks received
    257
    Rep Power
    0
    lol.... it doesnt let me type my username. when im about to type its being transparent ...
    Reply With Quote  
     

  8. #8  
    Member
    Join Date
    May 2010
    Posts
    401
    Thanks given
    29
    Thanks received
    11
    Rep Power
    0
    Quote Originally Posted by killer4lyf View Post
    lol.... it doesnt let me type my username. when im about to type its being transparent ...
    lmfao same thing with me
    Reply With Quote  
     

  9. #9  
    Ready for Battle


    Join Date
    Aug 2009
    Age
    25
    Posts
    368
    Thanks given
    87
    Thanks received
    34
    Rep Power
    99
    Forgot process loginScreenInput, add it and you should be able to type on it
    Reply With Quote  
     

  10. #10  
    Member
    Join Date
    May 2010
    Posts
    401
    Thanks given
    29
    Thanks received
    11
    Rep Power
    0
    thank you it worked but now i need your resetimageproducers and resetimageproducers2 for the loading bars to no appear
    Reply With Quote  
     

Page 1 of 4 123 ... LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. RS Login Screen
    By Infexis in forum Show-off
    Replies: 16
    Last Post: 12-31-2010, 09:56 AM
  2. Login Screen
    By Pakku in forum Requests
    Replies: 0
    Last Post: 05-13-2010, 11:22 PM
  3. My Login screen
    By alix in forum Show-off
    Replies: 10
    Last Post: 12-25-2009, 04:10 PM
  4. login screen
    By dadabehh in forum Help
    Replies: 1
    Last Post: 06-30-2009, 04:43 PM
  5. My Login Screen.
    By 35518 in forum Show-off
    Replies: 10
    Last Post: 05-02-2009, 05:59 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •