I don't know if the following issues have already been raised. I did a few searches on the forum and I didn't find anything about these. The troubles I'm experiencing are related to the employment of IGUIComboBox with Irrlicht 1.4.2 running on MacOS X.
First of all, the method setEnabled() doesn't look working. If I use it, both passing TRUE or FALSE parameters, nothing happens on the target ComboBox.
Then, the event receiver seems ignoring the EGET_COMBO_BOX_CHANGED gui event. The code posted here, for example, is not executed.
Code: Select all
// A combobox has been modified
case irr::gui::EGET_COMBO_BOX_CHANGED:
// Switch current active camera
if (id == 103) {
// Read the new user-selected camera
int selectedCamera = simulator->getIntegerFromString(guip->numberOfStartingPopulationComboBox->getSelected());
// De-activate the currently selected camera
guip->smgr->setActiveCamera(0);
// Check which camera has been selected
if (selectedCamera == 0) guip->smgr->setActiveCamera(guip->fixedCamera);
else if (selectedCamera == 1) guip->smgr->setActiveCamera(guip->FPSCamera);
}
break;