| 128 | } |
| 129 | |
| 130 | ScriptObject* createDialog(const std::string& id) { |
| 131 | auto dialog = getEngine()->create<ui::Dialog>(); |
| 132 | if (!dialog) |
| 133 | return nullptr; |
| 134 | |
| 135 | if (!id.empty()) |
| 136 | dialog->set("id", id); |
| 137 | |
| 138 | return dialog; |
| 139 | } |
| 140 | |
| 141 | void documentation() { |
| 142 | std::stringstream out; |
no test coverage detected