(同じ利用者による、間の1版が非表示)
19行目: 19行目:


<syntaxhighlight lang="javascript" copy>
<syntaxhighlight lang="javascript" copy>
#language = "quickjs"
#title = "MeryToys"
#title = "MeryToys"


166行目: 167行目:
ident: "ReplaceStrict",
ident: "ReplaceStrict",
default: true,
default: true,
},
]
},
{
name: "編集",
items: [
{
name: "指定した文字を全角カナとして扱う",
section: "Edit",
ident: "KatakanaFullWidthChars",
default: "",
},
},
]
]
364行目: 376行目:
default: 8,
default: 8,
description: "px",
description: "px",
},
{
name: "タイトル",
section: "Window",
ident: "Title",
default: "",
},
},
]
]
510行目: 528行目:
if (result !== 0) {
if (result !== 0) {
var d = commandMap[result];
var d = commandMap[result];
var t = "変更を有効にするには、Mery を再起動する必要があります。";
switch (typeof d.value) {
switch (typeof d.value) {
case "boolean":
case "boolean":
519行目: 538行目:
var s = prompt(d.name + (d.description ? " (" + d.description + "):" : ":"), d.value);
var s = prompt(d.name + (d.description ? " (" + d.description + "):" : ":"), d.value);
if (s !== null) {
if (s !== null) {
s ? (!isNaN(s) && (editor.WriteSettings(), editor.WriteSettingInteger(d.section, d.ident, Number(s)), editor.ReadSettings())) : editor.DeleteSetting(d.section, d.ident);
s ? (!isNaN(s) && (editor.WriteSettings(), editor.WriteSettingInteger(d.section, d.ident, Number(s)), editor.ReadSettings())) : (editor.DeleteSetting(d.section, d.ident), alert(t));
}
}
break;
break;
525行目: 544行目:
var s = prompt(d.name + (d.description ? " (" + d.description + "):" : ":"), d.value);
var s = prompt(d.name + (d.description ? " (" + d.description + "):" : ":"), d.value);
if (s !== null) {
if (s !== null) {
s ? (editor.WriteSettings(), editor.WriteSettingString(d.section, d.ident, s), editor.ReadSettings()) : editor.DeleteSetting(d.section, d.ident);
s ? (editor.WriteSettings(), editor.WriteSettingString(d.section, d.ident, s), editor.ReadSettings()) : (editor.DeleteSetting(d.section, d.ident), alert(t));
}
}
break;
break;
スポンサーリンク