Difference between revisions of "Printer.setPageTitle"

From ComputerCraft Wiki
Jump to: navigation, search
m (Moved to CAT:LuaCoreFunctions)
m (Expanded)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{stub}}
+
{{lowercase}}
<center>'''This page is unfinished.'''</center>
+
{{Function
<br />
+
|name=''printer''.setPageTitle
Printer.setPageTitle("Test page")
+
|args={{type|string}} title
 
+
|returns={{type|nil}}
results in the item being called:
+
|api=printer
 
+
|addon=ComputerCraft
Printed Page
+
|desc=Sets the title of the page. This title is seen when you hover your mouse over the page in the inventory.
Test page
+
|examples=
 
+
{{Example
when you hover over it with your mouse
+
|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]]
 
[[Category:Lua_Core_Functions]]

Latest revision as of 18:12, 9 April 2014


Grid Redstone.png  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

Grid paper.png  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()