BARS.defineActions(() => { new Action('about_window', { name: tl('dialog.settings.about') + '...', description: `Blockbench ${Blockbench.version}`, icon: 'info', category: 'blockbench', click: function () { const data = { isApp, version_label: Blockbench.version }; jQuery.ajax({ url: 'https://api.github.com/repos/JannisX11/blockbench/releases/latest', cache: false, type: 'GET', success(release) { let v = release.tag_name.replace(/^v/, ''); if (compareVersions(v, Blockbench.version)) { data.version_label = `${Blockbench.version} (${tl('about.version.update_available', [v])})`; } else if (compareVersions(Blockbench.version, v)) { data.version_label = `${Blockbench.version} (Pre-release)`; } else { data.version_label = `${Blockbench.version} (${tl('about.version.up_to_date')}😄)`; } }, error(err) {} }) new Dialog({ id: 'about', title: 'dialog.settings.about', width: 640, title_menu: new Menu([ 'settings_window', 'keybindings_window', 'theme_window', 'about_window', ]), buttons: [], component: { data() {return data}, template: `
Version {{ version_label }}
Created by Jannis Petersen
A free and open-source low-poly model editor. To make 3D art easy and accessible for everyone. For all who enjoy stylized 3D art. For game developers, students, content creators, and for the Minecraft community.
This program is powered by Electron
Published under the GPL 3.0 license