Thread: Basic scroll wheel zooming

Results 1 to 5 of 5
  1. #1 Basic scroll wheel zooming 
    Registered Member
    Join Date
    Oct 2009
    Posts
    407
    Thanks given
    123
    Thanks received
    64
    Rep Power
    4
    This exists in different forms, but none of the current ways worked for me, so here's how I did it.

    client.java declare

    Code:
    public static int zoom = 1;
    change
    Code:
    setCameraPos(600 + i * 3, i, anInt1014, method42(plane, myPlayer.y, myPlayer.x) - 50, k, anInt1015);
    to

    Code:
    setCameraPos(600 + i * zoom, i, anInt1014, method42(plane, myPlayer.y, myPlayer.x) - 50, k, anInt1015);
    RSApplet.java declare

    Code:
    public boolean badZoomPosition() {
    		if((mouseX > 0 && mouseY > 340 && mouseX < 510 && mouseY < 500) || 
    			(mouseY > 210 && mouseY < 473 && mouseX > 514 && mouseX < 762)) {
    			return true;
    		}
    		return false;
    	}
    	
    	public boolean tabOpen() {
    		if((client.tabInterfaceIDs[client.tabID] == 638) || (client.tabInterfaceIDs[client.tabID] == 147) || (client.tabInterfaceIDs[client.tabID] == 638) || (client.tabInterfaceIDs[client.tabID] == 18128)
    		|| (client.tabInterfaceIDs[client.tabID] == 5715) || (client.tabInterfaceIDs[client.tabID] == 5065) || (client.openInterfaceID == 5292)) {
    			return true;
    		}
    		return false;
    	}
    RSApplet.java in the mouseWheelMoved method add this before the last bracket

    Code:
    if (notches == -1 && !tabOpen() && !badZoomPosition()) {
    				if (client.zoom > -1)
    					client.zoom--;
    		} else {
    				if (client.zoom < 15 && !tabOpen() && !badZoomPosition())
    					client.zoom++;
    				
    		}
    Reply With Quote  
     

  2. #2  
    Registered Member Sheddy's Avatar
    Join Date
    Jul 2009
    Age
    27
    Posts
    1,041
    Thanks given
    52
    Thanks received
    87
    Rep Power
    52
    Is notches just declared and that's it? Because I don't have nothces so I just removed it and my zoom doesn't work. It zooms in but then gets stuck. It won't zoom out.



    Spoiler for Nex Sets Done Right w/ Dyl:

    Reply With Quote  
     

  3. #3  
    Janemba!!!!

    Women's Avatar
    Join Date
    Mar 2010
    Posts
    1,683
    Thanks given
    425
    Thanks received
    707
    Rep Power
    526
    Quote Originally Posted by Sheddy View Post
    Is notches just declared and that's it? Because I don't have nothces so I just removed it and my zoom doesn't work. It zooms in but then gets stuck. It won't zoom out.
    might be called rotation in your client
    Reply With Quote  
     

  4. #4  
    Registered Member Sheddy's Avatar
    Join Date
    Jul 2009
    Age
    27
    Posts
    1,041
    Thanks given
    52
    Thanks received
    87
    Rep Power
    52
    Quote Originally Posted by Women View Post
    might be called rotation in your client
    You da Bomb.



    Spoiler for Nex Sets Done Right w/ Dyl:

    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Aug 2014
    Posts
    3
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    can you help please? In my 317 it is saying client on the tabInterfaceIDs can not be resolved to a variable. Do you have a suggestion of what to change these to? thank you for your good work
    Reply With Quote  
     


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. remove ctrl + scroll to zoom
    By Mr Dream in forum Help
    Replies: 16
    Last Post: 05-27-2017, 01:23 AM
  2. How to fix scroll wheel zoom Perception
    By OmniPS in forum Help
    Replies: 2
    Last Post: 04-08-2017, 09:34 PM
  3. Mouse Wheel Zooming In & Out
    By Provider in forum Help
    Replies: 1
    Last Post: 04-14-2016, 03:51 AM
  4. Client zooming via scroll wheel for 718
    By Sammi in forum Buying
    Replies: 4
    Last Post: 05-29-2015, 03:43 AM
  5. [PI]Very basic Clue Scroll
    By Xyger in forum Snippets
    Replies: 11
    Last Post: 05-20-2013, 11:07 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •