From e925d8f4d999817d3ccf7f3180e7abee382e03b4 Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Fri, 7 Sep 2012 11:36:45 +0400 Subject: Add an API function for reading tiles from the screen buffers. --- Lua API.html | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Lua API.html') diff --git a/Lua API.html b/Lua API.html index 546d2740..dc9c8d73 100644 --- a/Lua API.html +++ b/Lua API.html @@ -1480,6 +1480,10 @@ Otherwise should be true/false.

Returns false if coordinates out of bounds, or other error.

+
  • dfhack.screen.readTile(x,y)

    +

    Retrieves the contents of the specified tile from the screen buffers. +Returns a pen, or nil if invalid or TrueType.

    +
  • dfhack.screen.paintString(pen,x,y,text)

    Paints the string starting at x,y. Uses the string characters in sequence to override the ch field of pen.

    -- cgit v1.2.1