From ace2a160f66477d584bb21bb458e586afa1c8226 Mon Sep 17 00:00:00 2001 From: Lubos Lenco Date: Fri, 11 Mar 2022 15:14:13 +0100 Subject: [PATCH] Add contributors button --- Sources/arm/ui/UIMenu.hx | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/Sources/arm/ui/UIMenu.hx b/Sources/arm/ui/UIMenu.hx index ff1576dd..93b54374 100644 --- a/Sources/arm/ui/UIMenu.hx +++ b/Sources/arm/ui/UIMenu.hx @@ -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(); + } + } + }); } } }