Bay 12 Games Forum

Dwarf Fortress => DF Modding => Utilities and 3rd Party Applications => Topic started by: mifki on April 17, 2017, 07:37:24 pm

Title: A script to view poetic/musical/dance form descriptions
Post by: mifki on April 17, 2017, 07:37:24 pm
(http://mifki.com/assets/uploads/perfviewer1.png) (http://mifki.com/assets/uploads/perfviewer2.png)

Download https://gist.github.com/pronvit/710f0de2d9fa8a1971c52f64131d24e1

Copy to hack/scripts and start with "performances" cmd. It will show a list of all poetic/musical/dance forms allowing to view their descriptions.
Title: Re: A script to view poetic/musical/dance form descriptions
Post by: mifki on April 23, 2017, 05:54:37 pm
I've updated the script with a decent UI.

(How do I make it to show all keys assigned for primary scrolling instead of just numeric keys?)
Title: Re: A script to view poetic/musical/dance form descriptions
Post by: Warmist on April 24, 2017, 07:40:10 am
(How do I make it to show all keys assigned for primary scrolling instead of just numeric keys?)

There is no (easy) way. It all boils down to here: Screen.cpp (https://github.com/DFHack/dfhack/blob/98893793bd19d359b75771279d694bff7dd34ede/library/modules/Screen.cpp#L429) and at quick glance in windows version we could iterate over all the values but in linux not sure. AFAIK this is just mirroring vanilla df functionality.