mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Add readable export errors. Add RTL image vertical alignment support.
This commit is contained in:
@@ -146,7 +146,12 @@ void EditorRunNative::_run_native(int p_idx, int p_platform) {
|
||||
flags |= EditorExportPlatform::DEBUG_FLAG_SHADER_FALLBACKS;
|
||||
}
|
||||
|
||||
eep->run(preset, p_idx, flags);
|
||||
eep->clear_messages();
|
||||
Error err = eep->run(preset, p_idx, flags);
|
||||
result_dialog_log->clear();
|
||||
if (eep->fill_log_messages(result_dialog_log, err)) {
|
||||
result_dialog->popup_centered_ratio(0.5);
|
||||
}
|
||||
}
|
||||
|
||||
void EditorRunNative::resume_run_native() {
|
||||
@@ -200,6 +205,15 @@ bool EditorRunNative::get_debug_shader_fallbacks() const {
|
||||
}
|
||||
|
||||
EditorRunNative::EditorRunNative() {
|
||||
result_dialog = memnew(AcceptDialog);
|
||||
result_dialog->set_title(TTR("Project Run"));
|
||||
result_dialog_log = memnew(RichTextLabel);
|
||||
result_dialog_log->set_custom_minimum_size(Size2(300, 80) * EDSCALE);
|
||||
result_dialog->add_child(result_dialog_log);
|
||||
|
||||
add_child(result_dialog);
|
||||
result_dialog->hide();
|
||||
|
||||
set_process(true);
|
||||
first = true;
|
||||
deploy_dumb = false;
|
||||
|
||||
Reference in New Issue
Block a user