Difference between revisions of "Disk.setLabel"
From ComputerCraft Wiki
Scarfacial (Talk | contribs) (Created page with "{{lowercase}} {{Function |name=disk.setLabel |args=string side |api=disk |addon=ComputerCraft |examples= {{Example |desc=Sets the label of the disk in the bottom drive to ...") |
m (Use type template) |
||
| (4 intermediate revisions by 4 users not shown) | |||
| Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=disk.setLabel | |name=disk.setLabel | ||
| − | |args= | + | |args={{Type|string}} side, {{Type|string}} label |
|api=disk | |api=disk | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
| + | |desc=Writes a label to the floppy disk, which can be read with [[disk.getLabel]] and viewed in the item tooltip. | ||
|examples= | |examples= | ||
{{Example | {{Example | ||
| Line 11: | Line 12: | ||
}} | }} | ||
}} | }} | ||
| + | |||
| + | [[Category:API_Functions]] | ||
Latest revision as of 19:12, 22 April 2013
| Writes a label to the floppy disk, which can be read with disk.getLabel and viewed in the item tooltip. | |
| Syntax | disk.setLabel(string side, string label) |
| Returns | nil |
| Part of | ComputerCraft |
| API | disk |
Examples
| Sets the label of the disk in the bottom drive to "Floppy" | |
| Code |
disk.setLabel("bottom", "Floppy")
|