Interface buttons help!

  • #1, by fabian-schurgersFriday, 20. March, 14:08 2 weeks ago
    Hi there!

    I was fidgeting about with interfaces, and I seem to have a bit of a problem with creating functional interface buttons.

    If I create an interface and create a new button, I can't seem to get the button to do anything.
    I have specified the 'object' and 'interface' area of the button, but whatever I put in the 'Actions' tab, is not executed when the button is clicked.

    The only time I can get a button to function, is if there is only 1 button in the interface, and the image of the button is the background image of the entire interface. Then, suddenly, it works.

    But perhaps I'm doing something awfully wrong?

    Best regards and thanks,

    Fabian


    Newbie

    23 Posts


  • #2, by esmeraldaFriday, 20. March, 17:35 2 weeks ago
    Are the buttons set as action areas?

    Maybe you could provide some screenshots? Makes it easier to find the problem.

    Great Poster

    366 Posts

  • #3, by fabian-schurgersSaturday, 21. March, 07:29 2 weeks ago
    Will do!

    Here are the screenshots!

    I have set up the button properly, I think? But when in the game, the first button, the backpack, works,  but the second does not.

    Both have the 'When mouse cursor enters object area, change cursor to Use' function.

    But the image of the first button is the general interface image....somehow that matters?

    Anyway, thanks your reply!

    Newbie

    23 Posts

  • #4, by afrlmeSaturday, 21. March, 11:31 2 weeks ago
    I see they are different interfaces, did you specify the interface area for each of them? It's possible that one or multiple interfaces are preventing other things below them from being detected.

    Imperator

    6705 Posts

  • #5, by fabian-schurgersSaturday, 21. March, 11:49 2 weeks ago
    Thanks for the reply!

    It's a different button of the same interface. I did the 'interface area' and everything, but no matter what, I cannot get the interface button to work!

    Even if I delete the other interfaces, the button does zero, nada, zipski!

    Update: I removed the background image of the interface, and gave the first button an active image. Now, it does nothing too!

    It really has something to do with the background image apparently?

    Newbie

    23 Posts

  • #6, by afrlmeSaturday, 21. March, 12:18 2 weeks ago
    You need to set them both to "action area" type. You should be able to toggle the active/inactive image state in mouse enters/leaves action parts with the "set active/inactive image" action part.

    Quick note: only 1 interface should contain command type buttons & only the buttons that are supposed to be commands, should be set to command type - all other buttons should be set to "action area" or one of the item types (if they are item placeholders or buttons for scrolling the inventory).

    Imperator

    6705 Posts

  • #7, by fabian-schurgersSaturday, 21. March, 13:54 2 weeks ago
    Thanks, but done that.

    The logic should be fine and the buttons should work, but they don't...

    To summarize: an interface is only able to have 1 button that can be clicked on?
    That is, the button which has the interface background image?

    Or is it a bug in the program?

    Anyway, thanks for your time!

    Best regards,

    Fabian

    Newbie

    23 Posts

  • #8, by afrlmeSaturday, 21. March, 15:51 2 weeks ago
    No, you should be able to add & use as many buttons as you like.

    Imperator

    6705 Posts

  • #9, by esmeraldaSaturday, 21. March, 16:05 2 weeks ago
    Yes, as many buttons as you like, but only on one interface buttons set as command type. Buttons on other interfaces should be set as action areas. (or inventory slots, ...)
    If you have only one interface with command buttons, it should be fine.

    Is your background of the interface in question big enough to hold both of your buttons? As far as I`m aware there must be a background covering the whole room you use as interface, or the buttons or inventory slots will not work. It can be a transparent background, but it needs to be there.
    Could that be the problem?

    Great Poster

    366 Posts

  • #10, by fabian-schurgersSaturday, 21. March, 16:22 2 weeks ago
    Yes, as many buttons as you like, but only on one interface buttons set as command type. Buttons on other interfaces should be set as action areas. (or inventory slots, ...)
    If you have only one interface with command buttons, it should be fine.

    Is your background of the interface in question big enough to hold both of your buttons? As far as I`m aware there must be a background covering the whole room you use as interface, or the buttons or inventory slots will not work. It can be a transparent background, but it needs to be there.
    Could that be the problem?
    And...that worked!!

    As soon as I set a background image for the interface, large enough to hold both buttons, they both worked fine!

    Many thanks!!

    Best regards,

    Fabian

    Newbie

    23 Posts

Write post