← 수업 제작 도구
홈 › Components › Action Button (행동 버튼) › 화면 7

화면 7. Action Button.resetLabel [sink]

원본: Computation Layer 문서(Action Button (행동 버튼)) · Try It (원본 화면)

화면 번호7 / 12
문서 항목 설명 (원문)resetLabel Sets the link text we'll show that lets the student reset the action button.

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

화면 7 캡처

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

2. CL이 입력된 곳

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

번호이름종류CL 코드 원문, 번역, 설명
1레이블 없는 그래프그래프
# Define the variable s_mile as the amount of time since the action
# button "goodTime" was pressed. We'll use that number in the 
# graph component.
▷ 변수 s_mile을 행동 버튼 "goodTime"을 누른 뒤 지난 시간으로 정한다. 이 숫자를 그래프 구성요소에서 쓴다.

number("s_{mile}"): goodTime.timeSincePress
▶ 그래프의 변수 s_{mile}은 행동 버튼 goodTime을 누른 뒤 지난 시간(goodTime.timeSincePress)으로 한다.
number("이름")은 그래핑 계산기 안의 변수 값을 정하고, timeSincePress는 행동 버튼을 누른 뒤 지난 시간을 알려 준다.
2goodTime행동 버튼
# When the action button is pressed the label displayed will be
# "Make a Bad Time Again". When pressed, the button will reset to its
# unpressed label and state.
▷ 행동 버튼을 누르면 표시되는 라벨은 "Make a Bad Time Again"이 된다. 누르면 버튼은 누르기 전의 라벨과 상태로 되돌아간다.

resetLabel: "Make a Bad Time Again"
▶ 행동 버튼의 재설정 라벨(resetLabel)은 "Make a Bad Time Again"(다시 나쁜 시간을 만드시오)로 한다.
resetLabel은 재설정 링크에 표시할 글자를 정한다.