← 수업 제작 도구
홈 › Components › Screen › 화면 4

화면 4. Screen.coverButtonLabel [sink]

원본: Computation Layer 문서(Screen) · Try It (원본 화면)

화면 번호4 / 5
문서 항목 설명 (원문)coverButtonLabel Use in conjunction with coverText to change the button text from the default ("Ok"). If set to an empty string, the cover won't be dismissable.

1. 화면 캡처 (빨간 번호 = 아래 표의 번호)

화면 4 캡처

화면에 적힌 영어 문구(원문):

2. CL이 입력된 곳

코드 안의 회색 줄은 원문 영어 주석이고, 파란 줄은 그 영어 주석의 번역이며, 연분홍 줄은 코드가 하는 일의 설명이다.

번호이름종류CL 코드 원문, 번역, 설명
1master CL
(화면 전체)
SCREEN
# Cover text must be created to bring up the cover.
▷ 덮개를 띄우려면 덮개 글(cover text)을 반드시 만들어야 한다.
coverText: "On this screen you will write your name on a rocket and press a button to make it fly."
▶ 화면의 덮개 글(coverText)은 "On this screen you will write your name on a rocket and press a button to make it fly."(이 화면에서 로켓에 이름을 쓰고 버튼을 눌러 날아가게 한다.)로 한다.

# This code sets the label of the button that removes
# the cover. Typing a blank string ("") will hide it.
▷ 덮개를 없애는 버튼의 라벨을 정한다. 빈 글자("")를 적으면 버튼이 숨겨진다.
coverButtonLabel: "Try It"
▶ 덮개 버튼의 라벨(coverButtonLabel)은 "Try It"(해 보기)로 한다.
coverButtonLabel은 coverText와 함께 써서 버튼 글자를 기본값("Ok")에서 바꾸며, 빈 글자로 정하면 덮개를 닫을 수 없다.
2레이블 없는 그래프그래프
# Make your name appear on the rocket
▷ 이름이 로켓에 나타나게 한다.
pointLabel("A"): inputName.content
▶ 점 A의 라벨은 자유 답변 구성요소 inputName에 학생이 입력한 값(inputName.content)으로 한다.
pointLabel("A")는 A=(1,2)처럼 정의된 점의 라벨 글자를 정하며, 이름이 점의 이름과 같아야 하고 준 글자와 정확히 같게 표시된다.
# Make the rocket take off when the button is pressed ▷ 버튼을 누르면 로켓이 이륙하게 한다. number("b"): inputName.timeSinceSubmit ▶ 그래프의 변수 b는 제출 버튼을 누른 뒤 지난 시간(초)(inputName.timeSinceSubmit)으로 한다.
number("b")는 그래핑 계산기 안의 변수 b의 값을 정하며 기존 정의가 있어도 덮어쓴다.
# Make the rocket go faster (You can set it here OR in the graph itself) ▷ 로켓이 더 빨리 가게 한다. (여기서 정해도 되고 그래프 안에서 직접 정해도 된다.) number("s"): 8 ▶ 그래프의 변수 s는 8로 한다.
3inputName자유 답변
submitLabel: "Submit Name and Launch Rocket"
▶ 자유 답변의 제출 버튼 라벨(submitLabel)은 "Submit Name and Launch Rocket"(이름을 제출하고 로켓 발사)로 한다.