Mouse-Over Inventar

  • #1, by RayManiacMonday, 28. March 2016, 18:04 4 years ago
    Hallo,
    sobald der Maus-Cursor den oberen Bildschirmrand berührt, möchte ich einen schwarzen Balken, das Inventar, einblenden. Den schwarzen Balken habe ich als PNG schonmal unter Interface > Einstellungen eingefügt.

    Was muss ich einstellen, damit der schwarze Balken versteckt bleibt und er erst gezeigt wird, sobald ich den oberen Bildschirm-Rand berühre?

    Newbie

    10 Posts


  • #2, by afrlmeMonday, 28. March 2016, 18:15 4 years ago
    Do you want the inventory to appear instantly? Fade in? or slide in from the top?

    For the interaction part you need to declare the interface area via the toolbar in the interface section of the editor. There's an icon / button that you need to click to be able to draw the polygon that determines the interface area.

    Next you are either going to want to set the opacity of the interface to 0 or you are going to want to offset the Y position of the interface by the height of the background image you created for the inventory.

    Next you would create a button set to "action area" type & inside of that a mouse enter action part containing some actions based on how you want to transition in the inventory.

    Inside of the properties tab for your interface will be an section for declaring actions for on mouse leave interface area. You would essentially add the opposite actions to what you added to the on mouse enters actions.

    I would be able to get a lot more specific if I knew exactly what you had in mind, but maybe this will help you out a little bit anyway. wink

    Imperator

    6817 Posts

  • #3, by RayManiacWednesday, 30. March 2016, 18:48 4 years ago
    Thank you AFRLime, there were some good advices I was looking for. smile

    Newbie

    10 Posts

Write post