Thread: Client Loading Stage Mouse Position

Results 1 to 4 of 4
  1. #1 Client Loading Stage Mouse Position 
    Registered Member
    Join Date
    Sep 2010
    Posts
    47
    Thanks given
    7
    Thanks received
    0
    Rep Power
    1
    Hello, I want to see my mouse position X and Y while loading stage and in login stage.

    Code:
     			aTextDrawingArea_1271.method385(0xffff00, "Mouse X: " + super.mouseX
    					+ " , Mouse Y: " + super.mouseY, 314, 5);
    I was trying to add some code in here:

    Code:
    	public void loadingStages() {
    		if (lowMem && loadingStage == 2 && ObjectManager.anInt131 != plane) {
    			mainGameGraphicsBuffer.setCanvas();
    			drawLoadingMessages(1, "Loading - please wait.", null);
    			mainGameGraphicsBuffer.drawGraphics(0, super.graphics, 0);
    			loadingStage = 1;
    			aLong824 = System.currentTimeMillis();
    		}
    		if (loadingStage == 1) {
    			int j = method54();
    			if (j != 0 && System.currentTimeMillis() - aLong824 > 0x57e40L) {
    				Signlink.reporterror(
    						myUsername + " glcfb " + aLong1215 + "," + j + "," + lowMem + "," + decompressors[0] + ","
    								+ onDemandFetcher.getNodeCount() + "," + plane + "," + mapRegionsX + "," + mapRegionsY);
    				aLong824 = System.currentTimeMillis();
    			}
    		}
    		if (loadingStage == 2 && plane != anInt985) {
    			anInt985 = plane;
    			method24(plane);
    			stream.createFrame(121);
    			aTextDrawingArea_1271.method385(0xffff00, "Mouse X: " + super.mouseX
    					+ " , Mouse Y: " + super.mouseY, 314, 5);
    		}
    	}
    I think it's wrong place.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Sep 2010
    Posts
    47
    Thanks given
    7
    Thanks received
    0
    Rep Power
    1
    up up up
    Reply With Quote  
     

  3. #3  
    Donator

    Join Date
    Sep 2016
    Posts
    102
    Thanks given
    85
    Thanks received
    37
    Rep Power
    33
    If you want to see it on the login screen, add it inside drawLoginScreen at the bottom. Some clients have opted to use custom login screen methods, if you have one then add it inside at the bottom there.
    By loading stages, do you mean in game when the client is loading a new area and you get the "Loading Please Wait", or do you mean when the client is starting up and loading before the login screen?
    If a man does not have the sauce, then he is lost. But the same man can be lost in the sauce.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Sep 2010
    Posts
    47
    Thanks given
    7
    Thanks received
    0
    Rep Power
    1
    I mean in login screen, where player enter username and password, I think I managed to find the right place but now It wont show up, becose Got here keep printing in login screen
    Code:
    		if (loginScreenState == 0 || loginScreenState == 2) {
    			newRegularFont.drawBasicString("Mouse position", (765 / 2), y + height / 2, 0xffffff, 1);
    			aTextDrawingArea_1271.method385(0xffff00, "Mouse X: " + super.mouseX
    					+ " , Mouse Y: " + super.mouseY, 314, 125);
    			System.out.println("Got here?1");
    		}

    Edited:
    I managed it to work found another statement of this:
    Code:
    if (loginScreenState == 0 || loginScreenState == 2) {
    and added there
    Code:
    aTextDrawingArea_1271.method385(0xffff00, "Mouse X: " + super.mouseX
    					+ " , Mouse Y: " + super.mouseY, 314, 55);
    I have another question if I had 2 same statements It could crash that mouse position printing on the screen?
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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

Similar Threads

  1. Making your client load forums when it runs.
    By Roboyto in forum Snippets
    Replies: 18
    Last Post: 09-13-2009, 02:06 PM
  2. Problem Client Loading (400+)
    By HyreScape in forum Help
    Replies: 7
    Last Post: 03-15-2009, 09:59 PM
  3. Client loading error
    By Devilwasbad1 in forum Help
    Replies: 0
    Last Post: 03-02-2009, 09:46 AM
  4. [525] Client Loading
    By 0v3rc0m3 in forum Help
    Replies: 4
    Last Post: 01-30-2009, 11:22 PM
  5. clients load up but then an error comes up.
    By blugie in forum RS2 Client
    Replies: 8
    Last Post: 03-24-2008, 10:27 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
  •