Difference between revisions of "Printer.setPageTitle"
From ComputerCraft Wiki
(Created page with "Printer.setPageTitle("Test page") results in the item being called: Printed Page Test page when you hover over it with your mouse") |
MKlegoman357 (Talk | contribs) m (Expanded) |
||
| (8 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
| − | + | {{lowercase}} | |
| + | {{Function | ||
| + | |name=''printer''.setPageTitle | ||
| + | |args={{type|string}} title | ||
| + | |returns={{type|nil}} | ||
| + | |api=printer | ||
| + | |addon=ComputerCraft | ||
| + | |desc=Sets the title of the page. This title is seen when you hover your mouse over the page in the inventory. | ||
| + | |examples= | ||
| + | {{Example | ||
| + | |desc=Set the title of a page to be printed. | ||
| + | |code= local printer = [[peripheral.wrap]]("left") | ||
| + | |||
| + | [[printer.newPage]]() | ||
| + | printer.setPageTitle("My page title") | ||
| + | [[printer.endPage]]() | ||
| + | }} | ||
| + | }} | ||
| − | + | [[Category:Lua_Core_Functions]] | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
Latest revision as of 18:12, 9 April 2014
| Sets the title of the page. This title is seen when you hover your mouse over the page in the inventory. | |
| Syntax | printer.setPageTitle(string title) |
| Returns | nil |
| Part of | ComputerCraft |
| API | printer |
Examples
| Set the title of a page to be printed. | |
| Code |
local printer = peripheral.wrap("left") printer.newPage() printer.setPageTitle("My page title") printer.endPage() |