Cleanup. (Skin editor)

This commit is contained in:
2023-03-15 15:44:32 +08:00
parent 2207c80951
commit a2391aeb22
4 changed files with 5 additions and 8 deletions

View File

@@ -62,10 +62,10 @@ body {
.t-list { .t-list {
padding: 2px; padding: 2px;
margin: 0; margin: 0;
list-style: none;
} }
.t-li { .t-li {
list-style: none;
padding: 0 4px; padding: 0 4px;
margin: 1px; margin: 1px;
cursor: pointer; cursor: pointer;
@@ -198,7 +198,6 @@ input {
.t-exp > .t-statement { .t-exp > .t-statement {
margin: 0; margin: 0;
border: 0;
border-left: solid 1px orangered; border-left: solid 1px orangered;
padding: 0 2px; padding: 0 2px;
} }

View File

@@ -146,12 +146,12 @@ window.onload = function () {
app.find("tbr").replaceWith(function () { app.find("tbr").replaceWith(function () {
return msg($(this).text()); return msg($(this).text());
}); });
addAddButton(tree).on("click", function (event) { addAddButton(tree).on("click", function () {
if (clist) clist.remove(); if (clist) clist.remove();
}); });
tv.on("mousemove", null, null, onMouseMove); tv.on("mousemove", null, null, onMouseMove);
$(".tgbtn").on("click", function (event) { $(".tgbtn").on("click", function () {
var btn = $(this); var btn = $(this);
btn.toggleClass("tgbtn-active"); btn.toggleClass("tgbtn-active");
onToggleButtonClick(btn.attr("id"), btn.hasClass("tgbtn-active")); onToggleButtonClick(btn.attr("id"), btn.hasClass("tgbtn-active"));

View File

@@ -1,5 +1,4 @@
messages["en_US"] = { messages["en_US"] = {
"block.select": "Select {0}",
"input.comp.anim": "animation", "input.comp.anim": "animation",
"input.comp.default": "component", "input.comp.default": "component",
"input.comp.image": "image sprite", "input.comp.image": "image sprite",
@@ -172,7 +171,7 @@ messages["en_US"] = {
"statement.exp.op.sub1": "-{0}", "statement.exp.op.sub1": "-{0}",
"statement.obj": "Create a container {0}", "statement.obj": "Create a container {0}",
"statement.prop": "Set its {0} to {1}", "statement.prop": "Set its {0} to {1}",
"statement.select": "{0} {1}", "statement.select": "Select {0} {1}",
"statement.select.anchor": "Select its anchor {0}", "statement.select.anchor": "Select its anchor {0}",
"statement.select.atanchor": "Select at its anchor {0}", "statement.select.atanchor": "Select at its anchor {0}",
"statement.select.exp": "If it matches the expression {0}", "statement.select.exp": "If it matches the expression {0}",

View File

@@ -1,5 +1,4 @@
messages["zh_CN"] = { messages["zh_CN"] = {
"block.select": "选择 {0}",
"input.comp.anim": "动画", "input.comp.anim": "动画",
"input.comp.default": "组件", "input.comp.default": "组件",
"input.comp.image": "图片图形", "input.comp.image": "图片图形",
@@ -172,7 +171,7 @@ messages["zh_CN"] = {
"statement.exp.op.sub1": "-{0}", "statement.exp.op.sub1": "-{0}",
"statement.obj": "创建一个容器 {0}", "statement.obj": "创建一个容器 {0}",
"statement.prop": "设置属性 {0} 为 {1}", "statement.prop": "设置属性 {0} 为 {1}",
"statement.select": "{0} {1}", "statement.select": "选择 {0} {1}",
"statement.select.anchor": "选择其 {0} 锚点", "statement.select.anchor": "选择其 {0} 锚点",
"statement.select.atanchor": "选择位于其 {0} 锚点", "statement.select.atanchor": "选择位于其 {0} 锚点",
"statement.select.exp": "如果元素符合表达式 {0}", "statement.select.exp": "如果元素符合表达式 {0}",