From f8f7194f822ca51bf15e617e80cfd4bf2160e905 Mon Sep 17 00:00:00 2001 From: PeridexisErrant Date: Sat, 15 Aug 2015 16:44:12 +1000 Subject: [PATCH] Make exportlegends compatible with open-legends --- scripts/exportlegends.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/exportlegends.lua b/scripts/exportlegends.lua index 7c8c539fb..a7178361f 100644 --- a/scripts/exportlegends.lua +++ b/scripts/exportlegends.lua @@ -564,7 +564,8 @@ function export_site_maps() end -- main() -if dfhack.gui.getCurFocus() == "legends" then +if dfhack.gui.getCurFocus() == "legends" or dfhack.gui.getCurFocus() == "dfhack/lua/legends" then + -- either native legends mode, or using the open-legends.lua script if args[1] == "all" then export_legends_info() export_site_maps()