Thread: Interface Help

Results 1 to 4 of 4
  1. #1 Interface Help 
    Registered Member
    Underoath's Avatar
    Join Date
    Sep 2008
    Posts
    2,943
    Thanks given
    826
    Thanks received
    582
    Rep Power
    853
    How do I set more than 1 action for an interface button?
    Like say I'm using the character design interface. How would I make it so that my players hair changes everytime I click the button?


    Special thanks to Payton :trollface:
    Spoiler for People I respect:

    Definitely not you, faggot.

    Reply With Quote  
     

  2. #2  
    Typical Swede


    Join Date
    Jul 2008
    Posts
    1,163
    Thanks given
    203
    Thanks received
    153
    Rep Power
    209
    Code:
        case ##
           p.look[0] = p.look[0] + 1;
        break;

    'Strange things did happen here no stranger would it be'
    ______________________________________________
    Reply With Quote  
     

  3. #3  
    Registered Member
    _slam's Avatar
    Join Date
    Oct 2009
    Posts
    309
    Thanks given
    5
    Thanks received
    1
    Rep Power
    441
    Code:
                case ****:
                    if (buttonId == 5) {
                        p.look[0] = p.look[0] + 1;
                    }
                    if (buttonId == 4) {
                       p.look[0] = p.look[0] + 1;
                      }
                    System.out.println("buttondID : " + buttonId);
                    break;
    Something like that should work, change the case and buttons to the correct ids.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. #4  
    Registered Member
    Underoath's Avatar
    Join Date
    Sep 2008
    Posts
    2,943
    Thanks given
    826
    Thanks received
    582
    Rep Power
    853
    Ok thanks will try it.


    Special thanks to Payton :trollface:
    Spoiler for People I respect:

    Definitely not you, faggot.

    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •