Thread: Right click is off

Results 1 to 4 of 4
  1. #1 Right click is off 
    Registered Member

    Join Date
    Apr 2009
    Posts
    1,728
    Thanks given
    403
    Thanks received
    210
    Rep Power
    390
    As you can see my right clicking is way off and the context menu that is created is way below my cursor.

    Pic(red circle is where my cursor is):


    Btw I switched from a 474 game frame to a 459 right before I discovered this problem
    Reply With Quote  
     

  2. #2  
    #extreme

    +Deus Ex's Avatar
    Join Date
    Nov 2009
    Posts
    2,965
    Thanks given
    236
    Thanks received
    214
    Rep Power
    411
    try checking your dropmenu method?
    Best regards,
    +Deus Ex
    Reply With Quote  
     

  3. #3  
    Registered Member
    Purple's Avatar
    Join Date
    Feb 2010
    Age
    26
    Posts
    2,799
    Thanks given
    467
    Thanks received
    260
    Rep Power
    312
    Wait, I got the fix for this, happened to me when I converted galkons client to 459 gameframe, give me a second and I think I can find it again.

    Replace your determinemenusize with this:
    Code:
    	public void determineMenuSize()
    	{
    		int i = chatTextDrawingArea.getTextWidth("Choose Option");
    		for(int j = 0; j < menuActionRow; j++)
    		{
    			int k = chatTextDrawingArea.getTextWidth(menuActionName[j]);
    			if(k > i)
    				i = k;
    		}
    
    		i += 8;
    		int l = 15 * menuActionRow + 21;
    		if(super.saveClickX > 4 && super.saveClickY > 4 && super.saveClickX < 516 && super.saveClickY < 338)
    		{
    			int i1 = super.saveClickX - 4 - i / 2;
    			if(i1 + i > 512)
    				i1 = 512 - i;
    			if(i1 < 0)
    				i1 = 0;
    			int l1 = super.saveClickY - 4;
    			if(l1 + l > 334)
    				l1 = 334 - l;
    			if(l1 < 0)
    				l1 = 0;
    			menuOpen = true;
    			menuScreenArea = 0;
    			menuOffsetX = i1;
    			menuOffsetY = l1;
    			menuWidth = i;
    			menuHeight = 15 * menuActionRow + 22;
    		}
    		if(super.saveClickX > 553 && super.saveClickY > 205 && super.saveClickX < 743 && super.saveClickY < 466)
    		{
    			int j1 = super.saveClickX - 553 - i / 2;
    			if(j1 < 0)
    				j1 = 0;
    			else
    			if(j1 + i > 190)
    				j1 = 190 - i;
    			int i2 = super.saveClickY - 205;
    			if(i2 < 0)
    				i2 = 0;
    			else
    			if(i2 + l > 261)
    				i2 = 261 - l;
    			menuOpen = true;
    			menuScreenArea = 1;
    			menuOffsetX = j1;
    			menuOffsetY = i2;
    			menuWidth = i;
    			menuHeight = 15 * menuActionRow + 22;
    		}
    		if(super.saveClickX > 17 && super.saveClickY > 357 && super.saveClickX < 496 && super.saveClickY < 453)
    		{
    			int k1 = super.saveClickX - 17 - i / 2;
    			if(k1 < 0)
    				k1 = 0;
    			else
    			if(k1 + i > 479)
    				k1 = 479 - i;
    			int j2 = super.saveClickY - 357;
    			if(j2 < 0)
    				j2 = 0;
    			else
    			if(j2 + l > 96)
    				j2 = 96 - l;
    			menuOpen = true;
    			menuScreenArea = 2;
    			menuOffsetX = k1;
    			menuOffsetY = j2;
    			menuWidth = i;
    			menuHeight = 15 * menuActionRow + 22;
    		}
    	}
    Reply With Quote  
     

  4. Thankful users:


  5. #4  
    Registered Member

    Join Date
    Apr 2009
    Posts
    1,728
    Thanks given
    403
    Thanks received
    210
    Rep Power
    390
    Quote Originally Posted by +TimeShift View Post
    try checking your dropmenu method?
    I dont think I have a dropmenu method but if your talking about the drawmenu method then yeah I already checked it and dosnt look like anything is wrong

    Quote Originally Posted by Purple View Post
    Wait, I got the fix for this, happened to me when I converted galkons client to 459 gameframe, give me a second and I think I can find it again.

    Replace your determinemenusize with this:
    Code:
    	public void determineMenuSize()
    	{
    		int i = chatTextDrawingArea.getTextWidth("Choose Option");
    		for(int j = 0; j < menuActionRow; j++)
    		{
    			int k = chatTextDrawingArea.getTextWidth(menuActionName[j]);
    			if(k > i)
    				i = k;
    		}
    
    		i += 8;
    		int l = 15 * menuActionRow + 21;
    		if(super.saveClickX > 4 && super.saveClickY > 4 && super.saveClickX < 516 && super.saveClickY < 338)
    		{
    			int i1 = super.saveClickX - 4 - i / 2;
    			if(i1 + i > 512)
    				i1 = 512 - i;
    			if(i1 < 0)
    				i1 = 0;
    			int l1 = super.saveClickY - 4;
    			if(l1 + l > 334)
    				l1 = 334 - l;
    			if(l1 < 0)
    				l1 = 0;
    			menuOpen = true;
    			menuScreenArea = 0;
    			menuOffsetX = i1;
    			menuOffsetY = l1;
    			menuWidth = i;
    			menuHeight = 15 * menuActionRow + 22;
    		}
    		if(super.saveClickX > 553 && super.saveClickY > 205 && super.saveClickX < 743 && super.saveClickY < 466)
    		{
    			int j1 = super.saveClickX - 553 - i / 2;
    			if(j1 < 0)
    				j1 = 0;
    			else
    			if(j1 + i > 190)
    				j1 = 190 - i;
    			int i2 = super.saveClickY - 205;
    			if(i2 < 0)
    				i2 = 0;
    			else
    			if(i2 + l > 261)
    				i2 = 261 - l;
    			menuOpen = true;
    			menuScreenArea = 1;
    			menuOffsetX = j1;
    			menuOffsetY = i2;
    			menuWidth = i;
    			menuHeight = 15 * menuActionRow + 22;
    		}
    		if(super.saveClickX > 17 && super.saveClickY > 357 && super.saveClickX < 496 && super.saveClickY < 453)
    		{
    			int k1 = super.saveClickX - 17 - i / 2;
    			if(k1 < 0)
    				k1 = 0;
    			else
    			if(k1 + i > 479)
    				k1 = 479 - i;
    			int j2 = super.saveClickY - 357;
    			if(j2 < 0)
    				j2 = 0;
    			else
    			if(j2 + l > 96)
    				j2 = 96 - l;
    			menuOpen = true;
    			menuScreenArea = 2;
    			menuOffsetX = k1;
    			menuOffsetY = j2;
    			menuWidth = i;
    			menuHeight = 15 * menuActionRow + 22;
    		}
    	}
    Thanks man, rep'd
    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. Need help with right click
    By nicky-nino in forum Help
    Replies: 0
    Last Post: 03-06-2010, 08:29 AM
  2. Moving right click area and click here colour
    By razvanx in forum RS2 Client
    Replies: 6
    Last Post: 06-09-2008, 05:45 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
  •