Thread: How to fix scroll wheel zoom Perception

Results 1 to 3 of 3
  1. #1 How to fix scroll wheel zoom Perception 
    Owner of OmniScape
    OmniPS's Avatar
    Join Date
    Jul 2013
    Posts
    310
    Thanks given
    80
    Thanks received
    49
    Rep Power
    48
    Hey, I tried ripping the RSApplet.java from brutality, because it uses the same base as mine(Perception), and they have a zoom function. But it doesn't zoom. I have added to much to my client to just use the OSBrutality client. I also have an issue with the ores that are manually spawned via the object spawn config, they all are the same color. like rune addy mith are all the copper color. I have the Brutality cache which has that issue fixed, what should i rip from the cache to fix that? thanks

    Here is my RSApplet: https://pastebin.com/S9bBLKSx
    Reply With Quote  
     

  2. #2  
    Registered Member 1m6n29s9gmxh's Avatar
    Join Date
    Jan 2017
    Posts
    430
    Thanks given
    32
    Thanks received
    100
    Rep Power
    40
    Quote Originally Posted by darkaizen View Post
    Hey, I tried ripping the RSApplet.java from brutality, because it uses the same base as mine(Perception), and they have a zoom function. But it doesn't zoom. I have added to much to my client to just use the OSBrutality client. I also have an issue with the ores that are manually spawned via the object spawn config, they all are the same color. like rune addy mith are all the copper color. I have the Brutality cache which has that issue fixed, what should i rip from the cache to fix that? thanks

    Here is my RSApplet: https://pastebin.com/S9bBLKSx
    Code:
      public void mouseWheelMoved(MouseWheelEvent event) {
    		int rotation = event.getWheelRotation();
    		handleInterfaceScrolling(event);
    		if(mouseX > 0 && mouseX < 512 && mouseY > Configuration.clientHeight - 165 && mouseY < Configuration.clientHeight - 25) {
    			int scrollPos = Client.anInt1089;
    			scrollPos -= rotation * 30;		
    			if(scrollPos < 0) {
    				scrollPos = 0;
    			}
    			if(scrollPos > Client.anInt1211 - 110) {
    				scrollPos = Client.anInt1211 - 110;
    			}
    			
    			if(Client.anInt1089 != scrollPos) {
    				Client.anInt1089 = scrollPos;
    				Client.inputTaken = true;
    			}
    		}
    		if (Client.openInterfaceID == -1) {
    			if (canZoom) {
    				if (rotation == -1) {
    					if(mouseX > 0 && mouseX < 512 && mouseY > Configuration.clientHeight - 165 && mouseY < Configuration.clientHeight - 25) {
    						return;
    					}
    					if (Client.cameraZoom > 200) {
    						Client.cameraZoom -= 50;
    					}
    				} else {
    					if (Client.cameraZoom < 1200) {
    						Client.cameraZoom += 50;
    					}
    				}
    			}
    		}
    	}
    Spoiler for Insanity V2 Coders be like ::
    Attached image
    Attached image
    Reply With Quote  
     

  3. #3  
    Owner of OmniScape
    OmniPS's Avatar
    Join Date
    Jul 2013
    Posts
    310
    Thanks given
    80
    Thanks received
    49
    Rep Power
    48
    Quote Originally Posted by Hitmanerator View Post
    Code:
      public void mouseWheelMoved(MouseWheelEvent event) {
    		int rotation = event.getWheelRotation();
    		handleInterfaceScrolling(event);
    		if(mouseX > 0 && mouseX < 512 && mouseY > Configuration.clientHeight - 165 && mouseY < Configuration.clientHeight - 25) {
    			int scrollPos = Client.anInt1089;
    			scrollPos -= rotation * 30;		
    			if(scrollPos < 0) {
    				scrollPos = 0;
    			}
    			if(scrollPos > Client.anInt1211 - 110) {
    				scrollPos = Client.anInt1211 - 110;
    			}
    			
    			if(Client.anInt1089 != scrollPos) {
    				Client.anInt1089 = scrollPos;
    				Client.inputTaken = true;
    			}
    		}
    		if (Client.openInterfaceID == -1) {
    			if (canZoom) {
    				if (rotation == -1) {
    					if(mouseX > 0 && mouseX < 512 && mouseY > Configuration.clientHeight - 165 && mouseY < Configuration.clientHeight - 25) {
    						return;
    					}
    					if (Client.cameraZoom > 200) {
    						Client.cameraZoom -= 50;
    					}
    				} else {
    					if (Client.cameraZoom < 1200) {
    						Client.cameraZoom += 50;
    					}
    				}
    			}
    		}
    	}
    didnt work.

    anyone?
    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. [PI] how to fix the q69 shit on your scroll
    By Rugrats in forum Snippets
    Replies: 8
    Last Post: 12-30-2010, 11:17 AM
  2. [DYI]How to:Fix 100 Errors.
    By RSSJ in forum Tutorials
    Replies: 15
    Last Post: 12-12-2007, 09:24 PM
  3. Replies: 5
    Last Post: 09-26-2007, 10:26 PM
  4. How To Fix Bans And Ip Bans (Newb Friendly)
    By Crazy Cam10 in forum Tutorials
    Replies: 3
    Last Post: 09-10-2007, 08:54 PM
  5. How to fix your ::npc command :D
    By RSSJ in forum Tutorials
    Replies: 3
    Last Post: 08-08-2007, 06:05 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
  •