//-------------------------------------------------------------------------------- void Chat::Log(const MyGUI::UString& str, const MyGUI::UString& color) { Framework::System::Log::Debug(std::string("Chat: ") + str.asUTF8()); mMessagesMutex.lock(); mMessages.push_back(std::make_pair(str,color)); mMessagesMutex.unlock(); }
void SpaceShipDesignerGUI::editBoxUpdated(MyGUI::EditBox *widget) { MyGUI::UString caption = widget->getCaption(); if(widget->getName() == "SelectFloorFrom") { if(caption == "") mParent->enableSelectedFloorFrom(false); else { mParent->setSelectedFloorFrom(atoi(caption.asUTF8().c_str())); } } else if(widget->getName() == "SelectFloorTo") { if(caption == "") mParent->enableSelectedFloorTo(false); else { mParent->setSelectedFloorTo(atoi(caption.asUTF8().c_str())); } } }