Differences

This shows you the differences between two versions of the page.

Link to this comparison view

component:sign:zh [2023/11/15 14:53]
hfsr created
component:sign:zh [2023/11/15 14:58] (current)
hfsr [Component: Sign]
Line 1: Line 1:
-Component: Sign+组件:告示牌
 ============== ==============
-This is the component provided by the [[item:​sign_upgrade|Sign Upgrade]].+此组件由[[item:​sign_upgrade:zh|告示牌升级]]提供。
  
-Component name: `sign`.  ​ +组件名:`sign` 
-Callbacks:+ 
 +回调函数:
  
 - `getValue():​ string or nil, string`  ​ - `getValue():​ string or nil, string`  ​
-  Gets the text currently displayed on the sign in front of the robot, or `nil` and an error message if there is no sign in front of the robot.+获取机器人面前告示牌上的当前显示内容,若机器人面前无告示牌会返回`nil`与一条报错信息。 ​  
 +\\
 - `setValue(value:​ string): string or nil, string`  ​ - `setValue(value:​ string): string or nil, string`  ​
-  Sets the text of the sign in front of the robot. Returns the new text on the sign (which may be a truncated version of the passed argument) or `nil` and an error message if there is no sign in front of the robot.+设定机器人面前告示牌上的文字。返回告示牌上的新文字(传递给此函数的字符串,可能会被告示牌截短),若机器人面前无告示牌会返回`nil`与一条报错信息。
  
 目录 目录
 ---- ----
 {{page>​component:​contents:​zh&​noheader&​noeditbutton&​nouser&​nofooter}} {{page>​component:​contents:​zh&​noheader&​noeditbutton&​nouser&​nofooter}}