Add Image format screen

Rename Texture menu to Image
This commit is contained in:
JannisX11 2023-11-20 19:47:03 +01:00
parent 5e14670ae0
commit e41e8d4beb
4 changed files with 11 additions and 1 deletions

BIN
assets/image_editor.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

View File

@ -308,7 +308,7 @@ const MenuBar = {
}
})
new BarMenu('texture', [
new BarMenu('image', [
new MenuSeparator('adjustment'),
'adjust_brightness_contrast',
'adjust_saturation_hue',

View File

@ -116,6 +116,13 @@ new ModelFormat('image', {
per_texture_uv_size: true,
edit_mode: false,
image_editor: true,
format_page: {
button_text: 'format.image.new',
content: [
{type: 'image', source: './assets/image_editor.png', width: 640},
{text: tl('format.image.info.summary')},
]
},
new() {
if (newProject(this)) {
TextureGenerator.addBitmapDialog();

View File

@ -157,6 +157,8 @@
"format.image": "Image",
"format.image.desc": "Edit images in the 2D image editor",
"format.image.new": "Create New Image",
"format.image.info.summary": "The 2D Image editor lets you create and edit images and pixel art directly in Blockbench, without the need for an external image editor. Edit images, modify textures, or create your own pixel art!",
"format_category.general": "General",
"format_category.low_poly": "Low-Poly",
@ -1820,6 +1822,7 @@
"menu.transform": "Transform",
"menu.uv": "UV",
"menu.texture": "Texture",
"menu.image": "Image",
"menu.tools": "Tools",
"menu.display": "Display",
"menu.animation": "Animation",