bsnes/icarus/ui/error-dialog.cpp

17 lines
369 B
C++
Raw Normal View History

2015-08-21 11:29:53 +00:00
ErrorDialog::ErrorDialog() {
errorDialog = this;
onClose([&] { setVisible(false); scanDialog->show(); });
layout.setMargin(5);
errorLog.setEditable(false);
closeButton.setText("Close").onActivate([&] { doClose(); });
setSize({800, 360});
setCentered();
}
auto ErrorDialog::show(const string& text) -> void {
errorLog.setText(text);
setVisible();
}