From 74e52d5a16f04bfa675bc00b49690486f622e9b7 Mon Sep 17 00:00:00 2001 From: JannisX11 Date: Wed, 30 Dec 2020 22:27:12 +0100 Subject: [PATCH] Add Layered Textures tooltip --- js/io/project.js | 2 ++ js/property.js | 1 + lang/en.json | 1 + 3 files changed, 4 insertions(+) diff --git a/js/io/project.js b/js/io/project.js index 8b637f19..e892e289 100644 --- a/js/io/project.js +++ b/js/io/project.js @@ -126,6 +126,7 @@ new Property(ModelProject, 'vector', 'visible_box', { }); new Property(ModelProject, 'boolean', 'layered_textures', { label: 'dialog.project.layered_textures', + description: 'dialog.project.layered_textures.desc', condition() {return Format.single_texture} }); @@ -172,6 +173,7 @@ BARS.defineActions(function() { let entry = form[property.name] = { label: property.label, + description: property.description, value: Project[property.name], type: property.type } diff --git a/js/property.js b/js/property.js index 778f5319..380f25f1 100644 --- a/js/property.js +++ b/js/property.js @@ -51,6 +51,7 @@ class Property { if (options.condition) this.condition = options.condition; if (options.exposed == false) this.exposed = false; if (options.label) this.label = options.label; + if (options.description) this.description = options.description; if (options.options) this.options = options.options; } delete() { diff --git a/lang/en.json b/lang/en.json index 77470183..fafb8731 100644 --- a/lang/en.json +++ b/lang/en.json @@ -250,6 +250,7 @@ "dialog.project.modded_entity_version": "Export Version", "dialog.project.ao": "Ambient Occlusion", "dialog.project.layered_textures": "Layered Textures", + "dialog.project.layered_textures.desc": "Enable preview mode for layered textures. Allows you to see up to 3 textures layered on top of each other.", "dialog.project.uv_mode": "UV Mode", "dialog.project.uv_mode.box_uv": "Box UV", "dialog.project.uv_mode.face_uv": "Per-face UV",