Difference between revisions of "Printer.setPageTitle"
From ComputerCraft Wiki
(Please do not change categories without confirming with me first.) |
MKlegoman357 (Talk | contribs) m (Expanded) |
||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
{{Function | {{Function | ||
− | |name=printer.setPageTitle | + | |name=''printer''.setPageTitle |
− | |args= | + | |args={{type|string}} title |
− | |returns= | + | |returns={{type|nil}} |
|api=printer | |api=printer | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
− | |desc=Sets the title of the page | + | |desc=Sets the title of the page. This title is seen when you hover your mouse over the page in the inventory. |
|examples= | |examples= | ||
{{Example | {{Example | ||
|desc=Set the title of a page to be printed. | |desc=Set the title of a page to be printed. | ||
− | |code= | + | |code= local printer = [[peripheral.wrap]]("left") |
− | + | ||
+ | [[printer.newPage]]() | ||
+ | printer.setPageTitle("My page title") | ||
+ | [[printer.endPage]]() | ||
}} | }} | ||
}} | }} | ||
[[Category:Lua_Core_Functions]] | [[Category:Lua_Core_Functions]] |
Latest revision as of 18:12, 9 April 2014
Function printer.setPageTitle | |
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
Example | |
Set the title of a page to be printed. | |
Code |
local printer = peripheral.wrap("left") printer.newPage() printer.setPageTitle("My page title") printer.endPage() |