Mouse-Over Inventar

  • #1, von RayManiacMontag, 28. März 2016, 18:04 Uhr vor 9 Jahren
    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?

    Neuling

    10 Posts


  • #2, von afrlmeMontag, 28. März 2016, 18:15 Uhr vor 9 Jahren
    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

    Foren Imperator

    7285 Posts

  • #3, von RayManiacMittwoch, 30. März 2016, 18:48 Uhr vor 9 Jahren
    Thank you AFRLime, there were some good advices I was looking for. smile

    Neuling

    10 Posts