This shows you the differences between two versions of the page.
component:sign [2014/07/10 09:01] vexatos |
component:sign [2015/01/14 23:40] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | Component: Sign | ||
- | ============== | ||
- | This is the component provided by the [[Sign Upgrade|Items#sign-upgrade]]. | ||
- | Component name: `sign`. | ||
- | Callbacks: | ||
- | |||
- | - `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. | ||
- | - `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. | ||
- | |||
- | ---- | ||
- | |||
- | {{page>component:contents&noheader&noeditbutton&nouser&nofooter}} |