Thread: Emotes while in a controller

Results 1 to 7 of 7
  1. #1 Emotes while in a controller 
    Cindra 718 Founder
    Four Nations's Avatar
    Join Date
    Sep 2012
    Posts
    1,043
    Thanks given
    77
    Thanks received
    186
    Rep Power
    56
    so im coding tut island atm and i've come across this wierd thing where while your in the controller you can't use any emotes, I know its caused by
    Code:
    @Override
    	public boolean processButtonClick(int interfaceId, int componentId, int slotId, int packetId) {
    because when i comment out

    Code:
    		if (!p.getControllerManager().processButtonClick(interfaceId, componentId, slotId, packetId)) {
    			return;
    		}
    and make it handle the interface from ButtonHandler it works. I would do this but it's more sufficient to just use the override, just wondering what would cause this?
    As far as i know its just the emotes tab that dosen't seem to be working.

    Thanks for help.
    Reply With Quote  
     

  2. #2  
    Success is the worst teacher

    Santa Hat's Avatar
    Join Date
    Oct 2012
    Age
    27
    Posts
    3,334
    Thanks given
    807
    Thanks received
    1,185
    Rep Power
    190
    Your overriding the method, and I'm assuming its returning false, which is why you wont be able to click and buttons either remove the method from your controller or make it return true


    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    (Official) Thanksgiver

    Arham's Avatar
    Join Date
    Jan 2013
    Age
    23
    Posts
    3,415
    Thanks given
    7,254
    Thanks received
    1,938
    Rep Power
    3905
    Why even override that method?
    Attached image
    Attached image
    Quote Originally Posted by MrClassic View Post
    Arham is the official thanker!
    List of my work here!
    Reply With Quote  
     

  5. #4  
    Cindra 718 Founder
    Four Nations's Avatar
    Join Date
    Sep 2012
    Posts
    1,043
    Thanks given
    77
    Thanks received
    186
    Rep Power
    56
    Quote Originally Posted by Santa Hat View Post
    Your overriding the method, and I'm assuming its returning false, which is why you wont be able to click and buttons either remove the method from your controller or make it return true
    I know I'm overriding the method, that was the idea. Also It is returning true for every interface except emotes interface.

    Quote Originally Posted by arham 4 View Post
    Why even override that method?
    Why not? It's a hell of a lot cleaner and the buttons won't have the same actions of your not in the controller.
    Reply With Quote  
     

  6. #5  
    (Official) Thanksgiver

    Arham's Avatar
    Join Date
    Jan 2013
    Age
    23
    Posts
    3,415
    Thanks given
    7,254
    Thanks received
    1,938
    Rep Power
    3905
    Oh yeah, forgot, you were making tutorial island.
    Attached image
    Attached image
    Quote Originally Posted by MrClassic View Post
    Arham is the official thanker!
    List of my work here!
    Reply With Quote  
     

  7. #6  
    Success is the worst teacher

    Santa Hat's Avatar
    Join Date
    Oct 2012
    Age
    27
    Posts
    3,334
    Thanks given
    807
    Thanks received
    1,185
    Rep Power
    190
    Quote Originally Posted by Water Seven View Post
    I know I'm overriding the method, that was the idea. Also It is returning true for every interface except emotes interface.



    Why not? It's a hell of a lot cleaner and the buttons won't have the same actions of your not in the controller.
    Why are you returning true for every interface but the emotes interface? that's why it wont let you do any emotes.. lol


    Reply With Quote  
     

  8. #7  
    Cindra 718 Founder
    Four Nations's Avatar
    Join Date
    Sep 2012
    Posts
    1,043
    Thanks given
    77
    Thanks received
    186
    Rep Power
    56
    Quote Originally Posted by Santa Hat View Post
    Why are you returning true for every interface but the emotes interface? that's why it wont let you do any emotes.. lol
    I'm not.. I'm returning true for every interface but for some reason the emotes tab dosent 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. Replies: 1
    Last Post: 06-30-2010, 12:16 AM
  2. Logout While in Combat
    By Lord Military in forum Help
    Replies: 4
    Last Post: 05-24-2010, 12:23 AM
  3. [emulous]poison while in area.
    By rmb7 in forum Help
    Replies: 14
    Last Post: 04-16-2009, 07:35 PM
  4. Automated Object Coding While IN-GAME!
    By JoeHill in forum Tutorials
    Replies: 13
    Last Post: 03-07-2008, 10:21 PM
  5. Replies: 6
    Last Post: 08-27-2007, 08:58 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
  •