void ActionCallback(ui::Button * sender) override { prompt->CloseActiveWindow(); if(prompt->signID!=-1) { prompt->sim->signs.erase(prompt->sim->signs.begin()+prompt->signID); } prompt->SelfDestruct(); }
void ActionCallback(ui::Button * sender) { ui::Engine::Ref().CloseWindow(); if(prompt->signID!=-1) { prompt->sim->signs.erase(prompt->sim->signs.begin()+prompt->signID); } prompt->SelfDestruct(); }
void ActionCallback(ui::Button * sender) override { prompt->CloseActiveWindow(); if(prompt->signID==-1 && prompt->textField->GetText().length()) { prompt->sim->signs.push_back(sign(prompt->textField->GetText(), prompt->signPosition.X, prompt->signPosition.Y, (sign::Justification)prompt->justification->GetOption().second)); } else if(prompt->signID!=-1 && prompt->textField->GetText().length()) { prompt->sim->signs[prompt->signID] = sign(sign(prompt->textField->GetText(), prompt->signPosition.X, prompt->signPosition.Y, (sign::Justification)prompt->justification->GetOption().second)); } prompt->SelfDestruct(); }