Add contributors button

This commit is contained in:
Lubos Lenco
2022-03-11 15:14:13 +01:00
parent 23e414f395
commit ace2a160f6
+23 -1
View File
@@ -455,7 +455,29 @@ class UIMenu {
// { lshw -C display }
#end
UIBox.showMessage(tr("About"), msg, true);
UIBox.showCustom(function(ui: Zui) {
if (ui.tab(Id.handle(), tr("About"))) {
Ext.textArea(ui, Id.handle({ text: msg }), false);
ui.row([1 / 3, 1 / 3, 1 / 3]);
#if (krom_windows || krom_linux || krom_darwin)
if (ui.button(tr("Copy"))) {
Krom.copyToClipboard(msg);
}
#else
ui.endElement();
#end
if (ui.button(tr("Contributors"))) {
File.loadUrl("https://github.com/armory3d/armorpaint/graphs/contributors");
}
if (ui.button(tr("OK"))) {
UIBox.show = false;
App.redrawUI();
}
}
});
}
}
}