This commit is contained in:
Lubos Lenco
2022-02-24 11:59:03 +01:00
parent 6b3176cf50
commit 350d865b20
4 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -313,7 +313,7 @@ class TabLayers {
else {
ui.tooltipImage(l.texpaint_preview);
}
if(i < 9) ui.tooltip(l.name + " - (" + Config.keymap.select_layer + " " + (i+1) + ")");
if (i < 9) ui.tooltip(l.name + " - (" + Config.keymap.select_layer + " " + (i + 1) + ")");
else ui.tooltip(l.name);
}
if (ui.isHovered && ui.inputReleasedR) {
+2 -2
View File
@@ -176,7 +176,7 @@ class TabMaterials {
}
if (ui.isHovered) {
ui.tooltipImage(imgFull);
if (i < 9) ui.tooltip(Project.materials[i].canvas.name + " - (" + Config.keymap.select_material + " " + (i+1) + ")");
if (i < 9) ui.tooltip(Project.materials[i].canvas.name + " - (" + Config.keymap.select_material + " " + (i + 1) + ")");
else ui.tooltip(Project.materials[i].canvas.name);
}
@@ -185,7 +185,7 @@ class TabMaterials {
ui._y += slotw * 0.9;
ui.text(Project.materials[i].canvas.name, Center);
if (ui.isHovered) {
if (i < 9) ui.tooltip(Project.materials[i].canvas.name + " - (" + Config.keymap.select_material + " " + (i+1) + ")");
if (i < 9) ui.tooltip(Project.materials[i].canvas.name + " - (" + Config.keymap.select_material + " " + (i + 1) + ")");
else ui.tooltip(Project.materials[i].canvas.name);
}
ui._y -= slotw * 0.9;
+1 -1
View File
@@ -69,7 +69,7 @@ class UIHeader {
if (ui.changed) UIMenu.keepOpen = true;
}, 10);
}
if (ui.button("Add swatch")) {
if (ui.button(tr("Add Swatch"))) {
var newSwatch = Project.makeSwatch(Context.pickedColor.base);
Context.setSwatch(newSwatch);
Project.raw.swatches.push(newSwatch);
+4 -4
View File
@@ -56,11 +56,11 @@ class UIToolbar {
if (UIHeader.inst.worktab.position == SpacePaint) {
var keys = [
"(" + Config.keymap.tool_brush + ") - "+ tr("Hold {action_paint} to paint\nHold {key} and press {action_paint} to paint a straight line (ruler mode)", ["key" => Config.keymap.brush_ruler, "action_paint" => Config.keymap.action_paint]),
"(" + Config.keymap.tool_eraser + ") - "+ tr("Hold {action_paint} to erase\nHold {key} and press {action_paint} to erase a straight line (ruler mode)", ["key" => Config.keymap.brush_ruler, "action_paint" => Config.keymap.action_paint]),
"(" + Config.keymap.tool_brush + ") - " + tr("Hold {action_paint} to paint\nHold {key} and press {action_paint} to paint a straight line (ruler mode)", ["key" => Config.keymap.brush_ruler, "action_paint" => Config.keymap.action_paint]),
"(" + Config.keymap.tool_eraser + ") - " + tr("Hold {action_paint} to erase\nHold {key} and press {action_paint} to erase a straight line (ruler mode)", ["key" => Config.keymap.brush_ruler, "action_paint" => Config.keymap.action_paint]),
"(" + Config.keymap.tool_fill + ")",
"(" + Config.keymap.tool_decal + ") - "+ tr("Hold {key} to paint on a decal mask", ["key" => Config.keymap.decal_mask]),
"(" + Config.keymap.tool_text + ") - "+ tr("Hold {key} to use the text as a mask", ["key" => Config.keymap.decal_mask]),
"(" + Config.keymap.tool_decal + ") - " + tr("Hold {key} to paint on a decal mask", ["key" => Config.keymap.decal_mask]),
"(" + Config.keymap.tool_text + ") - " + tr("Hold {key} to use the text as a mask", ["key" => Config.keymap.decal_mask]),
"(" + Config.keymap.tool_clone + ") - " + tr("Hold {key} to set source", ["key" => Config.keymap.set_clone_source]),
"(" + Config.keymap.tool_blur + ")",
"(" + Config.keymap.tool_particle + ")",