altf4 / RealTimeTactics

Real Time Tactics (RTT) Game
GNU General Public License v3.0
6 stars 4 forks source link

Cegui Problem #44

Closed echofourpapa closed 12 years ago

echofourpapa commented 12 years ago

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.

echofourpapa commented 12 years ago

I think I fixed it.