I have created a panel in my GUI and i set a Button as children with position (0, 0) relative to the panel
when i hover the mouse on the button i receive the event and the image changes, pressed works fine as well
but when i move the mouse while hovering outside the panel while the mouse had hover it stays on hover state. I add the button after i initialize it with
Code: [Select]
tgui::Panel::add(button, "button") but when i create the button i don't set the GUI in the constructor.

Any ideas?


EDIT: Fixed on new release of TGUI v0.6.5
« Last Edit: 16 August 2014, 17:41:28 by JohnGreek »

A.C.A.B
ULTRAS =3=

*

texus

  • *****
  • 1143
    • View Profile
    • Texus's Blog
Re: Button within Panel(as child) hoverLeave event not correct
« Reply #1 on: 03 August 2014, 18:49:39 »
This was a small bug in tgui.

If you download and compile the latest version then the button should no longer remain in hover state.
« Last Edit: 03 August 2014, 18:55:05 by texus »

Re: Button within Panel(as child) hoverLeave event not correct
« Reply #2 on: 06 August 2014, 10:40:57 »
Thanks for your reply.

I will have to build SFML from source as well no?

duh..

A.C.A.B
ULTRAS =3=

*

texus

  • *****
  • 1143
    • View Profile
    • Texus's Blog
Re: Button within Panel(as child) hoverLeave event not correct
« Reply #3 on: 06 August 2014, 11:06:04 »
Yes and no.

Actually any sfml 2.x version will do. You just have to make sure that the sfml version used to compile tgui is the same as the one used in your project.

But since there is a bug in sfml 2.1 that influences tgui, and sfml 2.0 is even less stable, you are actually adviced to use the github version of sfml.

Re: Button within Panel(as child) hoverLeave event not correct
« Reply #4 on: 08 August 2014, 20:28:33 »
I see.
Thanks for your help ;)

A.C.A.B
ULTRAS =3=