w=dfhack.gui.getCurViewscreen() ; w.child=df.viewscreen_legendsst:new() ; dfhack.gui.getCurViewscreen().parent=w
dfhack.gui.getCurViewscreen().breakdown_level=2
Did you know it's possible to doCode: [Select]w=dfhack.gui.getCurViewscreen() ; w.child=df.viewscreen_legendsst:new() ; dfhack.gui.getCurViewscreen().parent=w
and get a fully functional Legends screen? There was couple question about how to get more info about outer world recently. The only thing you can't use ESC to close the screen, instead, useCode: [Select]dfhack.gui.getCurViewscreen().breakdown_level=2
Someone needs to make a convenient script, if there's no already.
dfhack.screen.show(df.viewscreen_legendsst:new())
dfhack.screen.dismiss(dfhack.gui.getCurViewscreen())
The only thing you'd really need a separate script for is to intercept LEAVESCREEN appropriately.This is equivalent toCode: [Select]dfhack.screen.show(df.viewscreen_legendsst:new())The only thing you'd really need a separate script for is to intercept LEAVESCREEN appropriately.
dfhack.screen.dismiss(dfhack.gui.getCurViewscreen())
Edit: Here (https://github.com/lethosor/dfhack-scripts/blob/master/open-legends.lua) is a script that does that.Currently untested in adventure mode.Appears to work in adventure mode as well.
Yeah, there was a compatibility issue with DFHack 0.40.24-r3 which I just fixed in the repo. Try downloading it again.that did it. thank you.
It'll require a change to the exportlegends script. open-legends creates an invisible screen above the legends screen (which catches 'esc' and stops DF from crashing), which is what exportlegends sees.Yeah, there was a compatibility issue with DFHack 0.40.24-r3 which I just fixed in the repo. Try downloading it again.that did it. thank you.
is there any way to get "exportlegends all" to work with this? says it has to be in the main legends menu.