Difference between revisions of "Printer.setPageTitle"

From ComputerCraft Wiki
Jump to: navigation, search
m (-> printer api)
m (Category -> API Functions)
Line 15: Line 15:
 
}}
 
}}
  
[[Category:Lua_Core_Functions]]
+
[[Category:API_Functions]]

Revision as of 10:05, 30 November 2012


Grid Redstone.png  Function printer.setPageTitle
Sets the title of the page being printed
Syntax printer.setPageTitle(string title)
Returns none
Part of ComputerCraft
API printer

Examples

Grid paper.png  Example
Set the title of a page to be printed.
Code
Printer.setPageTitle("Test page")
Output When the page is hovered-on in the inventory, the tooltip reads "Printed Page; Test page"