Can we add an event to a layout object (PushButton, etc...)
Posted: Mon May 15, 2017 17:09
Hi,
My team and I are making a little game with Ogre and CEGUI, and we're looking to know how to use layouts, we managed to load it and play around with schemes too, but can we select a part of the layout and add an event to it? Like, if I created a PushButton in my .layout, can I make it quit the game when I click on it, only by adding an event, or do I have to create another button? And if we have to create a Button, can we retrieve the x and y from the .layout?
Thanks for the help!
My team and I are making a little game with Ogre and CEGUI, and we're looking to know how to use layouts, we managed to load it and play around with schemes too, but can we select a part of the layout and add an event to it? Like, if I created a PushButton in my .layout, can I make it quit the game when I click on it, only by adding an event, or do I have to create another button? And if we have to create a Button, can we retrieve the x and y from the .layout?
Thanks for the help!