Thread: Interfaces [Help]

Results 1 to 2 of 2
  1. #1 Interfaces [Help] 
    Registered Member

    Join Date
    Nov 2014
    Posts
    337
    Thanks given
    47
    Thanks received
    12
    Rep Power
    187
    In ClickingButtons is this the only way to do Interface actions like switching between screens of the interface or closing the window? Cause I just currently have a bunch of switch cases for the interfaces to open/switch/close.. which don't seem to effective.

    Code:
    case 162037:
    		case 160049:
    			c.getPA().showInterface(42000);
    			break;
    			
    		case 164023:
    			c.getPA().showInterface(41500);
    			break;
    		
    		case 128238:
    		case 80149:
    		case 80232:
    		case 160042:
    			c.getPA().closeAllWindows();
    			break;
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Aug 2015
    Posts
    78
    Thanks given
    35
    Thanks received
    25
    Rep Power
    110
    there are other ways, for example you could use polymorphism to handle buttons, you could also use something like an event bus to handle button clicks.
    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. Quest Open Interface help...
    By 0v3rc0m3 in forum Help
    Replies: 11
    Last Post: 02-01-2009, 11:54 PM
  2. teleport interface help
    By Bmxican in forum Help
    Replies: 2
    Last Post: 01-09-2009, 02:03 AM
  3. New interface help
    By Magers in forum Help
    Replies: 0
    Last Post: 12-01-2008, 12:46 AM
  4. item in interface help plz
    By garaa447 in forum Help
    Replies: 0
    Last Post: 11-25-2008, 02:51 AM
  5. [508] item on interfaces help
    By tinosk in forum Requests
    Replies: 7
    Last Post: 10-31-2008, 06:17 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
  •