I've seen a programing app that wrote the GUI code from what you visualy made by hand in a separate GUI-building window, but I can't remember what it was. It would let you reverse-engineer the few GUI LFSTweak needs pretty easily.
It might have been a Matlab plugin, but don't take my word for it..