void LoadingScreen::DoAppendText(const std::string& str) { Wait(); { Core::Element* input = root->GetElementById("content"); Core::String content; input->GetInnerRML(content); content = Core::String(content + "<br />" + str.c_str()); input->SetInnerRML(content); } Post(); Refresh(); }
// Moves all children to be under control of the widget. void ElementFormControlSelect::OnUpdate() { ElementFormControl::OnUpdate(); // Move any child elements into the widget (except for the three functional elements). for(int child_index = 0;child_index<GetNumChildren();++child_index) { Core::Element* child = GetChild(child_index); // Check for a value attribute. Rocket::Core::String attribute_value = child->GetAttribute<Rocket::Core::String>("value", ""); // Pull the inner RML and add the option. Rocket::Core::String rml; child->GetInnerRML(rml); widget->AddOption(rml, attribute_value, -1, child->GetAttribute("selected") != NULL, child->GetAttribute("unselectable") == NULL); } RemoveAllChildren(); }