Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions extern/lang/ebs.js
Original file line number Diff line number Diff line change
Expand Up @@ -1545,7 +1545,7 @@ Lang.Blocks = {
"CALC_change_string_case_sub_1": "대문자",
"CALC_change_string_case_sub_2": "소문자",
"CALC_count_match_string_1": "에서",
"CALC_count_match_string_2": "의 글자 개수",
"CALC_count_match_string_2": "의 글자 ",
"CALC_index_of_string_1": "",
"CALC_index_of_string_2": "에서",
"CALC_index_of_string_3": "의 시작 위치",
Expand Down Expand Up @@ -1590,7 +1590,6 @@ Lang.Blocks = {
"entry_bot_name": "엔트리봇",
"hi_entry": "",
"hi_entry_en": "",
"hello_entry": "hello entry",
"bark_dog": "",
"walking_entryBot": "엔트리봇_걷기",
"doggi_bark": "강아지 짖는 소리",
Expand Down Expand Up @@ -5467,7 +5466,7 @@ Lang.Helper = {
"char_at": "입력한 값에서 입력한 숫자 번째의 글자 값입니다. (공백을 포함합니다.)",
"length_of_string": "입력한 값의 공백을 포함한 글자 수입니다.",
"substring": "입력한 값에서 입력한 범위 내의 글자 값입니다. (공백을 포함합니다.)",
"count_match_string": "입력한 값에서 지정한 값의 글자 개수입니다.",
"count_match_string": "입력한 값에서 지정한 값의 글자 수이며, 영문의 경우 대문자와 소문자를 구분하여 수를 셉니다.",
"replace_string": "입력한 값에서 지정한 값을 찾아 추가로 입력한 값으로 모두 바꾼 값입니다. (영문 입력 시 대소문자를 구분합니다.)",
"index_of_string": "입력한 값에서 지정한 값이 처음으로 등장하는 위치 값입니다. (공백을 포함합니다.)",
"change_string_case": "입력한 영문의 모든 알파벳을 대문자 또는 소문자로 바꾼 값입니다.",
Expand Down
11 changes: 5 additions & 6 deletions extern/lang/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -738,8 +738,8 @@ Lang.Blocks = {
"CALC_change_string_case_3": " ",
"CALC_change_string_case_sub_1": "uppercase",
"CALC_change_string_case_sub_2": "lowercase",
"CALC_count_match_string_1": "'s count of",
"CALC_count_match_string_2": "",
"CALC_count_match_string_1": "count of",
"CALC_count_match_string_2": "in",
"CALC_index_of_string_1": "index of",
"CALC_index_of_string_2": "in",
"CALC_index_of_string_3": "",
Expand Down Expand Up @@ -784,7 +784,6 @@ Lang.Blocks = {
"entry_bot_name": "Entrybot",
"hi_entry": "Hello Entry!",
"hi_entry_en": "Hello Entry!",
"hello_entry": "hello entry",
"bark_dog": "dog barking",
"walking_entryBot": "Walking Entrybot",
"doggi_bark": "Doggi's Bark",
Expand Down Expand Up @@ -1116,7 +1115,7 @@ Lang.Blocks = {
"arduino_lite_guide": "• connection guide",
"JUDGEMENT_is_object_clicked": "Object clicked?",
"JUDGEMENT_is_type_1": "is",
"JUDGEMENT_is_type_2": "",
"JUDGEMENT_is_type_2": "?",
"is_type_number": "number",
};
Lang.video_body_coord_params = {
Expand Down Expand Up @@ -4674,7 +4673,7 @@ Lang.Helper = {
"char_at": "Reports the letter of the input text.",
"length_of_string": "Reports the length of input text including space.",
"substring": "Reports the text extracted from the input text between two specified indices. (includes space)",
"count_match_string": "Reports the number of letters in a specific text in the input text.",
"count_match_string": "Reports the number of letters in a specific text in the input text case sensitively.",
"replace_string": "Reports the text that replaced all the input text with another input text. (distinguishes uppercase to lowercase)",
"index_of_string": "Reports the index of first input text in second input text. (includes space)",
"change_string_case": "Reports the text that converted to uppercase or lowercase.",
Expand Down Expand Up @@ -5258,7 +5257,7 @@ Lang.template = {
"substring": "%1 %2 %3 %4 %5 %6 %7",
"replace_string": "%1 %2 %3 %4 %5 %6 %7",
"change_string_case": "%1 %2 %3 %4 %5",
"count_match_string": "%3 %2 %1 %4",
"count_match_string": "%2 %3 %4 %1",
"index_of_string": "%1 %2 %3 %4 %5",
"combine_something": "%1 %2 %3 %4 %5",
"get_sound_volume": "%1 %2",
Expand Down
5 changes: 2 additions & 3 deletions extern/lang/ko.js
Original file line number Diff line number Diff line change
Expand Up @@ -1561,7 +1561,7 @@ Lang.Blocks = {
CALC_change_string_case_sub_1: '대문자',
CALC_change_string_case_sub_2: '소문자',
CALC_count_match_string_1: '에서',
CALC_count_match_string_2: '의 글자 개수',
CALC_count_match_string_2: '의 글자 ',
CALC_index_of_string_1: '',
CALC_index_of_string_2: '에서',
CALC_index_of_string_3: '의 시작 위치',
Expand Down Expand Up @@ -1606,7 +1606,6 @@ Lang.Blocks = {
entry_bot_name: '엔트리봇',
hi_entry: '안녕 엔트리!',
hi_entry_en: 'Hello Entry!',
hello_entry: 'hello entry',
bark_dog: '강아지 짖는 소리',
walking_entryBot: '엔트리봇_걷기',
doggi_bark: '강아지 짖는 소리',
Expand Down Expand Up @@ -6030,7 +6029,7 @@ Lang.Helper = {
char_at: '입력한 값에서 입력한 숫자 번째의 글자 값입니다. (공백을 포함합니다.)',
length_of_string: '입력한 값의 공백을 포함한 글자 수입니다.',
substring: '입력한 값에서 입력한 범위 내의 글자 값입니다. (공백을 포함합니다.)',
count_match_string: '입력한 값에서 지정한 값의 글자 개수입니다.',
count_match_string: '입력한 값에서 지정한 값의 글자 수이며, 영문의 경우 대문자와 소문자를 구분하여 수를 셉니다.',
replace_string:
'입력한 값에서 지정한 값을 찾아 추가로 입력한 값으로 모두 바꾼 값입니다. (영문 입력 시 대소문자를 구분합니다.)',
index_of_string:
Expand Down
2 changes: 1 addition & 1 deletion extern/util/static.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,10 +347,10 @@ EntryStatic.getAllBlocks = function() {
'get_user_name',
'get_nickname',
'length_of_string',
'count_match_string',
'combine_something',
'char_at',
'substring',
'count_match_string',
'index_of_string',
'replace_string',
'reverse_of_string',
Expand Down
25 changes: 14 additions & 11 deletions src/playground/blocks/block_calc.js
Original file line number Diff line number Diff line change
Expand Up @@ -1100,14 +1100,14 @@ module.exports = {
],
events: {
viewAdd: [
function () {
function() {
if (Entry.engine) {
Entry.engine.showProjectTimer();
}
},
],
viewDestroy: [
function (block, notIncludeSelf) {
function(block, notIncludeSelf) {
if (Entry.engine) {
Entry.engine.hideProjectTimer(block, notIncludeSelf);
}
Expand Down Expand Up @@ -1176,7 +1176,7 @@ module.exports = {
},
],
dataDestroy: [
function (block) {
function(block) {
if (Entry.engine) {
Entry.engine.hideProjectTimer(block);
}
Expand Down Expand Up @@ -1307,14 +1307,14 @@ module.exports = {
],
events: {
viewAdd: [
function () {
function() {
if (Entry.engine) {
Entry.engine.showProjectTimer();
}
},
],
viewDestroy: [
function (block, notIncludeSelf) {
function(block, notIncludeSelf) {
if (Entry.engine) {
Entry.engine.hideProjectTimer(block, notIncludeSelf);
}
Expand Down Expand Up @@ -1396,10 +1396,10 @@ module.exports = {
[Lang.Blocks.CALC_get_date_year, 'YEAR'],
[Lang.Blocks.CALC_get_date_month, 'MONTH'],
[Lang.Blocks.CALC_get_date_day, 'DAY'],
[Lang.Blocks.CALC_get_date_day_of_week, 'DAY_OF_WEEK'],
[Lang.Blocks.CALC_get_date_hour, 'HOUR'],
[Lang.Blocks.CALC_get_date_minute, 'MINUTE'],
[Lang.Blocks.CALC_get_date_second, 'SECOND'],
[Lang.Blocks.CALC_get_date_day_of_week, 'DAY_OF_WEEK'],
],
value: 'YEAR',
fontSize: 10,
Expand Down Expand Up @@ -1522,13 +1522,13 @@ module.exports = {
const mousePos = Entry.stage.mouseCoordinate;
return Math.sqrt(
Math.pow(sprite.getX() - mousePos.x, 2) +
Math.pow(sprite.getY() - mousePos.y, 2)
Math.pow(sprite.getY() - mousePos.y, 2)
);
} else {
const targetEntity = Entry.container.getEntity(targetId);
return Math.sqrt(
Math.pow(sprite.getX() - targetEntity.getX(), 2) +
Math.pow(sprite.getY() - targetEntity.getY(), 2)
Math.pow(sprite.getY() - targetEntity.getY(), 2)
);
}
},
Expand Down Expand Up @@ -1781,7 +1781,10 @@ module.exports = {
isNotFor: ['python_disable'],
func(sprite, script) {
const originStr = script.getStringValue('STRING', script);
const reversedStr = originStr.split('').reverse().join('');
const reversedStr = originStr
.split('')
.reverse()
.join('');
return reversedStr;
},
syntax: {
Expand Down Expand Up @@ -2154,7 +2157,7 @@ module.exports = {
params: [
{
type: 'text',
params: [Lang.Blocks.hello_entry],
params: [Lang.Blocks.hi_entry_en],
},
null,
{
Expand Down Expand Up @@ -2457,7 +2460,7 @@ module.exports = {
func(sprite, script) {
return script
.getStringValue('STRING', script)
[script.getField('CASE', script)]();
[script.getField('CASE', script)]();
},
syntax: {
js: [],
Expand Down
4 changes: 1 addition & 3 deletions src/playground/blocks/block_judgement.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,7 @@ module.exports = {
},
{
type: 'Dropdown',
options: [
[Lang.Blocks.is_type_number, 'number'],
],
options: [[Lang.Blocks.is_type_number, 'number']],
value: 'number',
fontSize: 10,
bgColor: EntryStatic.colorSet.block.darken.JUDGE,
Expand Down