From 8359e80b233675ee347ff1ac8ec7d37430d52a7a Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Fri, 24 Aug 2012 18:26:18 +0400 Subject: Expose a few API functions to lua, and implement a room browser overlay. --- Lua API.html | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Lua API.html') diff --git a/Lua API.html b/Lua API.html index 15f1d89c..b9f09cf9 100644 --- a/Lua API.html +++ b/Lua API.html @@ -1113,6 +1113,13 @@ or raws. The ignore_noble boolean disables the
dfhack.units.getCasteProfessionName(race,caste,prof_id[,plural])
Retrieves the profession name for the given race/caste using raws.
dfhack.units.getProfessionColor(unit[,ignore_noble])
+Retrieves the color associated with the profession, using noble assignments +or raws. The ignore_noble boolean disables the use of noble positions.
+dfhack.units.getCasteProfessionColor(race,caste,prof_id)
+Retrieves the profession color for the given race/caste using raws.
+dfhack.buildings.setOwner(item,unit)
+Replaces the owner of the building. If unit is nil, removes ownership. +Returns false in case of error.
+dfhack.buildings.getSize(building)
Returns width, height, centerx, centery.