Hey, so there it's a problem with how I am using CEGUI events, specifically how CEGUI::EventArgs work. Everything I can find says that the event I am using(CEGUI::Combobox::EventListSelectionAccepted) will send apointer to the window(in this case the combobox) that called the event as part of the EventArgs, and to access this window pointer I need to static cast to WindowEventArgs and then it's a .window member. But I am getting this error:
../src/MenuState.cpp:811:58: error: request for member ‘window’ in ‘teamChange’, which is of pointer type ‘const CEGUI::WindowEventArgs*’ (maybe you meant to use ‘->’ ?)
But when I change it to -> I get this:
../src/MenuState.cpp:811:66: error: ‘teamChange->CEGUI::WindowEventArgs::window’ cannot be used as a function
Hey, so there it's a problem with how I am using CEGUI events, specifically how CEGUI::EventArgs work. Everything I can find says that the event I am using(CEGUI::Combobox::EventListSelectionAccepted) will send apointer to the window(in this case the combobox) that called the event as part of the EventArgs, and to access this window pointer I need to static cast to WindowEventArgs and then it's a .window member. But I am getting this error: ../src/MenuState.cpp:811:58: error: request for member ‘window’ in ‘teamChange’, which is of pointer type ‘const CEGUI::WindowEventArgs*’ (maybe you meant to use ‘->’ ?)
But when I change it to -> I get this: ../src/MenuState.cpp:811:66: error: ‘teamChange->CEGUI::WindowEventArgs::window’ cannot be used as a function
So, I am lost, and my google-fu has let me down.